ATLAS Offline Software
Loading...
Searching...
No Matches
LArWFParams Class Reference

#include <LArWFParams.h>

Collaboration diagram for LArWFParams:

Public Member Functions

 LArWFParams ()
 default constructor: empty, "invalid" parameters set:
 LArWFParams (double tcal, double fstep, double tdrift, double omega0, double taur, double tshaper, double ampli, double tdiff)
 constructors for "valid" parameters sets:
 LArWFParams (unsigned flag, double tcal, double fstep, double tdrift, double omega0, double taur, double tshaper, double ampli, double tdiff)
 LArWFParams (double tcal, double fstep, double tdrift, double omega0, double taur, double tshaper, double ampli)
 same constructors, but without Tdiff specification (kept for backward compatibility)
 LArWFParams (unsigned flag, double tcal, double fstep, double tdrift, double omega0, double taur, double tshaper, double ampli)
 LArWFParams (HWIdentifier chID, CaloGain::CaloGain gain, const LArCaliPulseParamsComplete &caliPar, const LArDetCellParamsComplete &detPar, const LArPhysCaliTdiffComplete &tdiff, const LArTdriftComplete &tdrift)
void setFlag (unsigned flag)
void setTcal (double tcal)
void setFstep (double fstep)
void setTdrift (double tdrift)
void setOmega0 (double omega0)
void setTaur (double taur)
void setTshaper (double tsh)
void setAmplitude (double ampli)
void setTdiff (double tdiff)
void setValid ()
void setBad ()
bool set (HWIdentifier chID, CaloGain::CaloGain gain, const LArCaliPulseParamsComplete &caliPar)
 the followings pick up values from smaller Complete structures, return value is false if parameters were not found
bool set (HWIdentifier chID, CaloGain::CaloGain gain, const LArDetCellParamsComplete &detPar)
bool set (HWIdentifier chID, CaloGain::CaloGain gain, const LArPhysCaliTdiffComplete &tdiff)
bool set (HWIdentifier chID, CaloGain::CaloGain gain, const LArTdriftComplete &tdrift)
unsigned int getFlag () const
double tcal () const
double fstep () const
double tdrift () const
double omega0 () const
double taur () const
double tshaper () const
double amplitude () const
double tdiff () const
bool isValid () const

Private Attributes

unsigned int m_flag
double m_Tcal
double m_Fstep
double m_Tdrift
double m_Omega0
double m_Taur
double m_Tshaper
double m_Amplitude
double m_Tdiff
bool m_isValid

Detailed Description

Definition at line 19 of file LArWFParams.h.

Constructor & Destructor Documentation

◆ LArWFParams() [1/6]

LArWFParams::LArWFParams ( )
inline

default constructor: empty, "invalid" parameters set:

Definition at line 115 of file LArWFParams.h.

116 :
117 m_flag(0),
118 m_Tcal(0),
119 m_Fstep(0),
120 m_Tdrift(0),
121 m_Omega0(0),
122 m_Taur(0),
123 m_Tshaper(0),
124 m_Amplitude(0),
125 m_Tdiff(0),
126 m_isValid(false) {}
double m_Amplitude
double m_Tdrift
Definition LArWFParams.h:99
double m_Tdiff
double m_Fstep
Definition LArWFParams.h:98
double m_Tcal
Definition LArWFParams.h:97
unsigned int m_flag
Definition LArWFParams.h:96
double m_Taur
double m_Tshaper
double m_Omega0

◆ LArWFParams() [2/6]

LArWFParams::LArWFParams ( double tcal,
double fstep,
double tdrift,
double omega0,
double taur,
double tshaper,
double ampli,
double tdiff )
inline

constructors for "valid" parameters sets:

Definition at line 129 of file LArWFParams.h.

132 :
133 m_flag(0),
134 m_Tcal(tcal),
135 m_Fstep(fstep),
138 m_Taur(taur),
140 m_Amplitude(ampli),
141 m_Tdiff(tdiff),
142 m_isValid(true) {}
double omega0() const
double tdiff() const
double tdrift() const
double tshaper() const
double fstep() const
double tcal() const
double taur() const

◆ LArWFParams() [3/6]

LArWFParams::LArWFParams ( unsigned flag,
double tcal,
double fstep,
double tdrift,
double omega0,
double taur,
double tshaper,
double ampli,
double tdiff )
inline

Definition at line 145 of file LArWFParams.h.

149 :
150 m_flag(flag),
151 m_Tcal(tcal),
152 m_Fstep(fstep),
155 m_Taur(taur),
157 m_Amplitude(ampli),
158 m_Tdiff(tdiff),
159 m_isValid(true) {}

◆ LArWFParams() [4/6]

LArWFParams::LArWFParams ( double tcal,
double fstep,
double tdrift,
double omega0,
double taur,
double tshaper,
double ampli )
inline

same constructors, but without Tdiff specification (kept for backward compatibility)

Definition at line 162 of file LArWFParams.h.

164 :
165 m_flag(0),
166 m_Tcal(tcal),
167 m_Fstep(fstep),
170 m_Taur(taur),
172 m_Amplitude(ampli),
173 m_Tdiff(0),
174 m_isValid(true) {}

◆ LArWFParams() [5/6]

LArWFParams::LArWFParams ( unsigned flag,
double tcal,
double fstep,
double tdrift,
double omega0,
double taur,
double tshaper,
double ampli )
inline

Definition at line 177 of file LArWFParams.h.

180 :
181 m_flag(flag),
182 m_Tcal(tcal),
183 m_Fstep(fstep),
186 m_Taur(taur),
188 m_Amplitude(ampli),
189 m_Tdiff(0),
190 m_isValid(true) {}

◆ LArWFParams() [6/6]

LArWFParams::LArWFParams ( HWIdentifier chID,
CaloGain::CaloGain gain,
const LArCaliPulseParamsComplete & caliPar,
const LArDetCellParamsComplete & detPar,
const LArPhysCaliTdiffComplete & tdiff,
const LArTdriftComplete & tdrift )
inline

Definition at line 193 of file LArWFParams.h.

198{
199 m_flag = 0;
200 m_Amplitude = 0;
201 m_isValid = true ;
202 int igain = (int)gain ;
203
204 m_Tshaper = 15 ;
205
206 if ( (m_Tcal=caliPar.Tcal(chID,igain)) == (float)ILArCaliPulseParams::ERRORCODE )
207 m_isValid = false ;
208 if ( (m_Fstep=caliPar.Fstep(chID,igain)) == (float)ILArCaliPulseParams::ERRORCODE )
209 m_isValid = false ;
210
211 if ( (m_Omega0=detPar.Omega0(chID,igain)) == (float)ILArDetCellParams::ERRORCODE )
212 m_isValid = false ;
213 if ( (m_Taur=detPar.Taur(chID,igain)) == (float)ILArDetCellParams::ERRORCODE )
214 m_isValid = false ;
215
216 if ( (m_Tdiff=tdiff.Tdiff(chID,igain)) == (float)ILArPhysCaliTdiff::ERRORCODE )
217 m_isValid = false ;
218
219 if ( (m_Tdrift=tdrift.Tdrift(chID)) == (float)ILArTdrift::ERRORCODE )
220 m_isValid = false ;
221
222}
virtual const float & Tcal(const HWIdentifier &CellID, int gain) const
virtual const float & Fstep(const HWIdentifier &CellID, int gain) const
virtual const float & Omega0(const HWIdentifier &CellID, int gain) const
virtual const float & Taur(const HWIdentifier &CellID, int gain) const

Member Function Documentation

◆ amplitude()

double LArWFParams::amplitude ( ) const
inline

Definition at line 273 of file LArWFParams.h.

273{ return m_Amplitude; }

◆ fstep()

double LArWFParams::fstep ( ) const
inline

Definition at line 268 of file LArWFParams.h.

268{ return m_Fstep; }

◆ getFlag()

unsigned int LArWFParams::getFlag ( ) const
inline

Definition at line 266 of file LArWFParams.h.

266{ return m_flag ; }

◆ isValid()

bool LArWFParams::isValid ( ) const
inline

Definition at line 275 of file LArWFParams.h.

275{ return m_isValid ; }

◆ omega0()

double LArWFParams::omega0 ( ) const
inline

Definition at line 270 of file LArWFParams.h.

270{ return m_Omega0; }

◆ set() [1/4]

bool LArWFParams::set ( HWIdentifier chID,
CaloGain::CaloGain gain,
const LArCaliPulseParamsComplete & caliPar )
inline

the followings pick up values from smaller Complete structures, return value is false if parameters were not found

Definition at line 238 of file LArWFParams.h.

239 {
240 m_Tcal = caliPar.Tcal(chID, (int)gain) ;
241 m_Fstep = caliPar.Fstep(chID,(int)gain) ;
244}

◆ set() [2/4]

bool LArWFParams::set ( HWIdentifier chID,
CaloGain::CaloGain gain,
const LArDetCellParamsComplete & detPar )
inline

Definition at line 246 of file LArWFParams.h.

247 {
248 m_Omega0 = detPar.Omega0(chID, (int)gain) ;
249 m_Fstep = detPar.Taur(chID,(int)gain) ;
252}

◆ set() [3/4]

bool LArWFParams::set ( HWIdentifier chID,
CaloGain::CaloGain gain,
const LArPhysCaliTdiffComplete & tdiff )
inline

Definition at line 254 of file LArWFParams.h.

255 {
256 m_Tdiff = tdiff.Tdiff(chID, (int)gain) ;
258}

◆ set() [4/4]

bool LArWFParams::set ( HWIdentifier chID,
CaloGain::CaloGain gain,
const LArTdriftComplete & tdrift )
inline

Definition at line 260 of file LArWFParams.h.

261 {
262 m_Tdrift = tdrift.Tdrift(chID) ;
263 return ( m_Tdrift != ILArTdrift::ERRORCODE ) ;
264}

◆ setAmplitude()

void LArWFParams::setAmplitude ( double ampli)
inline

Definition at line 232 of file LArWFParams.h.

232{ m_Amplitude = ampli ; }

◆ setBad()

void LArWFParams::setBad ( )
inline

Definition at line 236 of file LArWFParams.h.

236{ m_isValid = false ; }

◆ setFlag()

void LArWFParams::setFlag ( unsigned flag)
inline

Definition at line 224 of file LArWFParams.h.

224{ m_flag = flag ; }
bool flag
Definition master.py:29

◆ setFstep()

void LArWFParams::setFstep ( double fstep)
inline

Definition at line 227 of file LArWFParams.h.

227{ m_Fstep = fstep ; }

◆ setOmega0()

void LArWFParams::setOmega0 ( double omega0)
inline

Definition at line 229 of file LArWFParams.h.

229{ m_Omega0 = omega0 ; }

◆ setTaur()

void LArWFParams::setTaur ( double taur)
inline

Definition at line 230 of file LArWFParams.h.

230{ m_Taur = taur ; }

◆ setTcal()

void LArWFParams::setTcal ( double tcal)
inline

Definition at line 226 of file LArWFParams.h.

226{ m_Tcal = tcal ; }

◆ setTdiff()

void LArWFParams::setTdiff ( double tdiff)
inline

Definition at line 233 of file LArWFParams.h.

233{ m_Tdiff = tdiff ; }

◆ setTdrift()

void LArWFParams::setTdrift ( double tdrift)
inline

Definition at line 228 of file LArWFParams.h.

228{ m_Tdrift = tdrift ; }

◆ setTshaper()

void LArWFParams::setTshaper ( double tsh)
inline

Definition at line 231 of file LArWFParams.h.

231{ m_Tshaper = tsh ; }

◆ setValid()

void LArWFParams::setValid ( )
inline

Definition at line 235 of file LArWFParams.h.

235{ m_isValid = true ; }

◆ taur()

double LArWFParams::taur ( ) const
inline

Definition at line 271 of file LArWFParams.h.

271{ return m_Taur; }

◆ tcal()

double LArWFParams::tcal ( ) const
inline

Definition at line 267 of file LArWFParams.h.

267{ return m_Tcal; }

◆ tdiff()

double LArWFParams::tdiff ( ) const
inline

Definition at line 274 of file LArWFParams.h.

274{ return m_Tdiff; }

◆ tdrift()

double LArWFParams::tdrift ( ) const
inline

Definition at line 269 of file LArWFParams.h.

269{ return m_Tdrift; }

◆ tshaper()

double LArWFParams::tshaper ( ) const
inline

Definition at line 272 of file LArWFParams.h.

272{ return m_Tshaper; }

Member Data Documentation

◆ m_Amplitude

double LArWFParams::m_Amplitude
private

Definition at line 103 of file LArWFParams.h.

◆ m_flag

unsigned int LArWFParams::m_flag
private

Definition at line 96 of file LArWFParams.h.

◆ m_Fstep

double LArWFParams::m_Fstep
private

Definition at line 98 of file LArWFParams.h.

◆ m_isValid

bool LArWFParams::m_isValid
private

Definition at line 105 of file LArWFParams.h.

◆ m_Omega0

double LArWFParams::m_Omega0
private

Definition at line 100 of file LArWFParams.h.

◆ m_Taur

double LArWFParams::m_Taur
private

Definition at line 101 of file LArWFParams.h.

◆ m_Tcal

double LArWFParams::m_Tcal
private

Definition at line 97 of file LArWFParams.h.

◆ m_Tdiff

double LArWFParams::m_Tdiff
private

Definition at line 104 of file LArWFParams.h.

◆ m_Tdrift

double LArWFParams::m_Tdrift
private

Definition at line 99 of file LArWFParams.h.

◆ m_Tshaper

double LArWFParams::m_Tshaper
private

Definition at line 102 of file LArWFParams.h.


The documentation for this class was generated from the following file: