MicrorocChip Class Reference

#include <MicrorocChip.hh>

Inheritance diagram for MicrorocChip:

Inheritance graph
[legend]
Collaboration diagram for MicrorocChip:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MicrorocChip (const Board &aBoard, const i32 aCol, const i32 aRow, const i32 aId, const ui32 aSerialNumber)
virtual ~MicrorocChip ()
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)
ui16 getShaper_lg () const
ui16 getShaper_hg () const
void setShaper_lg (ui16 value)
void setShaper_hg (ui16 value)

Private Member Functions

void init ()
int HRmap (int channel)

Private Attributes

ui32 thresholdDac_0
ui32 thresholdDac_1
ui32 thresholdDac_2
ui16 shaper_lg
ui16 shaper_hg

Detailed Description

Definition at line 19 of file MicrorocChip.hh.


Constructor & Destructor Documentation

MicrorocChip::MicrorocChip ( const Board aBoard,
const i32  aCol,
const i32  aRow,
const i32  aId,
const ui32  aSerialNumber 
)

Definition at line 16 of file MicrorocChip.cpp.

00017   :Chip(aBoard, aCol, aRow, 8, 8, aId, aSerialNumber)
00018 {
00019   init();
00020   thresholdDac_0 = 0;
00021   thresholdDac_1 = 0;
00022   thresholdDac_2 = 0;
00023   bypassed = true;
00024 
00025 }; // MicrorocChip

virtual MicrorocChip::~MicrorocChip (  )  [inline, virtual]

Definition at line 22 of file MicrorocChip.hh.

00022 { };


Member Function Documentation

const ui32 MicrorocChip::getXGap (  )  const [inline, virtual]

Implements Chip.

Definition at line 26 of file MicrorocChip.hh.

00026 { return(0); };// 200 beetwen Pad in micrometer

const ui32 MicrorocChip::getYGap (  )  const [inline, virtual]

Implements Chip.

Definition at line 27 of file MicrorocChip.hh.

00027 { return(0); };// 200 beetwen Pad in micrometer 

ui32 MicrorocChip::getThresholdDac_0 (  )  const [inline]

Definition at line 29 of file MicrorocChip.hh.

Referenced by MTMicrorocChip::operator=().

00029 { return  thresholdDac_0;};

ui32 MicrorocChip::getThresholdDac_1 (  )  const [inline]

Definition at line 30 of file MicrorocChip.hh.

Referenced by MTMicrorocChip::operator=().

00030 { return thresholdDac_1;};

ui32 MicrorocChip::getThresholdDac_2 (  )  const [inline]

Definition at line 31 of file MicrorocChip.hh.

Referenced by MTMicrorocChip::operator=().

00031 { return thresholdDac_2;};

void MicrorocChip::setThresholdDac_0 ( ui32  value  )  [inline]

Definition at line 33 of file MicrorocChip.hh.

Referenced by MicrorocSCReader::parseSC(), and MicrorocSCReader::parseSCFromDb().

00033 { thresholdDac_0 = value;};

void MicrorocChip::setThresholdDac_1 ( ui32  value  )  [inline]

Definition at line 34 of file MicrorocChip.hh.

Referenced by MicrorocSCReader::parseSC(), and MicrorocSCReader::parseSCFromDb().

00034 {thresholdDac_1  = value;}

void MicrorocChip::setThresholdDac_2 ( ui32  value  )  [inline]

Definition at line 35 of file MicrorocChip.hh.

Referenced by MicrorocSCReader::parseSC(), and MicrorocSCReader::parseSCFromDb().

00035 {thresholdDac_2  = value;}

ui16 MicrorocChip::getShaper_lg (  )  const [inline]

Definition at line 37 of file MicrorocChip.hh.

Referenced by MTMicrorocChip::operator=().

00037 { return shaper_lg;};

ui16 MicrorocChip::getShaper_hg (  )  const [inline]

Definition at line 38 of file MicrorocChip.hh.

Referenced by MTMicrorocChip::operator=().

00038 { return shaper_hg;};

void MicrorocChip::setShaper_lg ( ui16  value  )  [inline]

Definition at line 40 of file MicrorocChip.hh.

Referenced by MicrorocSCReader::parseSC(), and MicrorocSCReader::parseSCFromDb().

00040 { shaper_lg = value;};

void MicrorocChip::setShaper_hg ( ui16  value  )  [inline]

Definition at line 41 of file MicrorocChip.hh.

Referenced by MicrorocSCReader::parseSC(), and MicrorocSCReader::parseSCFromDb().

00041 { shaper_hg = value;};

void MicrorocChip::init (  )  [private]

Definition at line 28 of file MicrorocChip.cpp.

Referenced by MicrorocChip().

00029 {
00030 //  FILE_LOG(logDEBUG) << "---MicrorocChip " << nbColumns << "cols, " << nbRows << " rows" << endl;
00031     for (int channelId = 0; channelId <= 63 ; channelId++) {
00032       int map = HRmap(channelId);
00033       MicrorocChannel *channel = new MicrorocChannel(*this, map/8, map%8, channelId);
00034       channels.insert(make_pair(channelId,channel));
00035     }
00036 }; // MicrorocChip.ini

int MicrorocChip::HRmap ( int  channel  )  [private]

Definition at line 55 of file MicrorocChip.cpp.

Referenced by init().

00056 {
00057 
00058 
00059   if(channel<0||channel>63)
00060   {
00061       FILE_LOG(logERROR)<<"map error  channel="<<channel<<endl;return-1;
00062   }
00063 
00064    const int map[64]=
00065   {7,  6,  5,  4,  3,  2,  1,   0,
00066    15, 14, 13, 12, 11, 10, 9 ,  8,
00067    23, 22 ,21 ,20 ,19, 18, 17, 16,
00068    31, 30, 29, 28, 27, 26, 25, 24,
00069    39, 38, 37, 36, 35, 34, 33, 32,
00070    47, 46, 45, 44, 43, 42, 41, 40,
00071    55, 54, 53, 52, 51, 50, 49, 48,
00072    63, 62, 61, 60, 59, 58, 57, 56};
00073 
00074   return map[channel];
00075 
00076   //the function throws a positin index: index%8 = xPad and index/8 = yPad
00077 
00078 
00079 }


Member Data Documentation

ui32 MicrorocChip::thresholdDac_0 [private]

Definition at line 54 of file MicrorocChip.hh.

Referenced by getThresholdDac_0(), MicrorocChip(), and setThresholdDac_0().

ui32 MicrorocChip::thresholdDac_1 [private]

Definition at line 55 of file MicrorocChip.hh.

Referenced by getThresholdDac_1(), MicrorocChip(), and setThresholdDac_1().

ui32 MicrorocChip::thresholdDac_2 [private]

Definition at line 56 of file MicrorocChip.hh.

Referenced by getThresholdDac_2(), MicrorocChip(), and setThresholdDac_2().

ui16 MicrorocChip::shaper_lg [private]

Definition at line 58 of file MicrorocChip.hh.

Referenced by getShaper_lg(), and setShaper_lg().

ui16 MicrorocChip::shaper_hg [private]

Definition at line 59 of file MicrorocChip.hh.

Referenced by getShaper_hg(), and setShaper_hg().


The documentation for this class was generated from the following files:
Generated on Mon Jan 7 13:18:44 2013 for MicromegasFramework by  doxygen 1.4.7