ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LArWFParams Class Reference

#include <LArWFParams.h>

Collaboration diagram for LArWFParams:

Public Member Functions

 LArWFParams ()
 default constructor: empty, "invalid" parameters set: More...
 
 LArWFParams (double tcal, double fstep, double tdrift, double omega0, double taur, double tshaper, double ampli, double tdiff)
 constructors for "valid" parameters sets: More...
 
 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) More...
 
 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 More...
 
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) {}

◆ 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),
136  m_Tdrift(tdrift),
137  m_Omega0(omega0),
138  m_Taur(taur),
139  m_Tshaper(tshaper),
140  m_Amplitude(ampli),
141  m_Tdiff(tdiff),
142  m_isValid(true) {}

◆ 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),
153  m_Tdrift(tdrift),
154  m_Omega0(omega0),
155  m_Taur(taur),
156  m_Tshaper(tshaper),
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),
168  m_Tdrift(tdrift),
169  m_Omega0(omega0),
170  m_Taur(taur),
171  m_Tshaper(tshaper),
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),
184  m_Tdrift(tdrift),
185  m_Omega0(omega0),
186  m_Taur(taur),
187  m_Tshaper(tshaper),
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 }

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) ;
242  return ( m_Tcal != ILArCaliPulseParams::ERRORCODE &&
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) ;
250  return ( m_Omega0 != ILArDetCellParams::ERRORCODE &&
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) ;
257  return ( m_Tdiff != ILArPhysCaliTdiff::ERRORCODE ) ;
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 ; }

◆ 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:
LArWFParams::taur
double taur() const
Definition: LArWFParams.h:271
LArWFParams::m_flag
unsigned int m_flag
Definition: LArWFParams.h:96
LArWFParams::m_Omega0
double m_Omega0
Definition: LArWFParams.h:100
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
LArWFParams::tshaper
double tshaper() const
Definition: LArWFParams.h:272
LArWFParams::m_Fstep
double m_Fstep
Definition: LArWFParams.h:98
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
ILArPhysCaliTdiff::ERRORCODE
@ ERRORCODE
Definition: ILArPhysCaliTdiff.h:29
LArWFParams::m_Amplitude
double m_Amplitude
Definition: LArWFParams.h:103
LArWFParams::tcal
double tcal() const
Definition: LArWFParams.h:267
LArWFParams::fstep
double fstep() const
Definition: LArWFParams.h:268
LArWFParams::tdiff
double tdiff() const
Definition: LArWFParams.h:274
LArWFParams::m_isValid
bool m_isValid
Definition: LArWFParams.h:105
LArWFParams::m_Tcal
double m_Tcal
Definition: LArWFParams.h:97
LArDetCellParamsComplete::Omega0
virtual const float & Omega0(const HWIdentifier &CellID, int gain) const
Definition: LArDetCellParamsComplete.cxx:25
LArWFParams::m_Tdiff
double m_Tdiff
Definition: LArWFParams.h:104
master.flag
bool flag
Definition: master.py:29
LArWFParams::m_Tshaper
double m_Tshaper
Definition: LArWFParams.h:102
WriteCellNoiseToCool.igain
igain
Definition: WriteCellNoiseToCool.py:338
LArDetCellParamsComplete::Taur
virtual const float & Taur(const HWIdentifier &CellID, int gain) const
Definition: LArDetCellParamsComplete.cxx:31
LArWFParams::omega0
double omega0() const
Definition: LArWFParams.h:270
LArCaliPulseParamsComplete::Fstep
virtual const float & Fstep(const HWIdentifier &CellID, int gain) const
Definition: LArCaliPulseParamsComplete.cxx:56
LArWFParams::m_Taur
double m_Taur
Definition: LArWFParams.h:101
LArWFParams::tdrift
double tdrift() const
Definition: LArWFParams.h:269
ILArDetCellParams::ERRORCODE
@ ERRORCODE
Definition: ILArDetCellParams.h:29
ILArTdrift::ERRORCODE
@ ERRORCODE
Definition: ILArTdrift.h:27
LArCaliPulseParamsComplete::Tcal
virtual const float & Tcal(const HWIdentifier &CellID, int gain) const
Definition: LArCaliPulseParamsComplete.cxx:50
ILArCaliPulseParams::ERRORCODE
@ ERRORCODE
Definition: ILArCaliPulseParams.h:32
readCCLHist.float
float
Definition: readCCLHist.py:83
LArWFParams::m_Tdrift
double m_Tdrift
Definition: LArWFParams.h:99