ATLAS Offline Software
Loading...
Searching...
No Matches
MdtCondDbData.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONCONDDATA_MDTCONDDBDATA_H
6#define MUONCONDDATA_MDTCONDDBDATA_H
7
8
9
10//Athena includes
13#include "MuonCondData/Defs.h"
14
15//STL includes
16#include <set>
17#include <vector>
18
19//forward declarations
20class Identifier;
21class MdtIdHelper;
22
23
25
26 friend class MdtCondDbAlg;
27
28public:
29
30 MdtCondDbData(const MdtIdHelper& id_helper);
31
32
33 virtual ~MdtCondDbData() = default;
35 void setDeadTube (const Identifier& ident);
37 void setDeadLayer (const Identifier& ident);
39 void setDeadMultilayer(const Identifier& ident);
41 void setDeadChamber (const Identifier& ident);
42
44 const std::set<Identifier>& getDeadTubesId () const;
45 const std::set<Identifier>& getDeadLayersId () const;
46 const std::set<Identifier>& getDeadMultilayersId() const;
47 const std::set<Identifier>& getDeadChambersId () const;
48
51 bool isGood (const Identifier & Id) const;
54 bool isGoodTube (const Identifier & Id) const;
57 bool isGoodLayer (const Identifier & Id) const;
58 bool isGoodMultilayer(const Identifier & Id) const;
60 bool isGoodChamber (const Identifier & Id) const;
61
64
71 void setHvState(const Identifier& multiLayerID,
72 const DcsFsmState state,
73 const float standByVolt,
74 const float readyVolt);
75
76 bool hasDCS() const;
77 const DcsConstants& getHvState(const Identifier& multiLayerID) const;
78
79 const std::vector<DcsConstants>& getAllHvStates() const;
80private:
81 std::set<Identifier> m_cachedDeadTubes{};
82 std::set<Identifier> m_cachedDeadLayers{};
83 std::set<Identifier> m_cachedDeadMultilayers{};
84 std::set<Identifier> m_cachedDeadChambers{};
85
86 std::vector<DcsConstants> m_dcsStates{};
88
89};
90
91CLASS_DEF( MdtCondDbData, 58088442, 1)
92CLASS_DEF( CondCont<MdtCondDbData>, 62077248, 0)
93
94#endif
Hold mappings of ranges to condition objects.
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
Hold mapping of ranges to condition objects.
Definition CondCont.h:889
void setDeadTube(const Identifier &ident)
The indiviudal tube is dead.
bool isGoodTube(const Identifier &Id) const
Returns whether the particular tube has been markes as bad in the database.
bool isGood(const Identifier &Id) const
Returns if the identifier (tube/multiLayer/chamber) is masked in the conditions database.
const MdtIdHelper & m_id_helper
std::set< Identifier > m_cachedDeadChambers
bool hasDCS() const
const std::vector< DcsConstants > & getAllHvStates() const
const std::set< Identifier > & getDeadMultilayersId() const
void setDeadMultilayer(const Identifier &ident)
All tubes in a multi layer are dead.
friend class MdtCondDbAlg
bool isGoodLayer(const Identifier &Id) const
Returns whether the corresponding tube layer is marked as bad in the database.
MuonCond::DcsConstants DcsConstants
void setDeadLayer(const Identifier &ident)
All tubes in a drift layer are dead.
std::set< Identifier > m_cachedDeadTubes
void setHvState(const Identifier &multiLayerID, const DcsFsmState state, const float standByVolt, const float readyVolt)
Adds a DCS state to the conditions object multiLayerID -> Identifier of a tube in the multilayer stat...
virtual ~MdtCondDbData()=default
std::set< Identifier > m_cachedDeadLayers
std::vector< DcsConstants > m_dcsStates
std::set< Identifier > m_cachedDeadMultilayers
const std::set< Identifier > & getDeadTubesId() const
const DcsConstants & getHvState(const Identifier &multiLayerID) const
bool isGoodChamber(const Identifier &Id) const
Returns true if the complete chamber has not dead channels.
const std::set< Identifier > & getDeadChambersId() const
MuonCond::DcsFsmState DcsFsmState
bool isGoodMultilayer(const Identifier &Id) const
MdtCondDbData(const MdtIdHelper &id_helper)
const std::set< Identifier > & getDeadLayersId() const
void setDeadChamber(const Identifier &ident)
All tubes in a chamber are dead.
Helper struct to cache all dcs constants in a common place of the memory.