ATLAS Offline Software
LArCalorimeter
LArRawConditions
src
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
5
#include "
LArRawConditions/LArNoiseSym.h
"
6
#include "
LArRawConditions/LArNoiseMC.h
"
7
#include "
LArRawConditions/LArMCSym.h
"
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
15
LArNoiseSym::~LArNoiseSym
() {}
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
Generated on Thu Nov 7 2024 21:19:46 for ATLAS Offline Software by
1.8.18