Public Member Functions | |
void | add_statistics (double *data, int nTS) |
void | change_status (int val) |
bool | get_average_amp (double *ave, double *rms) |
bool | get_average_amp1 (double *ave, double *rms) |
bool | get_average_time (double *ave, double *rms) |
bool | get_average_time1 (double *ave, double *rms) |
int | get_overflow () |
int | get_overflow1 () |
bool | get_reference (double *val, double *rms, double *time, double *time_rms) |
int | get_statistics () |
int | get_statistics1 () |
int | get_status () |
int | get_undeflow () |
int | get_undeflow1 () |
double | GetEnergy (double *data, int n) |
double | GetTime (double *data, int n=10) |
HcalDetDiagLaserData () | |
void | reset () |
void | reset1 () |
void | set_data (float val, float rms, float time, float time_rms) |
void | set_reference (float val, float rms, float time, float time_rms) |
void | set_statistics (int stat) |
void | set_statistics1 (int stat) |
Public Attributes | |
float | ds_amp |
float | ds_rms |
float | ds_time |
float | ds_time_rms |
bool | IsRefetence |
double | n |
double | n1 |
float | nBadEnergy |
float | nBadTime |
float | nChecks |
int | overflow |
int | overflow1 |
float | ref_amp |
float | ref_rms |
float | ref_time |
float | ref_time_rms |
int | status |
int | undeflow |
int | undeflow1 |
double | Xe |
double | Xe1 |
double | Xt |
double | Xt1 |
double | XXe |
double | XXe1 |
double | XXt |
double | XXt1 |
Definition at line 113 of file HcalDetDiagLaserMonitor.cc.
HcalDetDiagLaserData::HcalDetDiagLaserData | ( | ) | [inline] |
Definition at line 115 of file HcalDetDiagLaserMonitor.cc.
References ds_amp, ds_rms, ds_time, ds_time_rms, IsRefetence, nBadEnergy, nBadTime, nChecks, reset(), reset1(), and status.
{ IsRefetence=false; ds_amp=ds_rms=ds_time=ds_time_rms=-100; nChecks=0;nBadTime=0;nBadEnergy=0; status=0; reset(); reset1(); }
void HcalDetDiagLaserData::add_statistics | ( | double * | data, |
int | nTS | ||
) | [inline] |
Definition at line 133 of file HcalDetDiagLaserMonitor.cc.
References alignCSCRings::e, GetEnergy(), GetTime(), n, n1, overflow, overflow1, lumiQTWidget::t, undeflow, undeflow1, Xe, Xe1, Xt, Xt1, XXe, XXe1, XXt, and XXt1.
Referenced by HcalDetDiagLaserMonitor::analyze().
void HcalDetDiagLaserData::change_status | ( | int | val | ) | [inline] |
bool HcalDetDiagLaserData::get_average_amp | ( | double * | ave, |
double * | rms | ||
) | [inline] |
Definition at line 161 of file HcalDetDiagLaserMonitor.cc.
References ds_amp, ds_rms, ds_time, n, mathSSE::sqrt(), Xe, and XXe.
Referenced by HcalDetDiagLaserMonitor::fillHistos(), and HcalDetDiagLaserMonitor::get_ave_subdet().
bool HcalDetDiagLaserData::get_average_amp1 | ( | double * | ave, |
double * | rms | ||
) | [inline] |
Definition at line 186 of file HcalDetDiagLaserMonitor.cc.
References ds_amp, ds_rms, ds_time, n1, mathSSE::sqrt(), Xe1, and XXe1.
Referenced by HcalDetDiagLaserMonitor::SaveReference().
bool HcalDetDiagLaserData::get_average_time | ( | double * | ave, |
double * | rms | ||
) | [inline] |
Definition at line 166 of file HcalDetDiagLaserMonitor.cc.
References ds_time, ds_time_rms, n, mathSSE::sqrt(), Xt, and XXt.
Referenced by HcalDetDiagLaserMonitor::fillHistos(), and HcalDetDiagLaserMonitor::get_ave_subdet().
bool HcalDetDiagLaserData::get_average_time1 | ( | double * | ave, |
double * | rms | ||
) | [inline] |
Definition at line 191 of file HcalDetDiagLaserMonitor.cc.
References ds_time, ds_time_rms, n1, mathSSE::sqrt(), Xt1, and XXt1.
Referenced by HcalDetDiagLaserMonitor::SaveReference().
int HcalDetDiagLaserData::get_overflow | ( | ) | [inline] |
Definition at line 180 of file HcalDetDiagLaserMonitor.cc.
References overflow.
{ return overflow; }
int HcalDetDiagLaserData::get_overflow1 | ( | ) | [inline] |
Definition at line 199 of file HcalDetDiagLaserMonitor.cc.
References overflow1.
{ return overflow1; }
bool HcalDetDiagLaserData::get_reference | ( | double * | val, |
double * | rms, | ||
double * | time, | ||
double * | time_rms | ||
) | [inline] |
Definition at line 156 of file HcalDetDiagLaserMonitor.cc.
References IsRefetence, ref_amp, ref_rms, ref_time, and ref_time_rms.
{ *val=ref_amp; *rms=ref_rms; *time=ref_time; *time_rms=ref_time_rms; return IsRefetence; }
int HcalDetDiagLaserData::get_statistics | ( | ) | [inline] |
int HcalDetDiagLaserData::get_statistics1 | ( | ) | [inline] |
Definition at line 196 of file HcalDetDiagLaserMonitor.cc.
References n1.
Referenced by HcalDetDiagLaserMonitor::SaveReference().
{ return (int)n1; }
int HcalDetDiagLaserData::get_status | ( | ) | [inline] |
Definition at line 153 of file HcalDetDiagLaserMonitor.cc.
References status.
Referenced by HcalDetDiagLaserMonitor::SaveReference().
{ return status; }
int HcalDetDiagLaserData::get_undeflow | ( | ) | [inline] |
Definition at line 183 of file HcalDetDiagLaserMonitor.cc.
References undeflow.
{ return undeflow; }
int HcalDetDiagLaserData::get_undeflow1 | ( | ) | [inline] |
Definition at line 202 of file HcalDetDiagLaserMonitor.cc.
References undeflow1.
{ return undeflow1; }
double HcalDetDiagLaserData::GetEnergy | ( | double * | data, |
int | n | ||
) | [inline] |
Definition at line 205 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics().
double HcalDetDiagLaserData::GetTime | ( | double * | data, |
int | n = 10 |
||
) | [inline] |
Definition at line 215 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics().
{ int MaxI=-100; double Time=-9999,SumT=0,MaxT=-10; for(int j=0;j<n;++j) if(MaxT<data[j]){ MaxT=data[j]; MaxI=j; } if (MaxI>=0) // dummy protection so that compiler doesn't think MaxI=-100 { Time=MaxI*data[MaxI]; SumT=data[MaxI]; if(MaxI>0){ Time+=(MaxI-1)*data[MaxI-1]; SumT+=data[MaxI-1]; } if(MaxI<(n-1)){ Time+=(MaxI+1)*data[MaxI+1]; SumT+=data[MaxI+1]; } Time=Time/SumT; } return Time; }
void HcalDetDiagLaserData::reset | ( | void | ) | [inline] |
void HcalDetDiagLaserData::reset1 | ( | ) | [inline] |
void HcalDetDiagLaserData::set_data | ( | float | val, |
float | rms, | ||
float | time, | ||
float | time_rms | ||
) | [inline] |
Definition at line 146 of file HcalDetDiagLaserMonitor.cc.
References ds_amp, ds_rms, ds_time, ds_time_rms, plotscripts::rms(), and cond::rpcobgas::time.
Referenced by HcalDetDiagLaserMonitor::LoadDataset().
void HcalDetDiagLaserData::set_reference | ( | float | val, |
float | rms, | ||
float | time, | ||
float | time_rms | ||
) | [inline] |
Definition at line 141 of file HcalDetDiagLaserMonitor.cc.
References IsRefetence, ref_amp, ref_rms, ref_time, ref_time_rms, plotscripts::rms(), and cond::rpcobgas::time.
Referenced by HcalDetDiagLaserMonitor::LoadReference().
{ ref_amp=val; ref_rms=rms; ref_time=time; ref_time_rms=time_rms; IsRefetence=true; }
void HcalDetDiagLaserData::set_statistics | ( | int | stat | ) | [inline] |
Definition at line 174 of file HcalDetDiagLaserMonitor.cc.
References n, and testRegression::stat.
Referenced by HcalDetDiagLaserMonitor::LoadDataset().
void HcalDetDiagLaserData::set_statistics1 | ( | int | stat | ) | [inline] |
Definition at line 177 of file HcalDetDiagLaserMonitor.cc.
References n1, and testRegression::stat.
Referenced by HcalDetDiagLaserMonitor::LoadDataset().
Definition at line 239 of file HcalDetDiagLaserMonitor.cc.
Referenced by get_average_amp(), get_average_amp1(), HcalDetDiagLaserData(), and set_data().
Definition at line 240 of file HcalDetDiagLaserMonitor.cc.
Referenced by get_average_amp(), get_average_amp1(), HcalDetDiagLaserData(), and set_data().
Definition at line 241 of file HcalDetDiagLaserMonitor.cc.
Referenced by get_average_amp(), get_average_amp1(), get_average_time(), get_average_time1(), HcalDetDiagLaserData(), and set_data().
Definition at line 242 of file HcalDetDiagLaserMonitor.cc.
Referenced by get_average_time(), get_average_time1(), HcalDetDiagLaserData(), and set_data().
Definition at line 234 of file HcalDetDiagLaserMonitor.cc.
Referenced by get_reference(), HcalDetDiagLaserData(), and set_reference().
double HcalDetDiagLaserData::n |
Definition at line 232 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics(), get_average_amp(), get_average_time(), get_statistics(), GetEnergy(), GetTime(), reset(), and set_statistics().
double HcalDetDiagLaserData::n1 |
Definition at line 233 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics(), get_average_amp1(), get_average_time1(), get_statistics1(), reset1(), and set_statistics1().
Definition at line 244 of file HcalDetDiagLaserMonitor.cc.
Referenced by HcalDetDiagLaserMonitor::fillProblems(), and HcalDetDiagLaserData().
Definition at line 244 of file HcalDetDiagLaserMonitor.cc.
Referenced by HcalDetDiagLaserMonitor::fillProblems(), and HcalDetDiagLaserData().
Definition at line 244 of file HcalDetDiagLaserMonitor.cc.
Referenced by HcalDetDiagLaserMonitor::fillProblems(), and HcalDetDiagLaserData().
Definition at line 228 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics(), get_overflow(), and reset().
Definition at line 230 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics(), get_overflow1(), and reset1().
Definition at line 235 of file HcalDetDiagLaserMonitor.cc.
Referenced by get_reference(), and set_reference().
Definition at line 236 of file HcalDetDiagLaserMonitor.cc.
Referenced by get_reference(), and set_reference().
Definition at line 237 of file HcalDetDiagLaserMonitor.cc.
Referenced by get_reference(), and set_reference().
Definition at line 238 of file HcalDetDiagLaserMonitor.cc.
Referenced by get_reference(), and set_reference().
Definition at line 243 of file HcalDetDiagLaserMonitor.cc.
Referenced by change_status(), get_status(), and HcalDetDiagLaserData().
Definition at line 229 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics(), get_undeflow(), and reset().
Definition at line 231 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics(), get_undeflow1(), and reset1().
double HcalDetDiagLaserData::Xe |
Definition at line 232 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics(), get_average_amp(), and reset().
double HcalDetDiagLaserData::Xe1 |
Definition at line 233 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics(), get_average_amp1(), and reset1().
double HcalDetDiagLaserData::Xt |
Definition at line 232 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics(), get_average_time(), and reset().
double HcalDetDiagLaserData::Xt1 |
Definition at line 233 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics(), get_average_time1(), and reset1().
double HcalDetDiagLaserData::XXe |
Definition at line 232 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics(), get_average_amp(), and reset().
double HcalDetDiagLaserData::XXe1 |
Definition at line 233 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics(), get_average_amp1(), and reset1().
double HcalDetDiagLaserData::XXt |
Definition at line 232 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics(), get_average_time(), and reset().
double HcalDetDiagLaserData::XXt1 |
Definition at line 233 of file HcalDetDiagLaserMonitor.cc.
Referenced by add_statistics(), get_average_time1(), and reset1().