ATLAS Offline Software
|
#include <SCT_ReadoutData.h>
Public Member Functions | |
SCT_ReadoutData (IMessageSvc *msgSvc=nullptr) | |
~SCT_ReadoutData ()=default | |
SCT_ReadoutData (const SCT_ReadoutData &)=delete | |
No copy ctor. More... | |
SCT_ReadoutData & | operator= (const SCT_ReadoutData &)=delete |
No assignment operator. More... | |
SCT_Parameters::ChipType | inputChip (const SCT_Chip &chip) const |
Find the ID of the input chip for chip. More... | |
SCT_Parameters::ChipType | outputChip (const SCT_Chip &chip) const |
Find the ID of the output chip for chip. More... | |
void | setChipIn (const SCT_Chip &chip, int link) |
Set chip in readout and which link it is on. More... | |
void | setChipOut (const SCT_Chip &chip) |
Set chip out of readout and reset link. More... | |
bool | isChipReadOut (const SCT_Chip &chip) const |
Test if chip is in readout or not. More... | |
void | setModuleType (const Identifier &moduleId, int bec) |
Set the module type. More... | |
void | setChipMap () |
Fill the chip mapping. More... | |
void | checkLink (int link) |
Check which chips are in the readout for a particular link and if the readout is sane. More... | |
bool | hasConnectedInput (const SCT_Chip &chip) const |
Chip has a correctly connected input. More... | |
bool | isEndBeingTalkedTo (const SCT_Chip &chip) const |
Chip is an end but is being talked to. More... | |
void | maskChipsNotInReadout () |
Mask the chips that are not in the readout. More... | |
bool | followReadoutUpstream (int link, const SCT_Chip &chip, int remainingDepth=12) |
Follow the readout to the input side. More... | |
bool | isLinkStandard (int link) const |
is the readout for a particular link sane More... | |
void | printStatus (const Identifier &moduleId) const |
Print readout status. More... | |
void | setChips (std::vector< SCT_Chip > &chips) |
Set SCT_Chip vectors. More... | |
void | setLinkStatus (bool link0ok, bool link1ok) |
Set link status. More... | |
void | clearChipReadout () |
Set all chips out of readout and clear both links to start. More... | |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
std::vector< SCT_Chip > * | m_chips {nullptr} |
Private data. More... | |
std::vector< SCT_PortMap > | m_chipMap {} |
Vector of port mapping from the chips in an SCT module. More... | |
bool | m_linkActive [2] {false, false} |
Links status for link 0 and 1. More... | |
std::bitset< SCT_Parameters::NChips > | m_chipInReadout {} |
Bitset indicating whether a chip is readout or not. More... | |
SCT_Parameters::ModuleType | m_type {SCT_Parameters::BARREL} |
The type of this module (Barrel, Modified Barrel (0 or 1), Endcap) More... | |
std::vector< int > | m_chipsOnLink0 {} |
The chips read out on link 0. More... | |
std::vector< int > | m_chipsOnLink1 {} |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
Definition at line 40 of file SCT_ReadoutData.h.
SCT_ReadoutData::SCT_ReadoutData | ( | IMessageSvc * | msgSvc = nullptr | ) |
Definition at line 38 of file SCT_ReadoutData.cxx.
|
default |
|
delete |
No copy ctor.
void SCT_ReadoutData::checkLink | ( | int | link | ) |
Check which chips are in the readout for a particular link and if the readout is sane.
Definition at line 118 of file SCT_ReadoutData.cxx.
void SCT_ReadoutData::clearChipReadout | ( | ) |
Set all chips out of readout and clear both links to start.
Definition at line 318 of file SCT_ReadoutData.cxx.
bool SCT_ReadoutData::followReadoutUpstream | ( | int | link, |
const SCT_Chip & | chip, | ||
int | remainingDepth = 12 |
||
) |
Follow the readout to the input side.
Definition at line 192 of file SCT_ReadoutData.cxx.
Chip has a correctly connected input.
Definition at line 137 of file SCT_ReadoutData.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inline |
Find the ID of the input chip for chip.
Definition at line 54 of file SCT_ReadoutData.h.
Test if chip is in readout or not.
Definition at line 76 of file SCT_ReadoutData.h.
Chip is an end but is being talked to.
Definition at line 162 of file SCT_ReadoutData.cxx.
bool SCT_ReadoutData::isLinkStandard | ( | int | link | ) | const |
void SCT_ReadoutData::maskChipsNotInReadout | ( | ) |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
lvl | The message level to test against |
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
delete |
No assignment operator.
|
inline |
Find the ID of the output chip for chip.
Definition at line 59 of file SCT_ReadoutData.h.
void SCT_ReadoutData::printStatus | ( | const Identifier & | moduleId | ) | const |
void SCT_ReadoutData::setChipMap | ( | ) |
Set chip out of readout and reset link.
Definition at line 71 of file SCT_ReadoutData.h.
void SCT_ReadoutData::setChips | ( | std::vector< SCT_Chip > & | chips | ) |
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
void SCT_ReadoutData::setLinkStatus | ( | bool | link0ok, |
bool | link1ok | ||
) |
Set link status.
Definition at line 312 of file SCT_ReadoutData.cxx.
void SCT_ReadoutData::setModuleType | ( | const Identifier & | moduleId, |
int | bec | ||
) |
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Bitset indicating whether a chip is readout or not.
Definition at line 122 of file SCT_ReadoutData.h.
|
private |
Vector of port mapping from the chips in an SCT module.
Definition at line 120 of file SCT_ReadoutData.h.
|
private |
Private data.
Vector of actual SCT Chips for that module
Definition at line 119 of file SCT_ReadoutData.h.
|
private |
The chips read out on link 0.
Definition at line 124 of file SCT_ReadoutData.h.
|
private |
Definition at line 125 of file SCT_ReadoutData.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
private |
Links status for link 0 and 1.
Definition at line 121 of file SCT_ReadoutData.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
The type of this module (Barrel, Modified Barrel (0 or 1), Endcap)
Definition at line 123 of file SCT_ReadoutData.h.