Public Member Functions | |
void | add_statistics (double *data, int nTS) |
void | change_status (int val) |
bool | get_average_led (double *ave, double *rms) |
bool | get_average_time (double *ave, double *rms) |
int | get_overflow () |
bool | get_reference (double *val, double *rms) |
int | get_statistics () |
int | get_status () |
int | get_undeflow () |
HcalDetDiagLEDData () | |
void | reset () |
void | set_reference (float val, float rms) |
Private Member Functions | |
double | GetEnergy (double *data, int n) |
double | GetTime (double *data, int n=10) |
Private Attributes | |
bool | IsRefetence |
double | n |
int | overflow |
float | ref_led |
float | ref_rms |
int | status |
int | undeflow |
double | Xe |
double | Xt |
double | XXe |
double | XXt |
Definition at line 24 of file HcalDetDiagLEDMonitor.cc.
HcalDetDiagLEDData::HcalDetDiagLEDData | ( | ) | [inline] |
Definition at line 26 of file HcalDetDiagLEDMonitor.cc.
References IsRefetence, reset(), and status.
{ IsRefetence=false; status=0; reset(); }
void HcalDetDiagLEDData::add_statistics | ( | double * | data, |
int | nTS | ||
) | [inline] |
Definition at line 36 of file HcalDetDiagLEDMonitor.cc.
References ExpressReco_HICollisions_FallBack::e, GetEnergy(), GetTime(), n, overflow, matplotRender::t, undeflow, Xe, Xt, XXe, and XXt.
Referenced by HcalDetDiagLEDMonitor::analyze().
void HcalDetDiagLEDData::change_status | ( | int | val | ) | [inline] |
Definition at line 47 of file HcalDetDiagLEDMonitor.cc.
References status.
Referenced by HcalDetDiagLEDMonitor::CheckStatus().
{ status|=val; }
bool HcalDetDiagLEDData::get_average_led | ( | double * | ave, |
double * | rms | ||
) | [inline] |
Definition at line 57 of file HcalDetDiagLEDMonitor.cc.
References n, mathSSE::sqrt(), Xe, and XXe.
Referenced by HcalDetDiagLEDMonitor::fillHistos(), and HcalDetDiagLEDMonitor::SaveReference().
bool HcalDetDiagLEDData::get_average_time | ( | double * | ave, |
double * | rms | ||
) | [inline] |
Definition at line 61 of file HcalDetDiagLEDMonitor.cc.
References n, mathSSE::sqrt(), Xt, and XXt.
Referenced by HcalDetDiagLEDMonitor::CheckStatus(), HcalDetDiagLEDMonitor::fillHistos(), and HcalDetDiagLEDMonitor::SaveReference().
int HcalDetDiagLEDData::get_overflow | ( | ) | [inline] |
Definition at line 68 of file HcalDetDiagLEDMonitor.cc.
References overflow.
Referenced by HcalDetDiagLEDMonitor::CheckStatus().
{ return overflow; }
bool HcalDetDiagLEDData::get_reference | ( | double * | val, |
double * | rms | ||
) | [inline] |
Definition at line 53 of file HcalDetDiagLEDMonitor.cc.
References IsRefetence, ref_led, and ref_rms.
{ *val=ref_led; *rms=ref_rms; return IsRefetence; }
int HcalDetDiagLEDData::get_statistics | ( | ) | [inline] |
Definition at line 65 of file HcalDetDiagLEDMonitor.cc.
References n.
Referenced by HcalDetDiagLEDMonitor::CheckStatus().
{ return (int)n; }
int HcalDetDiagLEDData::get_status | ( | ) | [inline] |
Definition at line 50 of file HcalDetDiagLEDMonitor.cc.
References status.
Referenced by HcalDetDiagLEDMonitor::SaveReference().
{ return status; }
int HcalDetDiagLEDData::get_undeflow | ( | ) | [inline] |
Definition at line 71 of file HcalDetDiagLEDMonitor.cc.
References undeflow.
Referenced by HcalDetDiagLEDMonitor::CheckStatus().
{ return undeflow; }
double HcalDetDiagLEDData::GetEnergy | ( | double * | data, |
int | n | ||
) | [inline, private] |
Definition at line 75 of file HcalDetDiagLEDMonitor.cc.
Referenced by add_statistics().
double HcalDetDiagLEDData::GetTime | ( | double * | data, |
int | n = 10 |
||
) | [inline, private] |
Definition at line 85 of file HcalDetDiagLEDMonitor.cc.
Referenced by add_statistics().
{ int MaxI=0; double Time=-9999,SumT=0,MaxT=-10; for(int j=0;j<n;++j) if(MaxT<data[j]){ MaxT=data[j]; MaxI=j; } 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 HcalDetDiagLEDData::reset | ( | void | ) | [inline] |
void HcalDetDiagLEDData::set_reference | ( | float | val, |
float | rms | ||
) | [inline] |
Definition at line 43 of file HcalDetDiagLEDMonitor.cc.
References IsRefetence, ref_led, ref_rms, and plotscripts::rms().
Referenced by HcalDetDiagLEDMonitor::LoadReference().
{ ref_led=val; ref_rms=rms; IsRefetence=true; }
bool HcalDetDiagLEDData::IsRefetence [private] |
Definition at line 98 of file HcalDetDiagLEDMonitor.cc.
Referenced by get_reference(), HcalDetDiagLEDData(), and set_reference().
double HcalDetDiagLEDData::n [private] |
Definition at line 97 of file HcalDetDiagLEDMonitor.cc.
Referenced by add_statistics(), get_average_led(), get_average_time(), get_statistics(), GetEnergy(), GetTime(), and reset().
int HcalDetDiagLEDData::overflow [private] |
Definition at line 95 of file HcalDetDiagLEDMonitor.cc.
Referenced by add_statistics(), get_overflow(), and reset().
float HcalDetDiagLEDData::ref_led [private] |
Definition at line 99 of file HcalDetDiagLEDMonitor.cc.
Referenced by get_reference(), and set_reference().
float HcalDetDiagLEDData::ref_rms [private] |
Definition at line 100 of file HcalDetDiagLEDMonitor.cc.
Referenced by get_reference(), and set_reference().
int HcalDetDiagLEDData::status [private] |
Definition at line 101 of file HcalDetDiagLEDMonitor.cc.
Referenced by change_status(), get_status(), and HcalDetDiagLEDData().
int HcalDetDiagLEDData::undeflow [private] |
Definition at line 96 of file HcalDetDiagLEDMonitor.cc.
Referenced by add_statistics(), get_undeflow(), and reset().
double HcalDetDiagLEDData::Xe [private] |
Definition at line 97 of file HcalDetDiagLEDMonitor.cc.
Referenced by add_statistics(), get_average_led(), and reset().
double HcalDetDiagLEDData::Xt [private] |
Definition at line 97 of file HcalDetDiagLEDMonitor.cc.
Referenced by add_statistics(), get_average_time(), and reset().
double HcalDetDiagLEDData::XXe [private] |
Definition at line 97 of file HcalDetDiagLEDMonitor.cc.
Referenced by add_statistics(), get_average_led(), and reset().
double HcalDetDiagLEDData::XXt [private] |
Definition at line 97 of file HcalDetDiagLEDMonitor.cc.
Referenced by add_statistics(), get_average_time(), and reset().