ATLAS Offline Software
LArNoiseSym.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 
10 LArNoiseSym::LArNoiseSym(const LArMCSym* mcSym, const LArNoiseMC* noiseComplete) :
11  m_mcSym(mcSym),
12  m_noiseComplete(noiseComplete) //Implicit cast to base-class
13 {}
14 
16 
17 const float& LArNoiseSym::noise(const HWIdentifier& hwid, int gain) const {
18  HWIdentifier symhwid=m_mcSym->ZPhiSymOnl(hwid);
19  return m_noiseComplete->get(symhwid,gain).m_Noise;
20 }
21 
LArNoiseSym::m_noiseComplete
const LArConditionsContainer< LArNoiseP > * m_noiseComplete
Definition: LArNoiseSym.h:24
LArNoiseSym::~LArNoiseSym
virtual ~LArNoiseSym()
Definition: LArNoiseSym.cxx:15
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
HWIdentifier
Definition: HWIdentifier.h:13
LArNoiseSym::LArNoiseSym
LArNoiseSym()=delete
LArMCSym
Helper class to handle z-phi symmetry of calibration constants in MC.
Definition: LArMCSym.h:19
LArConditionsContainer::get
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
get data with online identifier
LArNoiseSym::m_mcSym
const LArMCSym * m_mcSym
Definition: LArNoiseSym.h:23
LArMCSym::ZPhiSymOnl
HWIdentifier ZPhiSymOnl(const HWIdentifier notSymOnlId) const
Find the symmetric HWID for an online channel identifier.
Definition: LArMCSym.h:91
LArNoiseSym.h
LArNoiseSym::noise
virtual const float & noise(const HWIdentifier &hwid, int gain) const override
Definition: LArNoiseSym.cxx:17
LArNoiseMC
Implementation of the interface ILArNoise for MC Derives from LArNoiseComplete, and implements the ph...
Definition: LArNoiseMC.h:20
LArMCSym.h
LArNoiseMC.h