ATLAS Offline Software
LAruA2MeVSym.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 LAruA2MeVSym::LAruA2MeVSym(const LArMCSym* mcSym, const LAruA2MeVMC* uA2MeVComplete) :
11  m_mcSym(mcSym),
12  m_uA2MeVComplete(uA2MeVComplete) //Implicit cast to base-class
13 {}
14 
16 
17 const float& LAruA2MeVSym::UA2MEV(const HWIdentifier& hwid) const {
18  HWIdentifier symhwid=m_mcSym->ZPhiSymOnl(hwid);
19  return m_uA2MeVComplete->get(symhwid).m_data;
20 }
LAruA2MeVMC
Implementation of the interface ILAruA2MeV for MC Derives from LAruA2MeVComplete, and implements the ...
Definition: LAruA2MeVMC.h:22
LAruA2MeVMC.h
LAruA2MeVSym.h
HWIdentifier
Definition: HWIdentifier.h:13
LAruA2MeVSym::~LAruA2MeVSym
virtual ~LAruA2MeVSym()
Definition: LAruA2MeVSym.cxx:15
LAruA2MeVSym::UA2MEV
virtual const float & UA2MEV(const HWIdentifier &hwid) const override
Definition: LAruA2MeVSym.cxx:17
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
LAruA2MeVSym::m_uA2MeVComplete
const LArConditionsContainer< LArSingleFloatP > * m_uA2MeVComplete
Definition: LAruA2MeVSym.h:27
LArMCSym::ZPhiSymOnl
HWIdentifier ZPhiSymOnl(const HWIdentifier notSymOnlId) const
Find the symmetric HWID for an online channel identifier.
Definition: LArMCSym.h:91
LAruA2MeVSym::m_mcSym
const LArMCSym * m_mcSym
Definition: LAruA2MeVSym.h:26
LAruA2MeVSym::LAruA2MeVSym
LAruA2MeVSym()=delete
LArMCSym.h