#include <Hardroc2IPNLChip.hh>
Inheritance diagram for Hardroc2IPNLChip:
Public Member Functions | |
Hardroc2IPNLChip (const Board &aBoard, const i32 aCol, const i32 aRow, const i32 aId, const ui32 aSerialNumber) | |
virtual | ~Hardroc2IPNLChip () |
const ui32 | getXGap () const |
const ui32 | getYGap () const |
ui32 | getThresholdDac_0 () const |
ui32 | getThresholdDac_1 () const |
ui32 | getThresholdDac_2 () const |
void | setThresholdDac_0 (ui32 value) |
void | setThresholdDac_1 (ui32 value) |
void | setThresholdDac_2 (ui32 value) |
Private Member Functions | |
void | init () |
int | HRmap (int channel) |
Private Attributes | |
ui32 | thresholdDac_0 |
ui32 | thresholdDac_1 |
ui32 | thresholdDac_2 |
Definition at line 19 of file Hardroc2IPNLChip.hh.
Hardroc2IPNLChip::Hardroc2IPNLChip | ( | const Board & | aBoard, | |
const i32 | aCol, | |||
const i32 | aRow, | |||
const i32 | aId, | |||
const ui32 | aSerialNumber | |||
) |
Definition at line 12 of file Hardroc2IPNLChip.cpp.
00013 :Chip(aBoard, aCol, aRow, 8, 8, aId, aSerialNumber) 00014 { 00015 init(); 00016 thresholdDac_0 = 0; 00017 thresholdDac_1 = 0; 00018 thresholdDac_2 = 0; 00019 }; // Hardroc2IPNLChip
virtual Hardroc2IPNLChip::~Hardroc2IPNLChip | ( | ) | [inline, virtual] |
const ui32 Hardroc2IPNLChip::getXGap | ( | ) | const [inline, virtual] |
const ui32 Hardroc2IPNLChip::getYGap | ( | ) | const [inline, virtual] |
ui32 Hardroc2IPNLChip::getThresholdDac_0 | ( | ) | const [inline] |
ui32 Hardroc2IPNLChip::getThresholdDac_1 | ( | ) | const [inline] |
ui32 Hardroc2IPNLChip::getThresholdDac_2 | ( | ) | const [inline] |
void Hardroc2IPNLChip::setThresholdDac_0 | ( | ui32 | value | ) | [inline] |
void Hardroc2IPNLChip::setThresholdDac_1 | ( | ui32 | value | ) | [inline] |
void Hardroc2IPNLChip::setThresholdDac_2 | ( | ui32 | value | ) | [inline] |
void Hardroc2IPNLChip::init | ( | ) | [private] |
Definition at line 22 of file Hardroc2IPNLChip.cpp.
Referenced by Hardroc2IPNLChip().
00023 { 00024 // FILE_LOG(logDEBUG) << "---Hardroc2IPNLChip " << nbColumns << "cols, " << nbRows << " rows" << endl; 00025 for (int channelId = 0; channelId <= 63 ; channelId++) { 00026 int map = HRmap(channelId); 00027 Hardroc2IPNLChannel *channel = new Hardroc2IPNLChannel(*this, map/8, map%8, channelId); 00028 channels.insert(make_pair(channelId,channel)); 00029 } 00030 }; // Hardroc2IPNLChip.ini
int Hardroc2IPNLChip::HRmap | ( | int | channel | ) | [private] |
Definition at line 34 of file Hardroc2IPNLChip.cpp.
Referenced by init().
00035 { 00036 00037 00038 if(channel<0||channel>63) 00039 { 00040 FILE_LOG(logERROR)<<"map error channel="<<channel<<endl;return-1; 00041 } 00042 00043 const int map[64]= 00044 { 9 , 1 , 10, 2 , 11, 3 , 12, 4 , 00045 5 , 13, 6 , 14, 7 , 15, 20, 19, 00046 18, 0 , 8 , 17, 16, 21, 22, 23, 00047 31, 30, 29, 28, 27, 26, 25, 24, 00048 32, 33, 34, 35, 36, 37, 38, 39, 00049 47, 46, 40, 48, 41, 49, 56, 42, 00050 43, 44, 45, 55, 63, 54, 62, 53, 00051 61, 52, 60, 59, 51, 58, 50, 57 }; 00052 return map[channel]; 00053 00054 //the function throws a positin index: index%8 = xPad and index/8 = yPad 00055 00056 00057 }
ui32 Hardroc2IPNLChip::thresholdDac_0 [private] |
Definition at line 44 of file Hardroc2IPNLChip.hh.
Referenced by getThresholdDac_0(), Hardroc2IPNLChip(), and setThresholdDac_0().
ui32 Hardroc2IPNLChip::thresholdDac_1 [private] |
Definition at line 45 of file Hardroc2IPNLChip.hh.
Referenced by getThresholdDac_1(), Hardroc2IPNLChip(), and setThresholdDac_1().
ui32 Hardroc2IPNLChip::thresholdDac_2 [private] |
Definition at line 46 of file Hardroc2IPNLChip.hh.
Referenced by getThresholdDac_2(), Hardroc2IPNLChip(), and setThresholdDac_2().