ATLAS Offline Software
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 
13 
15 {
16  public:
17 
19  LArHVPathology(const LArHVPathology* 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 
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 
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
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
LArHVPathology::getPathology
const std::vector< LArHVPathologiesDb::LArHVElectPathologyDb > & getPathology() const
Definition: LArHVPathology.h:23
LArHVPathology::LArHVPathology
LArHVPathology()
Definition: LArHVPathology.h:18
LArHVPathology::m_electIndMap
std::map< std::pair< Identifier, unsigned int >, std::vector< unsigned short > > m_electIndMap
Definition: LArHVPathology.h:32
LArHVPathology::getElecMap
std::map< std::pair< Identifier, unsigned int >, std::vector< unsigned short > > & getElecMap()
Definition: LArHVPathology.h:26
LArHVPathology::~LArHVPathology
virtual ~LArHVPathology()
Definition: LArHVPathology.h:21
LArHVPathologiesDb.h
lumiFormat.i
int i
Definition: lumiFormat.py:92
LArHVPathologiesDb
Definition: LArHVPathologiesDb.h:19
LArHVPathologiesDb::m_v
std::vector< LArHVElectPathologyDb > m_v
Definition: LArHVPathologiesDb.h:31
CondCont< LArHVPathology >
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:64
LArHVPathology
Definition: LArHVPathology.h:15
LArHVPathology::m_v
std::vector< LArHVPathologiesDb::LArHVElectPathologyDb > m_v
Definition: LArHVPathology.h:31
CLASS_DEF.h
macros to associate a CLID to a type