ATLAS Offline Software
NswPassivationDbData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONCONDDATA_NSWPASSIVATIONDBDATA_H
6 #define MUONCONDDATA_NSWPASSIVATIONDBDATA_H
7 
8 // STL includes
9 #include <unordered_map>
10 
11 // Athena includes
12 #include "AthenaKernel/CondCont.h"
13 #include "AthenaKernel/BaseInfo.h"
14 #include "Identifier/Identifier.h"
15 
16 // Forward declarations
17 class MmIdHelper;
18 
19 
21 
22 public:
24  struct PCBPassivation{
25  double left{0.};
26  double right{0.};
27  double top{0.};
28  double bottom{0.};
29  bool valid{false};
30  };
31 
33  virtual ~NswPassivationDbData() = default;
34 
35  // setting functions
36  void setData(const Identifier& chnlId, const int pcb, const float indiv, const float extra, const std::string& position);
37 
38  // retrieval functions
39  std::vector<Identifier> getChannelIds() const;
40  const PCBPassivation& getPassivation(const Identifier& id) const;
41 private:
44  // containers
45  using PassivationMap = std::unordered_map<Identifier::value_type, PCBPassivation>;
47 
48 
49 
50 };
51 
52 CLASS_DEF( NswPassivationDbData , 183672311 , 1 );
54 
55 #endif
NswPassivationDbData::PassivationMap
std::unordered_map< Identifier::value_type, PCBPassivation > PassivationMap
Definition: NswPassivationDbData.h:45
CLASS_DEF
CLASS_DEF(NswPassivationDbData, 183672311, 1)
CondCont.h
Hold mappings of ranges to condition objects.
NswPassivationDbData::NswPassivationDbData
NswPassivationDbData(const MmIdHelper &)
Definition: NswPassivationDbData.cxx:7
NswPassivationDbData::~NswPassivationDbData
virtual ~NswPassivationDbData()=default
CONDCONT_DEF
CONDCONT_DEF(NswPassivationDbData, 139639445)
NswPassivationDbData::getPassivation
const PCBPassivation & getPassivation(const Identifier &id) const
Definition: NswPassivationDbData.cxx:47
NswPassivationDbData::PCBPassivation
Helper struct to save the four passivation values of each PCB.
Definition: NswPassivationDbData.h:24
NswPassivationDbData
Definition: NswPassivationDbData.h:20
BaseInfo.h
Provide an interface for finding inheritance information at run time.
NswPassivationDbData::PCBPassivation::valid
bool valid
Definition: NswPassivationDbData.h:29
NswPassivationDbData::PCBPassivation::bottom
double bottom
Definition: NswPassivationDbData.h:28
NswPassivationDbData::setData
void setData(const Identifier &chnlId, const int pcb, const float indiv, const float extra, const std::string &position)
Definition: NswPassivationDbData.cxx:11
python.handimod.extra
int extra
Definition: handimod.py:522
NswPassivationDbData::m_mmIdHelper
const MmIdHelper & m_mmIdHelper
ID helpers.
Definition: NswPassivationDbData.h:43
NswPassivationDbData::PCBPassivation::top
double top
Definition: NswPassivationDbData.h:27
MmIdHelper
Definition: MmIdHelper.h:54
NswPassivationDbData::PCBPassivation::right
double right
Definition: NswPassivationDbData.h:26
NswPassivationDbData::getChannelIds
std::vector< Identifier > getChannelIds() const
Definition: NswPassivationDbData.cxx:38
NswPassivationDbData::m_data
PassivationMap m_data
Definition: NswPassivationDbData.h:46
NswPassivationDbData::PCBPassivation::left
double left
Definition: NswPassivationDbData.h:25
Identifier
Definition: IdentifierFieldParser.cxx:14