14#ifndef SCT_CONFIGURATIONCONDDATA_H
15#define SCT_CONFIGURATIONCONDDATA_H
23#include "Identifier/Identifier.h"
69 const std::map<IdentifierHash, std::pair<bool, bool>>*
getBadLinks()
const;
80 const std::map<Identifier, unsigned int>*
getBadChips()
const;
96 std::map<IdentifierHash, std::pair<bool, bool>>
m_badLinks;
106#include "AthenaKernel/CondCont.h"
#define CONDCONT_MIXED_DEF(...)
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
This is a "hash" representation of an Identifier.
Class for data object used in SCT_ConfigurationCondAlg and SCT_ConfigurationConditionsTool.
std::array< std::bitset< N_STRIPS >, N_MODULES *N_SIDES > m_badStripArray
std::pair< bool, bool > areBadLinks(const IdentifierHash &hash) const
Check if a module has bad links.
void setBadChips(const Identifier &moduleId, const unsigned int chipStatus)
Set bad chips for a module.
virtual ~SCT_ConfigurationCondData()=default
Destructor.
const std::map< Identifier, unsigned int > * getBadChips() const
Get all bad chips.
void clearBadStripIds()
Clear all bad strip identifiers.
bool isBadWaferId(const Identifier &waferId) const
Check if a wafer identifier is bad one.
void clearBadWaferIds()
Clear all bad wafer identifiers.
std::set< Identifier > m_badModuleIds
const std::map< IdentifierHash, std::pair< bool, bool > > * getBadLinks() const
Get all bad links.
void clearBadModuleIds()
Clear all bad module identifiers.
void setBadWaferId(const Identifier &badWaferId)
Set a bad wafer identifier.
std::array< std::pair< bool, bool >, N_MODULES > m_badLinksArray
bool isBadModuleId(const Identifier &moduleId) const
Check if a module identifier is bad one.
void setBadLinks(const IdentifierHash &hash, const bool isBadLink0, const bool isBadLink1)
Set bad links for a module.
SCT_ConfigurationCondData()
Constructor.
std::map< IdentifierHash, std::pair< bool, bool > > m_badLinks
bool isBadStrip(const IdentifierHash &hash, const int strip) const
Check if a strip identifier is bad one.
void clearBadLinks()
Clear all bad links.
const std::set< Identifier > * getBadModuleIds() const
Get all bad module identifiers.
std::map< Identifier, unsigned int > m_badChips
void setBadStripId(const Identifier &badStripId, const IdentifierHash &hash, const int strip)
Set a bad strip identifier.
const std::bitset< N_STRIPS > & getBadStripsOfModule(const IdentifierHash &wafer_hash) const
void clear()
Clear all bad information.
const std::set< Identifier > * getBadStripIds() const
Get all bad strip identifiers.
const std::set< Identifier > * getBadWaferIds() const
Get all bad wafer identifiers.
void setBadModuleId(const Identifier &badModuleId)
Set a bad module identifier.
std::set< Identifier > m_badStripIds
std::set< Identifier > m_badWaferIds
void clearBadChips()
Clear all bad chips.