![]() |
![]() |
Public Member Functions | |
void | add_statistics (unsigned int val) |
void | change_status (int val) |
bool | get_average (double *ave, double *rms) |
int | get_overflow () |
bool | get_reference (double *val, double *rms) |
int | get_statistics () |
int | get_status () |
HcalDetDiagPedestalData () | |
void | reset () |
void | set_reference (float val, float rms) |
Public Attributes | |
float | nBadPed |
float | nBadRms |
float | nChecks |
float | nMissing |
float | nUnstable |
Private Attributes | |
int | adc [128] |
bool | IsReference |
int | overflow |
float | ref_ped |
float | ref_rms |
int | status |
Definition at line 58 of file HcalDetDiagPedestalMonitor.cc.
HcalDetDiagPedestalData::HcalDetDiagPedestalData | ( | ) | [inline] |
void HcalDetDiagPedestalData::add_statistics | ( | unsigned int | val | ) | [inline] |
Definition at line 70 of file HcalDetDiagPedestalMonitor.cc.
Referenced by HcalDetDiagPedestalMonitor::analyze().
void HcalDetDiagPedestalData::change_status | ( | int | val | ) | [inline] |
Definition at line 77 of file HcalDetDiagPedestalMonitor.cc.
References status.
Referenced by HcalDetDiagPedestalMonitor::CheckStatus().
{ status|=val; }
bool HcalDetDiagPedestalData::get_average | ( | double * | ave, |
double * | rms | ||
) | [inline] |
Definition at line 87 of file HcalDetDiagPedestalMonitor.cc.
References adc, Capri::details::from(), i, max(), mathSSE::sqrt(), and Sum.
Referenced by HcalDetDiagPedestalMonitor::CheckStatus(), HcalDetDiagPedestalMonitor::fillHistos(), and HcalDetDiagPedestalMonitor::SaveReference().
{ double Sum=0,nSum=0; int from,to,max=adc[0],maxi=0; for(int i=1;i<25;i++) if(adc[i]>max){ max=adc[i]; maxi=i;} from=0; to=maxi+6; for(int i=from;i<=to;i++){ Sum+=i*adc[i]; nSum+=adc[i]; } if(nSum>0) *ave=Sum/nSum; else return false; Sum=0; for(int i=from;i<=to;i++) Sum+=adc[i]*(i-*ave)*(i-*ave); *rms=sqrt(Sum/nSum); return true; }
int HcalDetDiagPedestalData::get_overflow | ( | ) | [inline] |
Definition at line 107 of file HcalDetDiagPedestalMonitor.cc.
References overflow.
Referenced by HcalDetDiagPedestalMonitor::CheckStatus().
{ return overflow; }
bool HcalDetDiagPedestalData::get_reference | ( | double * | val, |
double * | rms | ||
) | [inline] |
Definition at line 83 of file HcalDetDiagPedestalMonitor.cc.
References IsReference, ref_ped, and ref_rms.
Referenced by HcalDetDiagPedestalMonitor::CheckStatus().
{ *val=ref_ped; *rms=ref_rms; return IsReference; }
int HcalDetDiagPedestalData::get_statistics | ( | ) | [inline] |
Definition at line 102 of file HcalDetDiagPedestalMonitor.cc.
Referenced by HcalDetDiagPedestalMonitor::CheckStatus(), and HcalDetDiagPedestalMonitor::SaveReference().
int HcalDetDiagPedestalData::get_status | ( | ) | [inline] |
Definition at line 80 of file HcalDetDiagPedestalMonitor.cc.
References status.
Referenced by HcalDetDiagPedestalMonitor::SaveReference().
{ return status; }
void HcalDetDiagPedestalData::reset | ( | void | ) | [inline] |
void HcalDetDiagPedestalData::set_reference | ( | float | val, |
float | rms | ||
) | [inline] |
Definition at line 73 of file HcalDetDiagPedestalMonitor.cc.
References IsReference, ref_ped, ref_rms, and plotscripts::rms().
Referenced by HcalDetDiagPedestalMonitor::LoadReference().
{ ref_ped=val; ref_rms=rms; IsReference=true; }
int HcalDetDiagPedestalData::adc[128] [private] |
Definition at line 116 of file HcalDetDiagPedestalMonitor.cc.
Referenced by add_statistics(), get_average(), get_statistics(), and reset().
bool HcalDetDiagPedestalData::IsReference [private] |
Definition at line 118 of file HcalDetDiagPedestalMonitor.cc.
Referenced by get_reference(), HcalDetDiagPedestalData(), and set_reference().
Definition at line 113 of file HcalDetDiagPedestalMonitor.cc.
Referenced by HcalDetDiagPedestalMonitor::CheckStatus(), and HcalDetDiagPedestalData().
Definition at line 114 of file HcalDetDiagPedestalMonitor.cc.
Referenced by HcalDetDiagPedestalMonitor::CheckStatus(), and HcalDetDiagPedestalData().
Definition at line 110 of file HcalDetDiagPedestalMonitor.cc.
Referenced by HcalDetDiagPedestalMonitor::CheckStatus(), and HcalDetDiagPedestalData().
Definition at line 111 of file HcalDetDiagPedestalMonitor.cc.
Referenced by HcalDetDiagPedestalMonitor::CheckStatus(), and HcalDetDiagPedestalData().
Definition at line 112 of file HcalDetDiagPedestalMonitor.cc.
Referenced by HcalDetDiagPedestalMonitor::CheckStatus(), and HcalDetDiagPedestalData().
int HcalDetDiagPedestalData::overflow [private] |
Definition at line 117 of file HcalDetDiagPedestalMonitor.cc.
Referenced by add_statistics(), get_overflow(), and reset().
float HcalDetDiagPedestalData::ref_ped [private] |
Definition at line 119 of file HcalDetDiagPedestalMonitor.cc.
Referenced by get_reference(), and set_reference().
float HcalDetDiagPedestalData::ref_rms [private] |
Definition at line 120 of file HcalDetDiagPedestalMonitor.cc.
Referenced by get_reference(), and set_reference().
int HcalDetDiagPedestalData::status [private] |
Definition at line 121 of file HcalDetDiagPedestalMonitor.cc.
Referenced by change_status(), get_status(), and HcalDetDiagPedestalData().