ATLAS Offline Software
Loading...
Searching...
No Matches
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
33CLASS_DEF( LArDeadOTXFromSC , 192664128, 0 )
34#endif
std::vector< size_t > vec
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
const std::vector< float > & correctionFromThisOTXdead(HWIdentifier febid) const
bool isThisOTXdead(HWIdentifier febid) const
std::map< HWIdentifier, std::vector< float > > m_FEBFromSC
void addFEB(HWIdentifier febid, const std::vector< float > &vec)