Definition at line 103 of file LArBadChannelHunter.h.
◆ Average()
LArBadChannelHunter::Average::Average |
( |
| ) |
|
◆ finish()
void LArBadChannelHunter::Average::finish |
( |
float |
my_recalcPer | ) |
|
Definition at line 515 of file LArBadChannelHunter.cxx.
559 if (my_recalcPer>=0.){
562 float re_avPed=0.;
float re_avPedSD=0.;
int re_nPed=0;
565 for (;p_loop!=p_loop_e; ++p_loop){
568 re_avPedSD+=*p_loop*(*p_loop);
574 re_avPedSD=(re_avPedSD- re_nPed*re_avPed*re_avPed)/(re_nPed);
576 re_avPedSD=sqrt(re_avPedSD);
577 std::cout <<
" PedRMS mean && RMS are recalc: Orig (recalc) are: "<<
m_avPedRMS[
igain]<<
" ( "<< re_avPed
583 float re_avAmpl=0.;
float re_avAmplSD=0.;
int re_nAmpl=0;
586 for (;re_loop!=re_loop_e; ++re_loop){
589 re_avAmplSD+=*re_loop*(*re_loop);
595 re_avAmplSD=(re_avAmplSD- re_nAmpl*re_avAmpl*re_avAmpl)/(re_nAmpl);
597 re_avAmplSD=sqrt(re_avAmplSD);
598 std::cout <<
" MaxAmp mean && RMS are recalc: Orig (recalc) are: "<<
m_avAmpl[
igain]<<
" ( "<< re_avAmpl
604 float re_avWid=0.;
float re_avWidSD=0.;
int re_nWid=0;
607 for (;w_loop!=w_loop_e; ++w_loop){
610 re_avWidSD+=*w_loop*(*w_loop);
616 re_avWidSD=(re_avWidSD- re_nWid*re_avWid*re_avWid)/(re_nWid);
618 re_avWidSD=sqrt(re_avWidSD);
619 std::cout <<
" FWHM mean && RMS are recalc: Orig (recalc) are: "<<
m_avWid[
igain]<<
" ( "<< re_avWid
620 <<
" ) and "<<
m_avWidSD[
igain]<<
" ( "<<re_avWidSD<<
" )"<<std::endl;
625 float re_avTmax=0.;
float re_avTmaxSD=0.;
int re_nTmax=0;
628 for (;t_loop!=t_loop_e; ++t_loop){
631 re_avTmaxSD+=*t_loop*(*t_loop);
637 re_avTmaxSD=(re_avTmaxSD- re_nTmax*re_avTmax*re_avTmax)/(re_nTmax);
639 re_avTmaxSD=sqrt(re_avTmaxSD);
640 std::cout <<
"TmaxAmp mean && RMS are recalc: Orig (recalc) are: "<<
m_avTmax[
igain]<<
" ( "<< re_avTmax
◆ m_avAmpl
◆ m_avAmplSD
◆ m_avPedRMS
◆ m_avPedRMSSD
◆ m_avTmax
◆ m_avTmaxSD
◆ m_avWid
◆ m_avWidSD
◆ m_medAmpl
◆ m_medPedRMS
◆ m_medTmax
◆ m_medWid
◆ m_nAmpls
◆ m_nPed
◆ m_nTmaxs
◆ m_nWids
◆ m_vmedAmpl
◆ m_vmedPedRMS
◆ m_vmedTmax
◆ m_vmedWid
The documentation for this class was generated from the following files:
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.