ATLAS Offline Software
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 
8 {}
9 
11 
12 /* Fill transient object in ATHENA *****************************************
13  */
15  float tcal, float fstep ) {
16 
18  t.m_Tcal = tcal ;
19  t.m_Fstep = fstep ;
20 
21  setPdata(CellID,t,gain) ;
22 }
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 }
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  */
50 const float& LArCaliPulseParamsComplete::Tcal(const HWIdentifier& CellID, int gain) const
51 {
52  const LArCaliPulseParamsP& t = get(CellID,gain) ;
53  return (t.m_Tcal);
54 }
55 
56 const float& LArCaliPulseParamsComplete::Fstep(const HWIdentifier& CellID,int gain) const
57 {
58  const LArCaliPulseParamsP& t = get(CellID,gain) ;
59  return (t.m_Fstep);
60 }
61 
62 const float& LArCaliPulseParamsComplete::Offset(const HWIdentifier& CellID,int gain) const
63 {
64  const LArCaliPulseParamsP& t = get(CellID,gain) ;
65  return (t.m_Offset);
66 }
67 
68 const float& LArCaliPulseParamsComplete::dTimeCal(const HWIdentifier& CellID,int gain) const
69 {
70  const LArCaliPulseParamsP& t = get(CellID,gain) ;
71  return (t.m_dTimeCal);
72 }
73 
74 const short& LArCaliPulseParamsComplete::nCB(const HWIdentifier& CellID,int gain) const
75 {
76  const LArCaliPulseParamsP& t = get(CellID,gain) ;
77  return (t.m_nCB);
78 }
LArConditionsContainer< LArCaliPulseParamsP >::setPdata
void setPdata(const HWIdentifier id, const LArCaliPulseParamsP &payload, unsigned int gain=0)
put payload in persistent data
LArCaliPulseParamsComplete::nCB
virtual const short & nCB(const HWIdentifier &CellID, int gain) const
Definition: LArCaliPulseParamsComplete.cxx:74
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
HWIdentifier
Definition: HWIdentifier.h:13
LArCaliPulseParamsComplete::dTimeCal
virtual const float & dTimeCal(const HWIdentifier &CellID, int gain) const
Definition: LArCaliPulseParamsComplete.cxx:68
LArConditionsContainer< LArCaliPulseParamsP >::get
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
get data with online identifier
LArCaliPulseParamsComplete.h
LArCaliPulseParamsComplete::~LArCaliPulseParamsComplete
virtual ~LArCaliPulseParamsComplete()
Definition: LArCaliPulseParamsComplete.cxx:10
LArCaliPulseParamsComplete::Fstep
virtual const float & Fstep(const HWIdentifier &CellID, int gain) const
Definition: LArCaliPulseParamsComplete.cxx:56
LArCaliPulseParamsComplete::Offset
virtual const float & Offset(const HWIdentifier &CellID, int gain) const
Definition: LArCaliPulseParamsComplete.cxx:62
LArCaliPulseParamsComplete::set
void set(const HWIdentifier &CellID, int gain, float tcal, float fstep)
Definition: LArCaliPulseParamsComplete.cxx:14
LArCaliPulseParamsComplete::LArCaliPulseParamsComplete
LArCaliPulseParamsComplete()
Definition: LArCaliPulseParamsComplete.cxx:7
convertTimingResiduals.offset
offset
Definition: convertTimingResiduals.py:71
LArCaliPulseParamsComplete::Tcal
virtual const float & Tcal(const HWIdentifier &CellID, int gain) const
Definition: LArCaliPulseParamsComplete.cxx:50
LArCaliPulseParamsP
Definition: LArCaliPulseParamsP.h:12