ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonAlignment
MuonAlignmentData
MuonAlignmentData
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
20
class
NswPassivationDbData
{
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
32
NswPassivationDbData
(
const
MmIdHelper
&);
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
:
43
const
MmIdHelper
&
m_mmIdHelper
;
44
// containers
45
using
PassivationMap
= std::unordered_map<Identifier::value_type, PCBPassivation>;
46
PassivationMap
m_data
{};
47
48
49
50
};
51
52
CLASS_DEF
(
NswPassivationDbData
, 183672311 , 1 );
53
CONDCONT_DEF
(
NswPassivationDbData
, 139639445 );
54
55
#endif
CondCont.h
Hold mappings of ranges to condition objects.
CONDCONT_DEF
#define CONDCONT_DEF(...)
Definition
CondCont.h:1413
BaseInfo.h
Provide an interface for finding inheritance information at run time.
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
MmIdHelper
Definition
MmIdHelper.h:54
NswPassivationDbData
Definition
NswPassivationDbData.h:20
NswPassivationDbData::m_mmIdHelper
const MmIdHelper & m_mmIdHelper
ID helpers.
Definition
NswPassivationDbData.h:43
NswPassivationDbData::NswPassivationDbData
NswPassivationDbData(const MmIdHelper &)
Definition
NswPassivationDbData.cxx:7
NswPassivationDbData::getChannelIds
std::vector< Identifier > getChannelIds() const
Definition
NswPassivationDbData.cxx:38
NswPassivationDbData::~NswPassivationDbData
virtual ~NswPassivationDbData()=default
NswPassivationDbData::m_data
PassivationMap m_data
Definition
NswPassivationDbData.h:46
NswPassivationDbData::PassivationMap
std::unordered_map< Identifier::value_type, PCBPassivation > PassivationMap
Definition
NswPassivationDbData.h:45
NswPassivationDbData::getPassivation
const PCBPassivation & getPassivation(const Identifier &id) const
Definition
NswPassivationDbData.cxx:47
NswPassivationDbData::setData
void setData(const Identifier &chnlId, const int pcb, const float indiv, const float extra, const std::string &position)
Definition
NswPassivationDbData.cxx:11
Identifier
Definition
IdentifierFieldParser.cxx:14
NswPassivationDbData::PCBPassivation
Helper struct to save the four passivation values of each PCB.
Definition
NswPassivationDbData.h:24
NswPassivationDbData::PCBPassivation::bottom
double bottom
Definition
NswPassivationDbData.h:28
NswPassivationDbData::PCBPassivation::top
double top
Definition
NswPassivationDbData.h:27
NswPassivationDbData::PCBPassivation::right
double right
Definition
NswPassivationDbData.h:26
NswPassivationDbData::PCBPassivation::valid
bool valid
Definition
NswPassivationDbData.h:29
NswPassivationDbData::PCBPassivation::left
double left
Definition
NswPassivationDbData.h:25
Generated on
for ATLAS Offline Software by
1.17.0