ATLAS Offline Software
Loading...
Searching...
No Matches
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
14#include "Identifier/Identifier.h"
15
16// Forward declarations
17class MmIdHelper;
18
19
21
22public:
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;
41private:
44 // containers
45 using PassivationMap = std::unordered_map<Identifier::value_type, PCBPassivation>;
47
48
49
50};
51
54
55#endif
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
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
const MmIdHelper & m_mmIdHelper
ID helpers.
NswPassivationDbData(const MmIdHelper &)
std::vector< Identifier > getChannelIds() const
virtual ~NswPassivationDbData()=default
std::unordered_map< Identifier::value_type, PCBPassivation > PassivationMap
const PCBPassivation & getPassivation(const Identifier &id) const
void setData(const Identifier &chnlId, const int pcb, const float indiv, const float extra, const std::string &position)
Helper struct to save the four passivation values of each PCB.