ATLAS Offline Software
Loading...
Searching...
No Matches
LArCaliPulseParamsComplete.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
9
11
12/* Fill transient object in ATHENA *****************************************
13 */
14void LArCaliPulseParamsComplete::set(const HWIdentifier& CellID, int gain,
15 float tcal, float fstep ) {
16
18 t.m_Tcal = tcal ;
19 t.m_Fstep = fstep ;
20
21 setPdata(CellID,t,gain) ;
22}
23void LArCaliPulseParamsComplete::set(const HWIdentifier& CellID, int gain,
24 float tcal, float fstep, float offset, float dtcal ) {
25
27 t.m_Tcal = tcal ;
28 t.m_Fstep = fstep ;
29 t.m_Offset = offset ;
30 t.m_dTimeCal = dtcal ;
31
32 setPdata(CellID,t,gain) ;
33}
34void LArCaliPulseParamsComplete::set(const HWIdentifier& CellID, int gain,
35 float tcal, float fstep, float offset, float dtcal, short ncb ) {
36
38 t.m_Tcal = tcal ;
39 t.m_Fstep = fstep ;
40 t.m_Offset = offset ;
41 t.m_dTimeCal = dtcal ;
42 t.m_nCB = ncb ;
43
44 setPdata(CellID,t,gain) ;
45}
46
47
48/* retrieve CaliPulseParams ******************************************************
49 */
50const float& LArCaliPulseParamsComplete::Tcal(const HWIdentifier& CellID, int gain) const
51{
52 const LArCaliPulseParamsP& t = get(CellID,gain) ;
53 return (t.m_Tcal);
54}
55
56const float& LArCaliPulseParamsComplete::Fstep(const HWIdentifier& CellID,int gain) const
57{
58 const LArCaliPulseParamsP& t = get(CellID,gain) ;
59 return (t.m_Fstep);
60}
61
62const float& LArCaliPulseParamsComplete::Offset(const HWIdentifier& CellID,int gain) const
63{
64 const LArCaliPulseParamsP& t = get(CellID,gain) ;
65 return (t.m_Offset);
66}
67
68const float& LArCaliPulseParamsComplete::dTimeCal(const HWIdentifier& CellID,int gain) const
69{
70 const LArCaliPulseParamsP& t = get(CellID,gain) ;
71 return (t.m_dTimeCal);
72}
73
74const short& LArCaliPulseParamsComplete::nCB(const HWIdentifier& CellID,int gain) const
75{
76 const LArCaliPulseParamsP& t = get(CellID,gain) ;
77 return (t.m_nCB);
78}
void set(const HWIdentifier &CellID, int gain, float tcal, float fstep)
virtual const float & dTimeCal(const HWIdentifier &CellID, int gain) const
virtual const float & Tcal(const HWIdentifier &CellID, int gain) const
virtual const short & nCB(const HWIdentifier &CellID, int gain) const
virtual const float & Offset(const HWIdentifier &CellID, int gain) const
virtual const float & Fstep(const HWIdentifier &CellID, int gain) const
void setPdata(const HWIdentifier id, const LArCaliPulseParamsP &payload, unsigned int gain=0)
ConstReference get(const HWIdentifier id, unsigned int gain=0) const