ATLAS Offline Software
LArPedestalMC.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 LARRAWCONDITIONS_LARPEDESTALMC_H
6 #define LARRAWCONDITIONS_LARPEDESTALMC_H
7 
9 
10 #include <vector>
11 
21 class LArPedestalMC: public ILArPedestal {
22 
23  public:
24 
25  LArPedestalMC();
26 
27  virtual ~LArPedestalMC( );
28 
29  // retrieving Pedestal using online ID
30 
31  float pedestal(const HWIdentifier& CellID, int gain) const ;
32 
33  float pedestalRMS(const HWIdentifier& CellID, int gain) const ;
34 
35  // set method filling the data members individually (if one
36  // wants to fill this class not using the DB)
37  void set(const std::vector<float>& vPedestal,
38  const std::vector<float>& vPedestalRMS);
39 
40 
41  private:
42  friend class LArPedestalMCCnv_p1;
43 
44  // data member simpler than for data: 1 single number is needed for MC
45  std::vector<float> m_vPedestal, m_vPedestalRMS;
46 };
47 
48 #include "AthenaKernel/CondCont.h"
49 CLASS_DEF( LArPedestalMC, 27770770,1)
51 
52 #endif
LArPedestalMC::LArPedestalMC
LArPedestalMC()
Definition: LArPedestalMC.cxx:10
LArPedestalMCCnv_p1
Definition: LArPedestalMCCnv_p1.h:19
CondCont.h
Hold mappings of ranges to condition objects.
LArPedestalMC::m_vPedestalRMS
std::vector< float > m_vPedestalRMS
Definition: LArPedestalMC.h:45
ILArPedestal
Definition: ILArPedestal.h:12
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArPedestalMC
Implementation of the interface ILArfSampl for MC: only one constant is needed for MC.
Definition: LArPedestalMC.h:21
LArPedestalMC::pedestal
float pedestal(const HWIdentifier &CellID, int gain) const
Definition: LArPedestalMC.cxx:27
CONDCONT_DEF
CONDCONT_DEF(LArPedestalMC, 251521960, ILArPedestal)
HWIdentifier
Definition: HWIdentifier.h:13
LArPedestalMC::m_vPedestal
std::vector< float > m_vPedestal
Definition: LArPedestalMC.h:45
LArPedestalMC::pedestalRMS
float pedestalRMS(const HWIdentifier &CellID, int gain) const
access to RMS of Pedestal index by Identifier, and gain setting
Definition: LArPedestalMC.cxx:33
ILArPedestal.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
LArPedestalMC::~LArPedestalMC
virtual ~LArPedestalMC()
Definition: LArPedestalMC.cxx:12
LArPedestalMC::set
void set(const std::vector< float > &vPedestal, const std::vector< float > &vPedestalRMS)
Definition: LArPedestalMC.cxx:16