ATLAS Offline Software
Loading...
Searching...
No Matches
LArMphysOverMcalSym.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
10LArMphysOverMcalSym::LArMphysOverMcalSym(const LArMCSym* mcSym, const LArMphysOverMcalMC* MphysOverMcalComplete) :
11 m_mcSym(mcSym),
12 m_MphysOverMcalComplete(MphysOverMcalComplete) //Implicit cast to base-class
13{}
14
16
17const float& LArMphysOverMcalSym::MphysOverMcal(const HWIdentifier& hwid, int gain) const {
18 HWIdentifier symhwid=m_mcSym->ZPhiSymOnl(hwid);
19 return m_MphysOverMcalComplete->get(symhwid,gain).m_data;
20}
21
22
Helper class to handle z-phi symmetry of calibration constants in MC.
Definition LArMCSym.h:19
Implementation of the interface ILArMphysOverMcal for MC Derives from LArMphysOverMcalComplete,...
const LArConditionsContainer< LArSingleFloatP > * m_MphysOverMcalComplete
const LArMCSym * m_mcSym
LArMphysOverMcalSym()=delete
virtual const float & MphysOverMcal(const HWIdentifier &hwid, int gain) const override