ATLAS Offline Software
Loading...
Searching...
No Matches
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
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
50CLASS_DEF( LArHVPathology, 180546408, 1)
51#include "AthenaKernel/CondCont.h"
53
54#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Hold mapping of ranges to condition objects.
Definition CondCont.h:889
std::vector< LArHVElectPathologyDb > m_v
virtual ~LArHVPathology()
std::map< std::pair< Identifier, unsigned int >, std::vector< unsigned short > > m_electIndMap
std::vector< LArHVPathologiesDb::LArHVElectPathologyDb > m_v
std::map< std::pair< Identifier, unsigned int >, std::vector< unsigned short > > & getElecMap()
const std::vector< LArHVPathologiesDb::LArHVElectPathologyDb > & getPathology() const