![]() |
ATLAS Offline Software
|
Class which stores infomration on the SCT chips: id, config, mask. More...
#include <SCT_Chip.h>
Public Member Functions | |
| SCT_Chip () | |
| Default constructor. | |
| SCT_Chip (short id, short config, uint32_t mask0, uint32_t mask1, uint32_t mask2, uint32_t mask3) | |
| Actual constructor: create chip from id, config and four 32-bit masks. | |
| ~SCT_Chip ()=default | |
| Default destructor. | |
| short | id () const |
| Chip Id. | |
| short | inPort () const |
| Active input port. | |
| short | outPort () const |
| Active output port. | |
| bool | isEnd () const |
| Is chip an end. | |
| bool | isMaster () const |
| Is chip a master. | |
| bool | canBeMaster () const |
| Can chip be a master (i.e position 0 or 6) | |
| bool | slaveConfiguredAsMaster () const |
| Is this a slave chip mistakenly configured as a master. | |
| bool | initializeMaskFromInts (uint32_t mask0, uint32_t mask1, uint32_t mask2, uint32_t mask3) |
| Initialize channel mask from four ins (as in DB) | |
| bool | initializeMaskFromString (const std::string &maskString) |
| Initialize channel mask from a string. | |
| bool | channelIsMasked (const unsigned int channelNumber) const |
| Gives status of channel at channelNumber. | |
| unsigned int | numberOfMaskedChannels () const |
| Number of masked channels. | |
| void | appendBadStripsToVector (std::vector< int > &maskedChannelVector) const |
| Append masked channels' numbers to a user-supplied vector. | |
Private Types | |
| enum | { nSubwords = 4 , lenSubword = 32 , nBitsMask = 128 , nBitsConfig = 16 } |
| Enum for lengths of words. More... | |
| enum | { RO_BIT = 0 , CAL_BIT = 2 , TR_BIT = 4 , EDGE_BIT = 6 , MASK_BIT = 7 , ACC_BIT = 8 , IN_BIT = 9 , OUT_BIT = 10 , MASTER_BIT = 11 , END_BIT = 12 , FEED_BIT = 13 } |
| Enum describing the bits in the chip configuration. More... | |
Private Attributes | |
| short | m_id |
| Chip Id. | |
| std::bitset< nBitsConfig > | m_config |
| Chip configuration mask. | |
| short | m_in |
| Active input port. | |
| short | m_out |
| Active output port. | |
| bool | m_end |
| Is chip an end. | |
| bool | m_master |
| Is chip a master. | |
| std::bitset< nBitsMask > | m_mask |
| Chip strip mask. | |
Friends | |
| std::ostream & | operator<< (std::ostream &output, const SCT_Chip &chip) |
| Outputstream operator for chip. | |
Class which stores infomration on the SCT chips: id, config, mask.
Definition at line 27 of file SCT_Chip.h.
|
private |
Enum describing the bits in the chip configuration.
| Enumerator | |
|---|---|
| RO_BIT | |
| CAL_BIT | |
| TR_BIT | |
| EDGE_BIT | |
| MASK_BIT | |
| ACC_BIT | |
| IN_BIT | |
| OUT_BIT | |
| MASTER_BIT | |
| END_BIT | |
| FEED_BIT | |
Definition at line 74 of file SCT_Chip.h.
|
private |
Enum for lengths of words.
| Enumerator | |
|---|---|
| nSubwords | |
| lenSubword | |
| nBitsMask | |
| nBitsConfig | |
Definition at line 71 of file SCT_Chip.h.
| SCT_Chip::SCT_Chip | ( | ) |
Default constructor.
Definition at line 10 of file SCT_Chip.cxx.
| SCT_Chip::SCT_Chip | ( | short | id, |
| short | config, | ||
| uint32_t | mask0, | ||
| uint32_t | mask1, | ||
| uint32_t | mask2, | ||
| uint32_t | mask3 ) |
Actual constructor: create chip from id, config and four 32-bit masks.
Definition at line 17 of file SCT_Chip.cxx.
|
default |
Default destructor.
| void SCT_Chip::appendBadStripsToVector | ( | std::vector< int > & | maskedChannelVector | ) | const |
Append masked channels' numbers to a user-supplied vector.
Definition at line 80 of file SCT_Chip.cxx.
|
inline |
Can chip be a master (i.e position 0 or 6)
Definition at line 52 of file SCT_Chip.h.
| bool SCT_Chip::channelIsMasked | ( | const unsigned int | channelNumber | ) | const |
Gives status of channel at channelNumber.
Definition at line 70 of file SCT_Chip.cxx.
|
inline |
| bool SCT_Chip::initializeMaskFromInts | ( | uint32_t | mask0, |
| uint32_t | mask1, | ||
| uint32_t | mask2, | ||
| uint32_t | mask3 ) |
Initialize channel mask from four ins (as in DB)
Definition at line 28 of file SCT_Chip.cxx.
| bool SCT_Chip::initializeMaskFromString | ( | const std::string & | maskString | ) |
Initialize channel mask from a string.
Definition at line 45 of file SCT_Chip.cxx.
|
inline |
|
inline |
|
inline |
| unsigned int SCT_Chip::numberOfMaskedChannels | ( | ) | const |
Number of masked channels.
Definition at line 75 of file SCT_Chip.cxx.
|
inline |
|
inline |
Is this a slave chip mistakenly configured as a master.
Definition at line 55 of file SCT_Chip.h.
|
friend |
|
private |
Chip configuration mask.
Definition at line 79 of file SCT_Chip.h.
|
private |
Is chip an end.
Definition at line 82 of file SCT_Chip.h.
|
private |
Chip Id.
Definition at line 78 of file SCT_Chip.h.
|
private |
Active input port.
Definition at line 80 of file SCT_Chip.h.
|
private |
Chip strip mask.
Definition at line 84 of file SCT_Chip.h.
|
private |
Is chip a master.
Definition at line 83 of file SCT_Chip.h.
|
private |
Active output port.
Definition at line 81 of file SCT_Chip.h.