Belle II Software development
ARICHAsicInfo Class Reference

Tested ASIC chips. More...

#include <ARICHAsicInfo.h>

Inheritance diagram for ARICHAsicInfo:

Public Member Functions

 ARICHAsicInfo ()
 Default constructor.
 
 ARICHAsicInfo (const std::string &id, TTimeStamp timeFinishGain, TTimeStamp timeFinishOffset, std::vector< int > &deadChannel, std::vector< int > &badConnChannel, std::vector< int > &badOffsetChannel, std::vector< int > &badLinChannel, int numProbCh, std::vector< TH3F * > &gain, std::vector< TH3F * > &offset, const std::string &comment)
 Constructor.
 
 ~ARICHAsicInfo ()
 Destructor.
 
std::string getAsicID () const
 Get ASIC identifier.
 
void setAsicID (const std::string &id)
 Set ASIC identifier.
 
TTimeStamp getTimeFinishGain () const
 Get test date gain - finish.
 
void setTimeFinishGain (TTimeStamp timeFinishGain)
 Set test date gain - finish.
 
TTimeStamp getTimeFinishOffset () const
 Get test date offset - finish.
 
void setTimeFinishOffset (TTimeStamp timeFinishOffset)
 Set Test date offset - finish.
 
int getDeadChannel (unsigned int i) const
 Get a channel number from the list of dead channels.
 
void appendDeadChannel (int channel)
 Add a channel number to the list of dead channels.
 
void setDeadChannels (const std::vector< int > &deadChannels)
 Set vector of dead channel numbers.
 
int getDeadChannelsSize () const
 Get size of the list of dead channels.
 
int getBadConnChannel (unsigned int i) const
 Get a channel number from the list of channels with bad connections.
 
void appendBadConnChannel (int channel)
 Add a channel number to the list of channels with bad connections.
 
void setBadConnChannels (const std::vector< int > &badConnChannels)
 Set vector of bad connection channel numbers.
 
int getBadConnChannelsSize () const
 Get size of the list of channels with bad connections.
 
int getBadOffsetChannel (unsigned int i) const
 Get a channel number from the list of channels with bad offset adjustment.
 
void appendBadOffsetChannel (int channel)
 Add a channel number to the list of channels with bad offset adjustment.
 
void setBadOffsetChannels (const std::vector< int > &badOffsetChannels)
 Set vector of bad offset channel numbers.
 
int getBadOffsetChannelsSize () const
 Get size of the list of channels with bad offset adjustment.
 
int getBadLinChannel (unsigned int i) const
 Get a channel number from the list of channels with bad linearity.
 
void appendBadLinChannel (int channel)
 Add a channel number to the list of channels with bad linearity.
 
void setBadLinChannels (const std::vector< int > &badLinChannels)
 Set vector of bad linearity channel numbers.
 
int getBadLinChannelsSize () const
 Get size of the list of channels with bad linearity.
 
float getNumOfProblematicChannels () const
 Get number of problematic channels.
 
void setNumOfProblematicChannels (int numProbCh)
 Set number of problematic channels.
 
TH3F * getGainMeasurement (unsigned int i) const
 Get measurements with different gain settings.
 
void setGainMeasurement (std::vector< TH3F * > gain)
 Set measurements with different gain settings.
 
TH3F * getOffsetMeasurement (unsigned int i) const
 Get measurements with different offset settings.
 
void setOffsetMeasurement (std::vector< TH3F * > offset)
 Set measurements with different offset settings.
 
std::string getComment () const
 Get comment.
 
void setComment (const std::string &comment)
 Set comment.
 

Private Member Functions

 ClassDef (ARICHAsicInfo, 3)
 ClassDef.
 

Private Attributes

std::string m_id
 Asic Identifier.
 
TTimeStamp m_timeFinishGain
 Test Date of gain measurements - finish.
 
TTimeStamp m_timeFinishOffset
 Test Date of offset measurements - finish.
 
std::vector< int > m_deadChannel
 List of dead channels on the ASIC chip.
 
std::vector< int > m_badConnChannel
 List of channels with bad connections during the measurement.
 
std::vector< int > m_badOffsetChannel
 List of channels with bad offset adjustment.
 
std::vector< int > m_badLinChannel
 List of channels with bad linearity.
 
int m_numProblematicChannels
 Number of channels with problems.
 
std::vector< TH3F * > m_gain
 Threshold scans with different gain settings.
 
std::vector< TH3F * > m_offset
 Threshold scans with different offset settings (course & fine offset)
 
std::string m_comment
 Comment.
 

Detailed Description

Tested ASIC chips.

Definition at line 25 of file ARICHAsicInfo.h.

Constructor & Destructor Documentation

◆ ARICHAsicInfo() [1/2]

ARICHAsicInfo ( )
inline

Default constructor.

Definition at line 32 of file ARICHAsicInfo.h.

std::string m_comment
Comment.
std::vector< TH3F * > m_gain
Threshold scans with different gain settings.
std::vector< int > m_deadChannel
List of dead channels on the ASIC chip.
std::vector< int > m_badConnChannel
List of channels with bad connections during the measurement.
std::string m_id
Asic Identifier.
TTimeStamp m_timeFinishGain
Test Date of gain measurements - finish.
TTimeStamp m_timeFinishOffset
Test Date of offset measurements - finish.
int m_numProblematicChannels
Number of channels with problems.
std::vector< int > m_badLinChannel
List of channels with bad linearity.
std::vector< TH3F * > m_offset
Threshold scans with different offset settings (course & fine offset)
std::vector< int > m_badOffsetChannel
List of channels with bad offset adjustment.

◆ ARICHAsicInfo() [2/2]

ARICHAsicInfo ( const std::string &  id,
TTimeStamp  timeFinishGain,
TTimeStamp  timeFinishOffset,
std::vector< int > &  deadChannel,
std::vector< int > &  badConnChannel,
std::vector< int > &  badOffsetChannel,
std::vector< int > &  badLinChannel,
int  numProbCh,
std::vector< TH3F * > &  gain,
std::vector< TH3F * > &  offset,
const std::string &  comment 
)
inline

Constructor.

Definition at line 38 of file ARICHAsicInfo.h.

40 : m_id(id), m_timeFinishGain(timeFinishGain),
41 m_timeFinishOffset(timeFinishOffset), m_deadChannel(deadChannel), m_badConnChannel(badConnChannel),
42 m_badOffsetChannel(badOffsetChannel), m_badLinChannel(badLinChannel), m_numProblematicChannels(numProbCh), m_gain(gain),
43 m_offset(offset), m_comment(comment) {};

◆ ~ARICHAsicInfo()

~ARICHAsicInfo ( )
inline

Destructor.

Definition at line 48 of file ARICHAsicInfo.h.

48{};

Member Function Documentation

◆ appendBadConnChannel()

void appendBadConnChannel ( int  channel)
inline

Add a channel number to the list of channels with bad connections.

Parameters
[in]channelASIC channel id.

Definition at line 122 of file ARICHAsicInfo.h.

122{ m_badConnChannel.push_back(channel); }

◆ appendBadLinChannel()

void appendBadLinChannel ( int  channel)
inline

Add a channel number to the list of channels with bad linearity.

Parameters
[in]channelASIC channel id.

Definition at line 173 of file ARICHAsicInfo.h.

173{ m_badLinChannel.push_back(channel); }

◆ appendBadOffsetChannel()

void appendBadOffsetChannel ( int  channel)
inline

Add a channel number to the list of channels with bad offset adjustment.

Parameters
[in]channelASIC channel id.

Definition at line 148 of file ARICHAsicInfo.h.

148{ m_badOffsetChannel.push_back(channel); }

◆ appendDeadChannel()

void appendDeadChannel ( int  channel)
inline

Add a channel number to the list of dead channels.

Parameters
[in]channelASIC channel id

Definition at line 97 of file ARICHAsicInfo.h.

97{m_deadChannel.push_back(channel); }

◆ getAsicID()

std::string getAsicID ( ) const
inline

Get ASIC identifier.

Returns
ASIC identifier.

Definition at line 54 of file ARICHAsicInfo.h.

54{return m_id; }

◆ getBadConnChannel()

int getBadConnChannel ( unsigned int  i) const

Get a channel number from the list of channels with bad connections.

Parameters
[in]iIndex of the element in the list.
Returns
Channel id.

Definition at line 21 of file ARICHAsicInfo.cc.

22{
23 if (i < m_badConnChannel.size()) return m_badConnChannel[i];
24 else return -1;
25}

◆ getBadConnChannelsSize()

int getBadConnChannelsSize ( ) const
inline

Get size of the list of channels with bad connections.

Returns
Size.

Definition at line 134 of file ARICHAsicInfo.h.

134{return m_badConnChannel.size();}

◆ getBadLinChannel()

int getBadLinChannel ( unsigned int  i) const

Get a channel number from the list of channels with bad linearity.

Parameters
[in]iIndex of the element in the list.
Returns
channel id

Definition at line 35 of file ARICHAsicInfo.cc.

36{
37 if (i < m_badLinChannel.size()) return m_badLinChannel[i];
38 else return -1;
39}

◆ getBadLinChannelsSize()

int getBadLinChannelsSize ( ) const
inline

Get size of the list of channels with bad linearity.

Returns
Size.

Definition at line 185 of file ARICHAsicInfo.h.

185{return m_badLinChannel.size();}

◆ getBadOffsetChannel()

int getBadOffsetChannel ( unsigned int  i) const

Get a channel number from the list of channels with bad offset adjustment.

Parameters
[in]iIndex of the element in the list.
Returns
Channel id.

Definition at line 28 of file ARICHAsicInfo.cc.

29{
30 if (i < m_badOffsetChannel.size()) return m_badOffsetChannel[i];
31 else return -1;
32}

◆ getBadOffsetChannelsSize()

int getBadOffsetChannelsSize ( ) const
inline

Get size of the list of channels with bad offset adjustment.

Returns
Size.

Definition at line 160 of file ARICHAsicInfo.h.

160{return m_badOffsetChannel.size();}

◆ getComment()

std::string getComment ( ) const
inline

Get comment.

Returns
Comment.

Definition at line 227 of file ARICHAsicInfo.h.

227{return m_comment; }

◆ getDeadChannel()

int getDeadChannel ( unsigned int  i) const

Get a channel number from the list of dead channels.

Parameters
[in]iIndex of the element in the list.
Returns
Channel id.

Definition at line 14 of file ARICHAsicInfo.cc.

15{
16 if (i < m_deadChannel.size()) return m_deadChannel[i];
17 else return -1;
18}

◆ getDeadChannelsSize()

int getDeadChannelsSize ( ) const
inline

Get size of the list of dead channels.

Returns
Size.

Definition at line 109 of file ARICHAsicInfo.h.

109{return m_deadChannel.size();}

◆ getGainMeasurement()

TH3F * getGainMeasurement ( unsigned int  i) const

Get measurements with different gain settings.

Returns
Measurements with different gain settings.

Definition at line 42 of file ARICHAsicInfo.cc.

43{
44 if (i < m_gain.size()) return m_gain[i];
45 else return NULL;
46}

◆ getNumOfProblematicChannels()

float getNumOfProblematicChannels ( ) const
inline

Get number of problematic channels.

Returns
Number of problematic channels.

Definition at line 191 of file ARICHAsicInfo.h.

◆ getOffsetMeasurement()

TH3F * getOffsetMeasurement ( unsigned int  i) const

Get measurements with different offset settings.

Returns
Measurements with different offset settings.

Definition at line 55 of file ARICHAsicInfo.cc.

56{
57 if (i < m_offset.size()) return m_offset[i];
58 else return NULL;
59}

◆ getTimeFinishGain()

TTimeStamp getTimeFinishGain ( ) const
inline

Get test date gain - finish.

Returns
Test date gain - finish.

Definition at line 66 of file ARICHAsicInfo.h.

66{return m_timeFinishGain; }

◆ getTimeFinishOffset()

TTimeStamp getTimeFinishOffset ( ) const
inline

Get test date offset - finish.

Returns
Test date offset - finish.

Definition at line 78 of file ARICHAsicInfo.h.

78{return m_timeFinishOffset; }

◆ setAsicID()

void setAsicID ( const std::string &  id)
inline

Set ASIC identifier.

Parameters
[in]idASIC identifier.

Definition at line 60 of file ARICHAsicInfo.h.

60{m_id = id; }

◆ setBadConnChannels()

void setBadConnChannels ( const std::vector< int > &  badConnChannels)
inline

Set vector of bad connection channel numbers.

Parameters
[in]badConnChannelsASIC channel id.

Definition at line 128 of file ARICHAsicInfo.h.

128{m_badConnChannel = badConnChannels; }

◆ setBadLinChannels()

void setBadLinChannels ( const std::vector< int > &  badLinChannels)
inline

Set vector of bad linearity channel numbers.

Parameters
[in]badLinChannelsASIC channel id.

Definition at line 179 of file ARICHAsicInfo.h.

179{m_badLinChannel = badLinChannels; }

◆ setBadOffsetChannels()

void setBadOffsetChannels ( const std::vector< int > &  badOffsetChannels)
inline

Set vector of bad offset channel numbers.

Parameters
[in]badOffsetChannelsASIC channel id.

Definition at line 154 of file ARICHAsicInfo.h.

154{m_badOffsetChannel = badOffsetChannels; }

◆ setComment()

void setComment ( const std::string &  comment)
inline

Set comment.

Parameters
[in]commentComment.

Definition at line 233 of file ARICHAsicInfo.h.

233{m_comment = comment; }

◆ setDeadChannels()

void setDeadChannels ( const std::vector< int > &  deadChannels)
inline

Set vector of dead channel numbers.

Parameters
[in]deadChannelsASIC channel id.

Definition at line 103 of file ARICHAsicInfo.h.

103{m_deadChannel = deadChannels; }

◆ setGainMeasurement()

void setGainMeasurement ( std::vector< TH3F * >  gain)

Set measurements with different gain settings.

Parameters
[in]gainMeasurements with different gain settings.

Definition at line 49 of file ARICHAsicInfo.cc.

50{
51 for (unsigned int i = 0; i < gain.size(); i++) m_gain.push_back(gain[i]);
52}

◆ setNumOfProblematicChannels()

void setNumOfProblematicChannels ( int  numProbCh)
inline

Set number of problematic channels.

Parameters
[in]numProbChNumber of problematic channels.

Definition at line 197 of file ARICHAsicInfo.h.

197{m_numProblematicChannels = numProbCh; }

◆ setOffsetMeasurement()

void setOffsetMeasurement ( std::vector< TH3F * >  offset)

Set measurements with different offset settings.

Parameters
[in]offsetMeasurements with different offset settings.

Definition at line 62 of file ARICHAsicInfo.cc.

63{
64 for (unsigned int i = 0; i < offset.size(); i++) m_offset.push_back(offset[i]);
65}

◆ setTimeFinishGain()

void setTimeFinishGain ( TTimeStamp  timeFinishGain)
inline

Set test date gain - finish.

Parameters
[in]timeFinishGainTest date gain - finish.

Definition at line 72 of file ARICHAsicInfo.h.

72{m_timeFinishGain = timeFinishGain; }

◆ setTimeFinishOffset()

void setTimeFinishOffset ( TTimeStamp  timeFinishOffset)
inline

Set Test date offset - finish.

Parameters
[in]timeFinishOffsetTest date offset - finish.

Definition at line 84 of file ARICHAsicInfo.h.

84{m_timeFinishOffset = timeFinishOffset; }

Member Data Documentation

◆ m_badConnChannel

std::vector<int> m_badConnChannel
private

List of channels with bad connections during the measurement.

Definition at line 241 of file ARICHAsicInfo.h.

◆ m_badLinChannel

std::vector<int> m_badLinChannel
private

List of channels with bad linearity.

Definition at line 243 of file ARICHAsicInfo.h.

◆ m_badOffsetChannel

std::vector<int> m_badOffsetChannel
private

List of channels with bad offset adjustment.

Definition at line 242 of file ARICHAsicInfo.h.

◆ m_comment

std::string m_comment
private

Comment.

Definition at line 247 of file ARICHAsicInfo.h.

◆ m_deadChannel

std::vector<int> m_deadChannel
private

List of dead channels on the ASIC chip.

Definition at line 240 of file ARICHAsicInfo.h.

◆ m_gain

std::vector<TH3F*> m_gain
private

Threshold scans with different gain settings.

Definition at line 245 of file ARICHAsicInfo.h.

◆ m_id

std::string m_id
private

Asic Identifier.

Definition at line 237 of file ARICHAsicInfo.h.

◆ m_numProblematicChannels

int m_numProblematicChannels
private

Number of channels with problems.

Definition at line 244 of file ARICHAsicInfo.h.

◆ m_offset

std::vector<TH3F*> m_offset
private

Threshold scans with different offset settings (course & fine offset)

Definition at line 246 of file ARICHAsicInfo.h.

◆ m_timeFinishGain

TTimeStamp m_timeFinishGain
private

Test Date of gain measurements - finish.

Definition at line 238 of file ARICHAsicInfo.h.

◆ m_timeFinishOffset

TTimeStamp m_timeFinishOffset
private

Test Date of offset measurements - finish.

Definition at line 239 of file ARICHAsicInfo.h.


The documentation for this class was generated from the following files: