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