ATLAS Offline Software
LArOFIterResults.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //Dear emacs, this is -*-c++-*-
6 #ifndef LAROFITERRESULTS_H
7 #define LAROFITERRESULTS_H
8 
11 
12 class LArOFPeakRecoTool;
14 
16 
17  public:
18  friend class LArOFPeakRecoTool;
20  // Default Constructor
22 
23  // Useful Constructor
26  bool valid,
27  bool converged,
28  int nIterPerf,
29  float amplitude,
30  float tau,
31  unsigned peakSample_init,
32  unsigned peakSample_final,
33  float delay_final,
34  float quality ,
35  unsigned int ofcIndex
36  );
37 
38  // Destructor
39  ~LArOFIterResults() = default;
40 
41  // Return Functions given below inline
42  HWIdentifier getChannelID() const;
44  bool getValid() const;
45  bool getConverged() const;
46  int getNIterPerf() const;
47  float getAmplitude() const;
48  float getTau() const;
49  unsigned getPeakSample_init() const;
50  unsigned getPeakSample_final() const;
51  float getDelay_final() const;
52  float getQuality() const;
53  unsigned getOFCIndex() const;
54 
55  // Set Functions given in cxx
56  void setChannelID( HWIdentifier chid );
58  void setValid( bool valid );
59  void setConverged( bool converged );
60  void setNIterPerf( int nIterPerf );
61  void setAmplitude( float amplitude);
62  void setTau( float tau );
63  void setPeakSample_init( unsigned peakSample_init );
64  void setPeakSample_final( unsigned peakSample_final );
65  void setDelay_final( float delay_final );
66  void setQuality( float quality );
67  void setOFCIndex(unsigned idx);
68 
69  private:
70 
71  // Hardware Identifier
73  // Gain
75  // Valid (was able to make an OFC computation)
76  bool m_valid;
77  // Converged (tau < timeBinWidth)
79  // Number of iterations performed
81  // Amplitude determined by final OFC computation
82  float m_amplitude;
83  // Time determined by final OFC computation
84  float m_tau;
85  // Initial peakSample - input to LArOFPeakRecoTool::peak
87  // Final peakSample - may be different than initial if shift was required
89  // Final delay
90  float m_delay_final;
91  // Quality
92  float m_quality;
93  // Final OFC bin chosen by iteration
94  unsigned m_ofcIndex;
95 
96 
97 };
98 
99 inline
101  :
102  m_chid(0),
103  m_gain(CaloGain::CaloGain(4)),
104  m_valid(0),
105  m_converged(0),
106  m_nIterPerf(0),
107  m_amplitude(0),
108  m_tau(0),
109  m_peakSample_init(0),
110  m_peakSample_final(0),
111  m_delay_final(0),
112  m_quality(0),
113  m_ofcIndex(0)
114 
115 {}
116 
117 inline
120  bool valid,
121  bool converged,
122  int nIterPerf,
123  float amplitude,
124  float tau,
125  unsigned peakSample_init,
126  unsigned peakSample_final,
127  float delay_final,
128  float quality,
129  unsigned idx
130  )
131  :
132  m_chid(chid),
133  m_gain(gain),
134  m_valid(valid),
135  m_converged(converged),
136  m_nIterPerf(nIterPerf),
137  m_amplitude(amplitude),
138  m_tau(tau),
139  m_peakSample_init(peakSample_init),
140  m_peakSample_final(peakSample_final),
141  m_delay_final(delay_final),
142  m_quality(quality),
143  m_ofcIndex(idx)
144 
145 {}
146 
147 inline
150 
151 inline
154 
155 inline
156 bool
158 
159 inline
160 bool
162 
163 inline
164 int
166 
167 inline
168 float
170 
171 inline
172 float
173 LArOFIterResults::getTau() const { return m_tau; }
174 
175 inline
176 unsigned
178 
179 inline
180 unsigned
182 
183 inline
184 float
186 
187 inline
188 float
190 
191 inline
192 unsigned
194 
195 
196 #endif
LArOFIterResults::getNIterPerf
int getNIterPerf() const
Definition: LArOFIterResults.h:165
LArOFIterResults::setAmplitude
void setAmplitude(float amplitude)
Definition: LArOFIterResults.cxx:30
LArOFIterResults::setValid
void setValid(bool valid)
Definition: LArOFIterResults.cxx:18
LArOFIterResults::getOFCIndex
unsigned getOFCIndex() const
Definition: LArOFIterResults.h:193
LArOFIterResults::setConverged
void setConverged(bool converged)
Definition: LArOFIterResults.cxx:22
LArOFIterResults::~LArOFIterResults
~LArOFIterResults()=default
LArOFIterResults::setQuality
void setQuality(float quality)
Definition: LArOFIterResults.cxx:50
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArOFIterResults::getPeakSample_init
unsigned getPeakSample_init() const
Definition: LArOFIterResults.h:177
LArOFIterResults::setNIterPerf
void setNIterPerf(int nIterPerf)
Definition: LArOFIterResults.cxx:26
LArOFIterResults::m_converged
bool m_converged
Definition: LArOFIterResults.h:78
LArOFIterResults::LArOFIterResults
LArOFIterResults()
Definition: LArOFIterResults.h:100
LArOFIterResults::setTau
void setTau(float tau)
Definition: LArOFIterResults.cxx:34
LArOFIterResults::getDelay_final
float getDelay_final() const
Definition: LArOFIterResults.h:185
HWIdentifier
Definition: HWIdentifier.h:13
LArOFIterResults::getQuality
float getQuality() const
Definition: LArOFIterResults.h:189
CaloGain
Definition: CaloGain.h:10
LArOFIterResults::getTau
float getTau() const
Definition: LArOFIterResults.h:173
LArOFIterResults::getValid
bool getValid() const
Definition: LArOFIterResults.h:157
LArOFIterResults::m_chid
HWIdentifier m_chid
Definition: LArOFIterResults.h:72
LArOFPeakRecoTool
Definition: LArOFPeakRecoTool.h:31
LArOFIterResults::m_quality
float m_quality
Definition: LArOFIterResults.h:92
calibdata.valid
list valid
Definition: calibdata.py:45
LArRawChannelBuilderIterAlg
Definition: LArRawChannelBuilderIterAlg.h:29
LArOFIterResults::m_valid
bool m_valid
Definition: LArOFIterResults.h:76
LArOFIterResults::getPeakSample_final
unsigned getPeakSample_final() const
Definition: LArOFIterResults.h:181
LArOFIterResults::m_peakSample_final
unsigned m_peakSample_final
Definition: LArOFIterResults.h:88
LArOFIterResults::getAmplitude
float getAmplitude() const
Definition: LArOFIterResults.h:169
LArOFIterResults::setPeakSample_init
void setPeakSample_init(unsigned peakSample_init)
Definition: LArOFIterResults.cxx:38
LArOFIterResults::getConverged
bool getConverged() const
Definition: LArOFIterResults.h:161
HWIdentifier.h
LArOFIterResults::m_ofcIndex
unsigned m_ofcIndex
Definition: LArOFIterResults.h:94
LArOFIterResults::setOFCIndex
void setOFCIndex(unsigned idx)
Definition: LArOFIterResults.cxx:55
LArOFIterResults::m_delay_final
float m_delay_final
Definition: LArOFIterResults.h:90
LArOFIterResults::m_amplitude
float m_amplitude
Definition: LArOFIterResults.h:82
LArOFIterResults::getGain
CaloGain::CaloGain getGain() const
Definition: LArOFIterResults.h:153
CaloGain::CaloGain
CaloGain
Definition: CaloGain.h:11
LArOFIterResults::setDelay_final
void setDelay_final(float delay_final)
Definition: LArOFIterResults.cxx:46
LArOFIterResults::m_peakSample_init
unsigned m_peakSample_init
Definition: LArOFIterResults.h:86
LArOFIterResults::LArOFIterResults
LArOFIterResults(HWIdentifier chid, CaloGain::CaloGain gain, bool valid, bool converged, int nIterPerf, float amplitude, float tau, unsigned peakSample_init, unsigned peakSample_final, float delay_final, float quality, unsigned int ofcIndex)
LArOFIterResults::setPeakSample_final
void setPeakSample_final(unsigned peakSample_final)
Definition: LArOFIterResults.cxx:42
LArOFIterResults::m_nIterPerf
int m_nIterPerf
Definition: LArOFIterResults.h:80
LArOFIterResults::m_tau
float m_tau
Definition: LArOFIterResults.h:84
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
LArOFIterResults::m_gain
CaloGain::CaloGain m_gain
Definition: LArOFIterResults.h:74
LArOFIterResults::getChannelID
HWIdentifier getChannelID() const
Definition: LArOFIterResults.h:149
CaloGain.h
LArOFIterResults::setGain
void setGain(CaloGain::CaloGain gain)
Definition: LArOFIterResults.cxx:14
LArOFIterResults::setChannelID
void setChannelID(HWIdentifier chid)
Definition: LArOFIterResults.cxx:10
LArOFIterResults
Definition: LArOFIterResults.h:15