|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #ifndef SCT_ConditionTools_SCT_Chip_h
14 #define SCT_ConditionTools_SCT_Chip_h
42 inline short id()
const {
return m_id;}
89 output <<
"Chip " << std::setw(2) << chip.
m_id <<
":\t"
90 << (chip.
m_master ?
"MASTER" :
"SLAVE") << (chip.
m_end ?
" END" :
"")
91 <<
", IN PORT = " << chip.
m_in <<
", OUT PORT = " << chip.
m_out <<
"\n"
92 <<
"Config = " << chip.
m_config <<
"\n"
93 <<
"Mask = " << chip.
m_mask;
97 #endif // SCT_ConditionTools_SCT_Chip_h
short m_out
Active output port.
bool m_end
Is chip an end.
std::ostream & operator<<(std::ostream &output, const SCT_Chip &chip)
Output stream for printing chip information.
Class which stores infomration on the SCT chips: id, config, mask.
bool channelIsMasked(const unsigned int channelNumber) const
Gives status of channel at channelNumber.
void appendBadStripsToVector(std::vector< int > &maskedChannelVector) const
Append masked channels' numbers to a user-supplied vector.
bool initializeMaskFromString(const std::string &maskString)
Initialize channel mask from a string.
bool isEnd() const
Is chip an end.
unsigned int numberOfMaskedChannels() const
Number of masked channels.
bool canBeMaster() const
Can chip be a master (i.e position 0 or 6)
friend std::ostream & operator<<(std::ostream &output, const SCT_Chip &chip)
Outputstream operator for chip.
std::bitset< nBitsMask > m_mask
Chip strip mask.
SCT_Chip()
Default constructor.
short outPort() const
Active output port.
bool isMaster() const
Is chip a master.
short inPort() const
Active input port.
std::bitset< nBitsConfig > m_config
Chip configuration mask.
short m_in
Active input port.
bool initializeMaskFromInts(uint32_t mask0, uint32_t mask1, uint32_t mask2, uint32_t mask3)
Initialize channel mask from four ins (as in DB)
bool m_master
Is chip a master.
bool slaveConfiguredAsMaster() const
Is this a slave chip mistakenly configured as a master.
~SCT_Chip()=default
Default destructor.