ATLAS Offline Software
LArDeadOTXFromSC.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef LARDEADOTXFROMSC_H
5 #define LARDEADOTXFROMSC_H
6 
9 
10 #include <vector>
11 #include <map>
12 
14 {
15  public:
16  void clear(){m_FEBFromSC.clear();}
17 
18  bool isThisOTXdead(HWIdentifier febid) const{
19  return m_FEBFromSC.find(febid)!=m_FEBFromSC.end() ;
20  }
21  const std::vector<float>& correctionFromThisOTXdead(HWIdentifier febid) const{
22  return m_FEBFromSC.at(febid);
23  }
24  void addFEB(HWIdentifier febid, const std::vector<float> & vec){
25  if (!this->isThisOTXdead(febid)) m_FEBFromSC[febid]=vec;
26  return;
27  }
28 
29  private:
30  std::map<HWIdentifier, std::vector<float> > m_FEBFromSC;
31 };
32 
33 CLASS_DEF( LArDeadOTXFromSC , 192664128, 0 )
34 #endif
LArDeadOTXFromSC::addFEB
void addFEB(HWIdentifier febid, const std::vector< float > &vec)
Definition: LArDeadOTXFromSC.h:24
LArDeadOTXFromSC
Definition: LArDeadOTXFromSC.h:14
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:21
CxxUtils::vec
typename vecDetail::vec_typedef< T, N >::type vec
Define a nice alias for the vectorized type.
Definition: vec.h:207
LArDeadOTXFromSC::isThisOTXdead
bool isThisOTXdead(HWIdentifier febid) const
Definition: LArDeadOTXFromSC.h:18
HWIdentifier.h
LArDeadOTXFromSC::clear
void clear()
Definition: LArDeadOTXFromSC.h:16
LArDeadOTXFromSC::m_FEBFromSC
std::map< HWIdentifier, std::vector< float > > m_FEBFromSC
Definition: LArDeadOTXFromSC.h:30
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