ATLAS Offline Software
LArDeadOTXFromSC.h
Go to the documentation of this file.
1 
2 #ifndef LARDEADOTXFROMSC_H
3 #define LARDEADOTXFROMSC_H
4 
7 
8 #include <vector>
9 #include <map>
10 
12 {
13  public:
14  void clear(){m_FEBFromSC.clear();}
15 
16  bool isThisOTXdead(HWIdentifier febid) const{
17  return m_FEBFromSC.find(febid)!=m_FEBFromSC.end() ;
18  }
19  const std::vector<float>& correctionFromThisOTXdead(HWIdentifier febid) const{
20  return m_FEBFromSC.at(febid);
21  }
22  void addFEB(HWIdentifier febid, std::vector<float>& vec){
23  if (!this->isThisOTXdead(febid)) m_FEBFromSC[febid]=std::move(vec);
24  return;
25  }
26 
27  private:
28  std::map<HWIdentifier, std::vector<float> > m_FEBFromSC;
29 };
30 
31 CLASS_DEF( LArDeadOTXFromSC , 192664128, 0 )
32 #endif
LArDeadOTXFromSC
Definition: LArDeadOTXFromSC.h:12
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:9
HWIdentifier
Definition: HWIdentifier.h:13
LArDeadOTXFromSC::correctionFromThisOTXdead
const std::vector< float > & correctionFromThisOTXdead(HWIdentifier febid) const
Definition: LArDeadOTXFromSC.h:19
LArDeadOTXFromSC::isThisOTXdead
bool isThisOTXdead(HWIdentifier febid) const
Definition: LArDeadOTXFromSC.h:16
HWIdentifier.h
LArDeadOTXFromSC::clear
void clear()
Definition: LArDeadOTXFromSC.h:14
LArDeadOTXFromSC::m_FEBFromSC
std::map< HWIdentifier, std::vector< float > > m_FEBFromSC
Definition: LArDeadOTXFromSC.h:28
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
CLASS_DEF.h
macros to associate a CLID to a type
LArDeadOTXFromSC::addFEB
void addFEB(HWIdentifier febid, std::vector< float > &vec)
Definition: LArDeadOTXFromSC.h:22