ATLAS Offline Software
LArfSamplSym.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
6 
7 
8 LArfSamplSym::LArfSamplSym(const LArMCSym* mcSym, const LArfSamplMC* fSamplComplete) :
9  m_mcSym(mcSym),
10  m_fSamplCont(fSamplComplete) //Implicit cast to base-class
11 {}
12 
14 
15 const float& LArfSamplSym::FSAMPL(const HWIdentifier& hwid) const {
16  HWIdentifier symhwid=m_mcSym->ZPhiSymOnl(hwid);
17  return m_fSamplCont->get(symhwid).m_fSampl;
18 }
19 
20 const float& LArfSamplSym::FSAMPL(const Identifier& id) const {
21  HWIdentifier symhwid=m_mcSym->ZPhiSymOfl(id);
22  return m_fSamplCont->get(symhwid).m_fSampl;
23 }
LArfSamplSym::m_fSamplCont
const LArConditionsContainer< LArfSamplP > * m_fSamplCont
Definition: LArfSamplSym.h:30
HWIdentifier
Definition: HWIdentifier.h:13
LArMCSym::ZPhiSymOfl
HWIdentifier ZPhiSymOfl(const Identifier notSymOffId) const
Find the symmetric HWID for an offline cell identifier.
Definition: LArMCSym.h:48
LArfSamplSym::LArfSamplSym
LArfSamplSym()=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
LArfSamplMC
Implementation of the interface ILArfSampl for MC Derives from LArfSamplComplete, and implements the ...
Definition: LArfSamplMC.h:23
LArMCSym::ZPhiSymOnl
HWIdentifier ZPhiSymOnl(const HWIdentifier notSymOnlId) const
Find the symmetric HWID for an online channel identifier.
Definition: LArMCSym.h:91
LArfSamplSym::~LArfSamplSym
virtual ~LArfSamplSym()
Definition: LArfSamplSym.cxx:13
LArfSamplSym.h
LArfSamplSym::m_mcSym
const LArMCSym * m_mcSym
Definition: LArfSamplSym.h:29
LArMCSym.h
LArfSamplSym::FSAMPL
virtual const float & FSAMPL(const HWIdentifier &CellID) const override
Definition: LArfSamplSym.cxx:15
Identifier
Definition: IdentifierFieldParser.cxx:14