5#ifndef MUONCONDDATA_NSWDCSDBDATA_H
6#define MUONCONDDATA_NSWDCSDBDATA_H
38 if(
elink != other.elink)
return elink < other.elink;
59 bool isGood(
const EventContext& ctx,
const Identifier& channelId,
bool issTgcQ1OuterHv =
false)
const;
61 bool isGoodTDaq(
const EventContext& ctx,
const Identifier& channelId,
bool &permanentlyDisabled)
const;
71 std::vector<std::unique_ptr<DcsConstants>>
channels{};
78 using ChannelTDaqMap = std::vector<std::map<Identifier, std::set<TDaqConstants>>>;
Hold mappings of ranges to condition objects.
#define CONDCONT_MIXED_DEF(...)
Provide an interface for finding inheritance information at run time.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
std::ostream & operator<<(std::ostream &ostr, const NswDcsDbData::TDaqConstants &obj)
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
MuonCond::DcsFsmState DcsFsmState
MuonCond::DcsConstants DcsConstants
std::vector< DcsModule > ChannelDcsMap
ChannelDcsMap m_data_hv_stg
void setDataHv(const DcsTechType tech, const Identifier &chnlId, DcsConstants constants)
ChannelDcsMap m_data_hv_mmd
bool isGoodEltx(const Identifier &channelId) const
ChannelEltxMap m_data_eltx_stg
const DcsConstants * getDataForChannelHv(const DcsTechType tech, const Identifier &channelId, bool issTgcQ1OuterHv) const
Retrieves the calibration constant for a particular readout channel.
MuonCond::DcsDataType DcsDataType
ChannelDcsMap m_data_hv_mmg
bool isGood(const EventContext &ctx, const Identifier &channelId, bool issTgcQ1OuterHv=false) const
Returns whether the channel is alive, i.e. DCS state on, etc...
ChannelTDaqMap m_data_tdaq_mmg
virtual ~NswDcsDbData()=default
ChannelTDaqMap m_data_tdaq_stg
NswDcsDbData(const Muon::IMuonIdHelperSvc *idHelperSvc, const MuonGM::MuonDetectorManager *muonGeoMgr)
unsigned int identToModuleIdx(const Identifier &chan_id) const
const Muon::IMuonIdHelperSvc * m_idHelperSvc
ChannelEltxMap m_data_eltx_mmg
std::vector< std::set< Identifier > > ChannelEltxMap
bool isConnectedChannel(const Identifier &channelId) const
bool isGoodHv(const Identifier &channelId, bool issTgcQ1OuterHv=false) const
const MuonGM::MuonDetectorManager * m_muonGeoMgr
std::vector< std::map< Identifier, std::set< TDaqConstants > > > ChannelTDaqMap
std::vector< Identifier > getChannelIdsHv(const DcsTechType tech, const std::string &side) const
void setDataTDaq(const DcsTechType tech, const Identifier &chnlId, uint64_t timeSince, uint64_t timeUntil, unsigned int elink, bool permanentlyDisabled)
bool isGoodTDaq(const EventContext &ctx, const Identifier &channelId, bool &permanentlyDisabled) const
void setDataEltx(const DcsTechType tech, const Identifier &chnlId)
Helper struct to cache all dcs constants in a common place of the memory.
std::vector< std::unique_ptr< DcsConstants > > channels
bool operator<(const NswDcsDbData::TDaqConstants &other) const