|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #ifndef SCT_ConditionData_SCT_ReadoutData_h
14 #define SCT_ConditionData_SCT_ReadoutData_h
108 void setChips(std::vector<SCT_Chip>& chips);
128 #endif // SCT_ConditionData_SCT_ReadoutData_h
void checkLink(int link)
Check which chips are in the readout for a particular link and if the readout is sane.
bool isEndBeingTalkedTo(const SCT_Chip &chip) const
Chip is an end but is being talked to.
ModuleType
Enums for module and chip type.
std::bitset< SCT_Parameters::NChips > m_chipInReadout
Bitset indicating whether a chip is readout or not.
Header file for the SCT_PortMap class.
void clearChipReadout()
Set all chips out of readout and clear both links to start.
void setChipIn(const SCT_Chip &chip, int link)
Set chip in readout and which link it is on.
std::vector< int > m_chipsOnLink0
The chips read out on link 0.
Class which stores infomration on the SCT chips: id, config, mask.
SCT_ReadoutData(const SCT_ReadoutData &)=delete
No copy ctor.
void setChips(std::vector< SCT_Chip > &chips)
Set SCT_Chip vectors.
SCT_ReadoutData & operator=(const SCT_ReadoutData &)=delete
No assignment operator.
SCT_Parameters::ChipType inputChip(const SCT_Chip &chip) const
Find the ID of the input chip for chip.
bool isLinkStandard(int link) const
is the readout for a particular link sane
std::vector< SCT_Chip > * m_chips
Private data.
SCT_ReadoutData(IMessageSvc *msgSvc=nullptr)
bool followReadoutUpstream(int link, const SCT_Chip &chip, int remainingDepth=12)
Follow the readout to the input side.
void setModuleType(const Identifier &moduleId, int bec)
Set the module type.
msgSvc
Provide convenience handles for various services.
short outPort() const
Active output port.
std::vector< SCT_PortMap > m_chipMap
Vector of port mapping from the chips in an SCT module.
void setLinkStatus(bool link0ok, bool link1ok)
Set link status.
Class to provide easy MsgStream access and capabilities.
bool hasConnectedInput(const SCT_Chip &chip) const
Chip has a correctly connected input.
bool m_linkActive[2]
Links status for link 0 and 1.
short inPort() const
Active input port.
void setChipMap()
Fill the chip mapping.
SCT_Parameters::ChipType outputChip(const SCT_Chip &chip) const
Find the ID of the output chip for chip.
~SCT_ReadoutData()=default
void maskChipsNotInReadout()
Mask the chips that are not in the readout.
bool isChipReadOut(const SCT_Chip &chip) const
Test if chip is in readout or not.
void printStatus(const Identifier &moduleId) const
Print readout status.
SCT_Parameters::ModuleType m_type
The type of this module (Barrel, Modified Barrel (0 or 1), Endcap)
void setChipOut(const SCT_Chip &chip)
Set chip out of readout and reset link.
std::vector< int > m_chipsOnLink1