ATLAS Offline Software
LArfSamplSC.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // Dear emacs, this is -*-c++-*-
6 #ifndef LARCOOLCONDITIONS_FSAMPLSC_H
7 #define LARCOOLCONDITIONS_FSAMPLSC_H
8 
12 
13 
15 
16 class LArfSamplSC: public ILArfSampl,
17  public LArCondSuperCellBase,
18  public LArSingleFloatBlob {
19 
20 public:
21  LArfSamplSC();
22  LArfSamplSC(const CondAttrListCollection* attrList);
23 
24  virtual ~LArfSamplSC();
25 
26  bool good() const { return m_isInitialized && m_nChannels>0; }
27 
28  // retrieving LArfSampl using online ID
29  virtual const float& FSAMPL(const HWIdentifier& chid) const;
30 
31  // retrieving LArfSampl using offline ID
32  virtual const float& FSAMPL(const Identifier& id) const;
33 
34 private:
35  //static const float errorcode;
36  const float m_null;
37 
38 };
39 
40 #include "AthenaKernel/CondCont.h"
41 CLASS_DEF( LArfSamplSC , 174984919, 1 )
43 
44 #endif
LArfSamplSC::m_null
const float m_null
Definition: LArfSamplSC.h:36
CondCont.h
Hold mappings of ranges to condition objects.
LArfSamplSC::~LArfSamplSC
virtual ~LArfSamplSC()
Definition: LArfSamplSC.cxx:15
HWIdentifier
Definition: HWIdentifier.h:13
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
LArfSamplSC::good
bool good() const
Definition: LArfSamplSC.h:26
LArSingleFloatBlob::m_nChannels
unsigned m_nChannels
Definition: LArSingleFloatBlob.h:30
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
LArSingleFloatBlob
Definition: LArSingleFloatBlob.h:15
LArfSamplSC
Definition: LArfSamplSC.h:18
LArfSamplSC::LArfSamplSC
LArfSamplSC()
Definition: LArfSamplSC.cxx:10
LArCondSuperCellBase
Definition: LArCondSuperCellBase.h:19
CONDCONT_DEF
CONDCONT_DEF(LArfSamplSC, 188510651, ILArfSampl)
LArSingleFloatBlob.h
LArCondSuperCellBase.h
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
LArfSamplSC::FSAMPL
virtual const float & FSAMPL(const HWIdentifier &chid) const
Definition: LArfSamplSC.cxx:34
LArCondSuperCellBase::m_isInitialized
bool m_isInitialized
Definition: LArCondSuperCellBase.h:26
ILArfSampl.h
ILArfSampl
Definition: ILArfSampl.h:14