Hardroc2Chip Class Reference

#include <Hardroc2Chip.hh>

Inheritance diagram for Hardroc2Chip:

Inheritance graph
[legend]
Collaboration diagram for Hardroc2Chip:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Hardroc2Chip (const Board &aBoard, const i32 aCol, const i32 aRow, const i32 aId, const ui32 aSerialNumber)
virtual ~Hardroc2Chip ()
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

Detailed Description

Definition at line 19 of file Hardroc2Chip.hh.


Constructor & Destructor Documentation

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

Definition at line 12 of file Hardroc2Chip.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 }; // Hardroc2Chip

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

Definition at line 22 of file Hardroc2Chip.hh.

00022 { };


Member Function Documentation

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

Implements Chip.

Definition at line 26 of file Hardroc2Chip.hh.

00026 { return(0); }; 

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

Implements Chip.

Definition at line 27 of file Hardroc2Chip.hh.

00027 { return(0); };

ui32 Hardroc2Chip::getThresholdDac_0 (  )  const [inline]

Definition at line 29 of file Hardroc2Chip.hh.

Referenced by MTHardroc2Chip::operator=().

00029 { return  thresholdDac_0;};

ui32 Hardroc2Chip::getThresholdDac_1 (  )  const [inline]

Definition at line 30 of file Hardroc2Chip.hh.

Referenced by MTHardroc2Chip::operator=().

00030 { return thresholdDac_1;};

ui32 Hardroc2Chip::getThresholdDac_2 (  )  const [inline]

Definition at line 31 of file Hardroc2Chip.hh.

Referenced by MTHardroc2Chip::operator=().

00031 { return thresholdDac_2;};

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

Definition at line 33 of file Hardroc2Chip.hh.

Referenced by Hardroc2LabviewReader::getScData().

00033 { thresholdDac_0 = value;};

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

Definition at line 34 of file Hardroc2Chip.hh.

Referenced by Hardroc2LabviewReader::getScData().

00034 {thresholdDac_1  = value;}

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

Definition at line 35 of file Hardroc2Chip.hh.

00035 {thresholdDac_2  = value;}

void Hardroc2Chip::init (  )  [private]

Definition at line 22 of file Hardroc2Chip.cpp.

Referenced by Hardroc2Chip().

00023 {
00024 //  FILE_LOG(logDEBUG) << "---Hardroc2Chip " << nbColumns << "cols, " << nbRows << " rows" << endl;
00025     for (int channelId = 0; channelId <= 63 ; channelId++) {
00026       int map = HRmap(channelId);
00027       //Hardroc2Channel *channel = new Hardroc2Channel(*this, map%8, map/8, channelId);
00028       Hardroc2Channel *channel = new Hardroc2Channel(*this, map/8, map%8, channelId);
00029       channels.insert(make_pair(channelId,channel));
00030     }
00031 }; // Hardroc2Chip.ini

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

Definition at line 50 of file Hardroc2Chip.cpp.

Referenced by init().

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


Member Data Documentation

ui32 Hardroc2Chip::thresholdDac_0 [private]

Definition at line 44 of file Hardroc2Chip.hh.

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

ui32 Hardroc2Chip::thresholdDac_1 [private]

Definition at line 45 of file Hardroc2Chip.hh.

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

ui32 Hardroc2Chip::thresholdDac_2 [private]

Definition at line 46 of file Hardroc2Chip.hh.

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


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