ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRecConditions
LArRecConditions
LArHVPathology.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef LARHVPATHOLOGY_H
6
#define LARHVPATHOLOGY_H
7
8
#include "Identifier/Identifier.h"
9
#include <vector>
10
#include <map>
11
12
#include "
LArRecConditions/LArHVPathologiesDb.h
"
13
14
class
LArHVPathology
15
{
16
public
:
17
18
LArHVPathology
() {}
19
LArHVPathology
(
const
LArHVPathology
* in);
20
LArHVPathology
(
const
LArHVPathologiesDb
* in);
21
virtual
~LArHVPathology
() {}
22
23
const
std::vector<LArHVPathologiesDb::LArHVElectPathologyDb>&
getPathology
()
const
{
24
return
m_v
;
25
}
26
std::map<std::pair<Identifier, unsigned int>, std::vector<unsigned short> >&
getElecMap
() {
27
return
m_electIndMap
;
28
}
29
30
private
:
31
std::vector<LArHVPathologiesDb::LArHVElectPathologyDb>
m_v
;
32
std::map<std::pair<Identifier, unsigned int>, std::vector<unsigned short> >
m_electIndMap
;
33
34
};
35
36
inline
LArHVPathology::LArHVPathology
(
const
LArHVPathology
* in) {
37
if
(in) {
38
for
(
unsigned
i=0;i<in->
m_v
.size();++i)
m_v
.push_back(in->
m_v
[i]);
39
for
(
const
auto
&p : in->
m_electIndMap
)
m_electIndMap
.emplace(std::make_pair(p.first, p.second));
40
}
41
}
42
43
inline
LArHVPathology::LArHVPathology
(
const
LArHVPathologiesDb
* in) {
44
if
(in) {
45
for
(
unsigned
i=0;i<in->
m_v
.size();++i)
m_v
.push_back(in->
m_v
[i]);
46
}
47
}
48
49
#include "
AthenaKernel/CLASS_DEF.h
"
50
CLASS_DEF
(
LArHVPathology
, 180546408, 1)
51
#include "AthenaKernel/CondCont.h"
52
CLASS_DEF
(
CondCont<LArHVPathology>
, 24283336, 1)
53
54
#endif
CLASS_DEF.h
macros to associate a CLID to a type
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
LArHVPathologiesDb.h
CondCont
Hold mapping of ranges to condition objects.
Definition
CondCont.h:889
LArHVPathologiesDb
Definition
LArHVPathologiesDb.h:19
LArHVPathologiesDb::m_v
std::vector< LArHVElectPathologyDb > m_v
Definition
LArHVPathologiesDb.h:31
LArHVPathology
Definition
LArHVPathology.h:15
LArHVPathology::LArHVPathology
LArHVPathology()
Definition
LArHVPathology.h:18
LArHVPathology::~LArHVPathology
virtual ~LArHVPathology()
Definition
LArHVPathology.h:21
LArHVPathology::m_electIndMap
std::map< std::pair< Identifier, unsigned int >, std::vector< unsigned short > > m_electIndMap
Definition
LArHVPathology.h:32
LArHVPathology::m_v
std::vector< LArHVPathologiesDb::LArHVElectPathologyDb > m_v
Definition
LArHVPathology.h:31
LArHVPathology::getElecMap
std::map< std::pair< Identifier, unsigned int >, std::vector< unsigned short > > & getElecMap()
Definition
LArHVPathology.h:26
LArHVPathology::getPathology
const std::vector< LArHVPathologiesDb::LArHVElectPathologyDb > & getPathology() const
Definition
LArHVPathology.h:23
Generated on
for ATLAS Offline Software by
1.17.0