ATLAS Offline Software
LArWaveDerivedQuantitiesComplete.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 
10 /*
11  * Fill transient object in ATHENA
12  */
13 
15  float baseline, float maxAmp,
16  float tmaxAmp, float width,
17  float rT0, float posLobe,
18  float jitter, unsigned flag)
19 {
20 
22 
23  t.m_baseline = baseline;
24  t.m_maxAmp = maxAmp;
25  t.m_tmaxAmp = tmaxAmp;
26  t.m_width = width;
27  t.m_rT0 = rT0;
28  t.m_posLobe = posLobe;
29  t.m_jitter = jitter;
30  t.m_flag = flag;
31 
32  setPdata(CellID,t,gain) ;
33 }
34 
35 /*
36  * retrieve Wave Derived Quantities
37  */
38 
39 const float& LArWaveDerivedQuantitiesComplete::BaseLine(const HWIdentifier& CellID, int gain) const
40 {
41  const LArWaveDerivedQuantitiesP& t = get(CellID,gain) ;
42  return (t.m_baseline);
43 }
44 
45 const float& LArWaveDerivedQuantitiesComplete::MaxAmp(const HWIdentifier& CellID, int gain) const
46 {
47  const LArWaveDerivedQuantitiesP& t = get(CellID,gain) ;
48  return (t.m_maxAmp);
49 }
50 
51 const float& LArWaveDerivedQuantitiesComplete::TMaxAmp(const HWIdentifier& CellID, int gain) const
52 {
53  const LArWaveDerivedQuantitiesP& t = get(CellID,gain) ;
54  return (t.m_tmaxAmp);
55 }
56 
57 const float& LArWaveDerivedQuantitiesComplete::Width(const HWIdentifier& CellID, int gain) const
58 {
59  const LArWaveDerivedQuantitiesP& t = get(CellID,gain) ;
60  return (t.m_width);
61 }
62 
63 const float& LArWaveDerivedQuantitiesComplete::rT0(const HWIdentifier& CellID, int gain) const
64 {
65  const LArWaveDerivedQuantitiesP& t = get(CellID,gain) ;
66  return (t.m_rT0);
67 }
68 
69 const float& LArWaveDerivedQuantitiesComplete::PosLobe(const HWIdentifier& CellID, int gain) const
70 {
71  const LArWaveDerivedQuantitiesP& t = get(CellID,gain) ;
72  return (t.m_posLobe);
73 }
74 
75 const float& LArWaveDerivedQuantitiesComplete::Jitter(const HWIdentifier& CellID, int gain) const
76 {
77  const LArWaveDerivedQuantitiesP& t = get(CellID,gain) ;
78  return (t.m_jitter);
79 }
80 
81 
82 const unsigned& LArWaveDerivedQuantitiesComplete::Flag(const HWIdentifier& CellID, int gain) const
83 {
84  const LArWaveDerivedQuantitiesP& t = get(CellID,gain) ;
85  return (t.m_flag);
86 }
LArConditionsContainer< LArWaveDerivedQuantitiesP >::setPdata
void setPdata(const HWIdentifier id, const LArWaveDerivedQuantitiesP &payload, unsigned int gain=0)
put payload in persistent data
LArWaveDerivedQuantitiesComplete::Jitter
virtual const float & Jitter(const HWIdentifier &CellID, int gain) const
Definition: LArWaveDerivedQuantitiesComplete.cxx:75
LArWaveDerivedQuantitiesComplete::PosLobe
virtual const float & PosLobe(const HWIdentifier &CellID, int gain) const
Definition: LArWaveDerivedQuantitiesComplete.cxx:69
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
LArWaveDerivedQuantitiesComplete::Width
virtual const float & Width(const HWIdentifier &CellID, int gain) const
Definition: LArWaveDerivedQuantitiesComplete.cxx:57
LArWaveDerivedQuantitiesComplete::MaxAmp
virtual const float & MaxAmp(const HWIdentifier &CellID, int gain) const
Definition: LArWaveDerivedQuantitiesComplete.cxx:45
LArConditionsContainer< LArWaveDerivedQuantitiesP >::get
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
get data with online identifier
master.flag
bool flag
Definition: master.py:29
baseline
@ baseline
Definition: SUSYToolsTester.cxx:94
LArWaveDerivedQuantitiesComplete::~LArWaveDerivedQuantitiesComplete
virtual ~LArWaveDerivedQuantitiesComplete()
Definition: LArWaveDerivedQuantitiesComplete.cxx:8
LArWaveDerivedQuantitiesP
Definition: LArWaveDerivedQuantitiesP.h:10
LArWaveDerivedQuantitiesComplete::set
void set(const HWIdentifier &CellID, int gain, float baseline, float maxAmp, float tmaxAmp, float width, float rT0, float posLobe, float jitter, unsigned flag)
Definition: LArWaveDerivedQuantitiesComplete.cxx:14
LArWaveDerivedQuantitiesComplete::Flag
virtual const unsigned & Flag(const HWIdentifier &CellID, int gain) const
Definition: LArWaveDerivedQuantitiesComplete.cxx:82
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
LArWaveDerivedQuantitiesComplete::BaseLine
virtual const float & BaseLine(const HWIdentifier &CellID, int gain) const
Definition: LArWaveDerivedQuantitiesComplete.cxx:39
LArWaveDerivedQuantitiesComplete::TMaxAmp
virtual const float & TMaxAmp(const HWIdentifier &CellID, int gain) const
Definition: LArWaveDerivedQuantitiesComplete.cxx:51
LArWaveDerivedQuantitiesComplete::LArWaveDerivedQuantitiesComplete
LArWaveDerivedQuantitiesComplete()
Definition: LArWaveDerivedQuantitiesComplete.cxx:7
LArWaveDerivedQuantitiesComplete::rT0
virtual const float & rT0(const HWIdentifier &CellID, int gain) const
Definition: LArWaveDerivedQuantitiesComplete.cxx:63
LArWaveDerivedQuantitiesComplete.h