Analysis for calibration runs. More...
#include <CalibrationAnalysis.h>
Analysis for calibration runs.
Definition at line 16 of file CalibrationAnalysis.h.
CalibrationAnalysis::CalibrationAnalysis | ( | const uint32_t & | key, |
const bool & | deconv, | ||
int | calchan | ||
) |
Definition at line 14 of file CalibrationAnalysis.cc.
: CommissioningAnalysis(key,"CalibrationAnalysis"), amplitude_(2,VFloat(128,sistrip::invalid_)), tail_(2,VFloat(128,sistrip::invalid_)), riseTime_(2,VFloat(128,sistrip::invalid_)), timeConstant_(2,VFloat(128,sistrip::invalid_)), smearing_(2,VFloat(128,sistrip::invalid_)), chi2_(2,VFloat(128,sistrip::invalid_)), mean_amplitude_(2,sistrip::invalid_), mean_tail_(2,sistrip::invalid_), mean_riseTime_(2,sistrip::invalid_), mean_timeConstant_(2,sistrip::invalid_), mean_smearing_(2,sistrip::invalid_), mean_chi2_(2,sistrip::invalid_), min_amplitude_(2,sistrip::invalid_), min_tail_(2,sistrip::invalid_), min_riseTime_(2,sistrip::invalid_), min_timeConstant_(2,sistrip::invalid_), min_smearing_(2,sistrip::invalid_), min_chi2_(2,sistrip::invalid_), max_amplitude_(2,sistrip::invalid_), max_tail_(2,sistrip::invalid_), max_riseTime_(2,sistrip::invalid_), max_timeConstant_(2,sistrip::invalid_), max_smearing_(2,sistrip::invalid_), max_chi2_(2,sistrip::invalid_), spread_amplitude_(2,sistrip::invalid_), spread_tail_(2,sistrip::invalid_), spread_riseTime_(2,sistrip::invalid_), spread_timeConstant_(2,sistrip::invalid_), spread_smearing_(2,sistrip::invalid_), spread_chi2_(2,sistrip::invalid_), deconv_(deconv), calchan_(calchan), isScan_(false) {;}
CalibrationAnalysis::CalibrationAnalysis | ( | const bool & | deconv, |
int | calchan | ||
) |
Definition at line 53 of file CalibrationAnalysis.cc.
: CommissioningAnalysis("CalibrationAnalysis"), amplitude_(2,VFloat(128,sistrip::invalid_)), tail_(2,VFloat(128,sistrip::invalid_)), riseTime_(2,VFloat(128,sistrip::invalid_)), timeConstant_(2,VFloat(128,sistrip::invalid_)), smearing_(2,VFloat(128,sistrip::invalid_)), chi2_(2,VFloat(128,sistrip::invalid_)), mean_amplitude_(2,sistrip::invalid_), mean_tail_(2,sistrip::invalid_), mean_riseTime_(2,sistrip::invalid_), mean_timeConstant_(2,sistrip::invalid_), mean_smearing_(2,sistrip::invalid_), mean_chi2_(2,sistrip::invalid_), min_amplitude_(2,sistrip::invalid_), min_tail_(2,sistrip::invalid_), min_riseTime_(2,sistrip::invalid_), min_timeConstant_(2,sistrip::invalid_), min_smearing_(2,sistrip::invalid_), min_chi2_(2,sistrip::invalid_), max_amplitude_(2,sistrip::invalid_), max_tail_(2,sistrip::invalid_), max_riseTime_(2,sistrip::invalid_), max_timeConstant_(2,sistrip::invalid_), max_smearing_(2,sistrip::invalid_), max_chi2_(2,sistrip::invalid_), spread_amplitude_(2,sistrip::invalid_), spread_tail_(2,sistrip::invalid_), spread_riseTime_(2,sistrip::invalid_), spread_timeConstant_(2,sistrip::invalid_), spread_smearing_(2,sistrip::invalid_), spread_chi2_(2,sistrip::invalid_), deconv_(deconv), calchan_(calchan), isScan_(false) {;}
virtual CalibrationAnalysis::~CalibrationAnalysis | ( | ) | [inline, virtual] |
Definition at line 27 of file CalibrationAnalysis.h.
{;}
const VVFloat& CalibrationAnalysis::amplitude | ( | ) | const [inline] |
Definition at line 32 of file CalibrationAnalysis.h.
References amplitude_.
Referenced by CalibrationSummaryFactory::extract().
{ return amplitude_; }
const VFloat& CalibrationAnalysis::amplitudeMax | ( | ) | const [inline] |
Definition at line 50 of file CalibrationAnalysis.h.
References max_amplitude_.
Referenced by CalibrationSummaryFactory::extract().
{ return max_amplitude_; }
const VFloat& CalibrationAnalysis::amplitudeMean | ( | ) | const [inline] |
Definition at line 40 of file CalibrationAnalysis.h.
References mean_amplitude_.
Referenced by CalibrationHistosUsingDb::create(), and CalibrationSummaryFactory::extract().
{ return mean_amplitude_; }
const VFloat& CalibrationAnalysis::amplitudeMin | ( | ) | const [inline] |
Definition at line 49 of file CalibrationAnalysis.h.
References min_amplitude_.
Referenced by CalibrationSummaryFactory::extract().
{ return min_amplitude_; }
const VFloat& CalibrationAnalysis::amplitudeSpread | ( | ) | const [inline] |
Definition at line 48 of file CalibrationAnalysis.h.
References spread_amplitude_.
Referenced by CalibrationSummaryFactory::extract().
{ return spread_amplitude_; }
int CalibrationAnalysis::calchan | ( | ) | const [inline] |
const VVFloat& CalibrationAnalysis::chi2 | ( | void | ) | const [inline] |
Definition at line 37 of file CalibrationAnalysis.h.
References chi2_.
Referenced by CalibrationSummaryFactory::extract().
{ return chi2_; }
const VFloat& CalibrationAnalysis::chi2Max | ( | ) | const [inline] |
Definition at line 70 of file CalibrationAnalysis.h.
References max_chi2_.
Referenced by CalibrationSummaryFactory::extract().
{ return max_chi2_; }
const VFloat& CalibrationAnalysis::chi2Mean | ( | ) | const [inline] |
Definition at line 45 of file CalibrationAnalysis.h.
References mean_chi2_.
Referenced by CalibrationHistosUsingDb::create(), and CalibrationSummaryFactory::extract().
{ return mean_chi2_; }
const VFloat& CalibrationAnalysis::chi2Min | ( | ) | const [inline] |
Definition at line 69 of file CalibrationAnalysis.h.
References min_chi2_.
Referenced by CalibrationSummaryFactory::extract().
{ return min_chi2_; }
const VFloat& CalibrationAnalysis::chi2Spread | ( | ) | const [inline] |
Definition at line 68 of file CalibrationAnalysis.h.
References spread_chi2_.
Referenced by CalibrationSummaryFactory::extract().
{ return spread_chi2_; }
bool CalibrationAnalysis::deconvMode | ( | ) | const [inline] |
Definition at line 72 of file CalibrationAnalysis.h.
References deconv_.
Referenced by CalibrationHistosUsingDb::create(), and print().
{ return deconv_; }
void CalibrationAnalysis::print | ( | std::stringstream & | , |
uint32_t | not_used = 0 |
||
) | [virtual] |
Prints analysis results.
Implements CommissioningAnalysis.
Definition at line 127 of file CalibrationAnalysis.cc.
References deconvMode(), CommissioningAnalysis::header(), mean_amplitude_, mean_chi2_, mean_riseTime_, mean_smearing_, mean_tail_, and mean_timeConstant_.
{ header( ss ); ss << " Monitorables for APV number : " << iapv; if ( iapv == 0 ) { ss << " (first of pair)"; } else if ( iapv == 1 ) { ss << " (second of pair)"; } ss << std::endl; ss << " Mean Amplitude of the pulse : " << mean_amplitude_[iapv] << std::endl << " Mean Tail amplitude after 150ns : " << mean_tail_[iapv] << std::endl << " Mean Rise time : " << mean_riseTime_[iapv] << std::endl << " Mean Time constant : " << mean_timeConstant_[iapv] << std::endl << " Mean Smearing parameter : " << mean_smearing_[iapv] << std::endl << " Mean Chi2 of the fit : " << mean_chi2_[iapv] << std::endl; if(deconvMode()) { ss << "Data obtained in deconvolution mode." << std::endl; } else { ss << "Data obtained in peak mode." << std::endl; } }
void CalibrationAnalysis::reset | ( | ) | [virtual] |
Resets analysis member data.
Implements CommissioningAnalysis.
Definition at line 92 of file CalibrationAnalysis.cc.
References amplitude_, chi2_, sistrip::invalid_, max_amplitude_, max_chi2_, max_riseTime_, max_smearing_, max_tail_, max_timeConstant_, mean_amplitude_, mean_chi2_, mean_riseTime_, mean_smearing_, mean_tail_, mean_timeConstant_, min_amplitude_, min_chi2_, min_riseTime_, min_smearing_, min_tail_, min_timeConstant_, riseTime_, smearing_, spread_amplitude_, spread_chi2_, spread_riseTime_, spread_smearing_, spread_tail_, spread_timeConstant_, tail_, and timeConstant_.
{ amplitude_ = VVFloat(2,VFloat(128,sistrip::invalid_)); tail_ = VVFloat(2,VFloat(128,sistrip::invalid_)); riseTime_ = VVFloat(2,VFloat(128,sistrip::invalid_)); timeConstant_ = VVFloat(2,VFloat(128,sistrip::invalid_)); smearing_ = VVFloat(2,VFloat(128,sistrip::invalid_)); chi2_ = VVFloat(2,VFloat(128,sistrip::invalid_)); mean_amplitude_ = VFloat(2,sistrip::invalid_); mean_tail_ = VFloat(2,sistrip::invalid_); mean_riseTime_ = VFloat(2,sistrip::invalid_); mean_timeConstant_ = VFloat(2,sistrip::invalid_); mean_smearing_ = VFloat(2,sistrip::invalid_); mean_chi2_ = VFloat(2,sistrip::invalid_); min_amplitude_ = VFloat(2,sistrip::invalid_); min_tail_ = VFloat(2,sistrip::invalid_); min_riseTime_ = VFloat(2,sistrip::invalid_); min_timeConstant_ = VFloat(2,sistrip::invalid_); min_smearing_ = VFloat(2,sistrip::invalid_); min_chi2_ = VFloat(2,sistrip::invalid_); max_amplitude_ = VFloat(2,sistrip::invalid_); max_tail_ = VFloat(2,sistrip::invalid_); max_riseTime_ = VFloat(2,sistrip::invalid_); max_timeConstant_ = VFloat(2,sistrip::invalid_); max_smearing_ = VFloat(2,sistrip::invalid_); max_chi2_ = VFloat(2,sistrip::invalid_); spread_amplitude_ = VFloat(2,sistrip::invalid_); spread_tail_ = VFloat(2,sistrip::invalid_); spread_riseTime_ = VFloat(2,sistrip::invalid_); spread_timeConstant_ = VFloat(2,sistrip::invalid_); spread_smearing_ = VFloat(2,sistrip::invalid_); spread_chi2_ = VFloat(2,sistrip::invalid_); }
const VVFloat& CalibrationAnalysis::riseTime | ( | ) | const [inline] |
Definition at line 34 of file CalibrationAnalysis.h.
References riseTime_.
Referenced by CalibrationSummaryFactory::extract().
{ return riseTime_; }
const VFloat& CalibrationAnalysis::riseTimeMax | ( | ) | const [inline] |
Definition at line 58 of file CalibrationAnalysis.h.
References max_riseTime_.
Referenced by CalibrationSummaryFactory::extract().
{ return max_riseTime_; }
const VFloat& CalibrationAnalysis::riseTimeMean | ( | ) | const [inline] |
Definition at line 42 of file CalibrationAnalysis.h.
References mean_riseTime_.
Referenced by CalibrationHistosUsingDb::create(), and CalibrationSummaryFactory::extract().
{ return mean_riseTime_; }
const VFloat& CalibrationAnalysis::riseTimeMin | ( | ) | const [inline] |
Definition at line 57 of file CalibrationAnalysis.h.
References min_riseTime_.
Referenced by CalibrationSummaryFactory::extract().
{ return min_riseTime_; }
const VFloat& CalibrationAnalysis::riseTimeSpread | ( | ) | const [inline] |
Definition at line 56 of file CalibrationAnalysis.h.
References spread_riseTime_.
Referenced by CalibrationSummaryFactory::extract().
{ return spread_riseTime_; }
const VVFloat& CalibrationAnalysis::smearing | ( | ) | const [inline] |
Definition at line 36 of file CalibrationAnalysis.h.
References smearing_.
Referenced by CalibrationSummaryFactory::extract().
{ return smearing_; }
const VFloat& CalibrationAnalysis::smearingMax | ( | ) | const [inline] |
Definition at line 66 of file CalibrationAnalysis.h.
References max_smearing_.
Referenced by CalibrationSummaryFactory::extract().
{ return max_smearing_; }
const VFloat& CalibrationAnalysis::smearingMean | ( | ) | const [inline] |
Definition at line 44 of file CalibrationAnalysis.h.
References mean_smearing_.
Referenced by CalibrationHistosUsingDb::create(), and CalibrationSummaryFactory::extract().
{ return mean_smearing_; }
const VFloat& CalibrationAnalysis::smearingMin | ( | ) | const [inline] |
Definition at line 65 of file CalibrationAnalysis.h.
References min_smearing_.
Referenced by CalibrationSummaryFactory::extract().
{ return min_smearing_; }
const VFloat& CalibrationAnalysis::smearingSpread | ( | ) | const [inline] |
Definition at line 64 of file CalibrationAnalysis.h.
References spread_smearing_.
Referenced by CalibrationSummaryFactory::extract().
{ return spread_smearing_; }
const VVFloat& CalibrationAnalysis::tail | ( | ) | const [inline] |
Definition at line 33 of file CalibrationAnalysis.h.
References tail_.
Referenced by CalibrationSummaryFactory::extract().
{ return tail_; }
const VFloat& CalibrationAnalysis::tailMax | ( | ) | const [inline] |
Definition at line 54 of file CalibrationAnalysis.h.
References max_tail_.
Referenced by CalibrationSummaryFactory::extract().
{ return max_tail_; }
const VFloat& CalibrationAnalysis::tailMean | ( | ) | const [inline] |
Definition at line 41 of file CalibrationAnalysis.h.
References mean_tail_.
Referenced by CalibrationHistosUsingDb::create(), and CalibrationSummaryFactory::extract().
{ return mean_tail_; }
const VFloat& CalibrationAnalysis::tailMin | ( | ) | const [inline] |
Definition at line 53 of file CalibrationAnalysis.h.
References min_tail_.
Referenced by CalibrationSummaryFactory::extract().
{ return min_tail_; }
const VFloat& CalibrationAnalysis::tailSpread | ( | ) | const [inline] |
Definition at line 52 of file CalibrationAnalysis.h.
References spread_tail_.
Referenced by CalibrationSummaryFactory::extract().
{ return spread_tail_; }
const VVFloat& CalibrationAnalysis::timeConstant | ( | ) | const [inline] |
Definition at line 35 of file CalibrationAnalysis.h.
References timeConstant_.
Referenced by CalibrationSummaryFactory::extract().
{ return timeConstant_; }
const VFloat& CalibrationAnalysis::timeConstantMax | ( | ) | const [inline] |
Definition at line 62 of file CalibrationAnalysis.h.
References max_timeConstant_.
Referenced by CalibrationSummaryFactory::extract().
{ return max_timeConstant_; }
const VFloat& CalibrationAnalysis::timeConstantMean | ( | ) | const [inline] |
Definition at line 43 of file CalibrationAnalysis.h.
References mean_timeConstant_.
Referenced by CalibrationHistosUsingDb::create(), and CalibrationSummaryFactory::extract().
{ return mean_timeConstant_; }
const VFloat& CalibrationAnalysis::timeConstantMin | ( | ) | const [inline] |
Definition at line 61 of file CalibrationAnalysis.h.
References min_timeConstant_.
Referenced by CalibrationSummaryFactory::extract().
{ return min_timeConstant_; }
const VFloat& CalibrationAnalysis::timeConstantSpread | ( | ) | const [inline] |
Definition at line 60 of file CalibrationAnalysis.h.
References spread_timeConstant_.
Referenced by CalibrationSummaryFactory::extract().
{ return spread_timeConstant_; }
friend class CalibrationAlgorithm [friend] |
Definition at line 29 of file CalibrationAnalysis.h.
VVFloat CalibrationAnalysis::amplitude_ [private] |
Parameters extracted from the fit of pulse shape
Definition at line 82 of file CalibrationAnalysis.h.
Referenced by amplitude(), CalibrationAlgorithm::analyse(), and reset().
int CalibrationAnalysis::calchan_ [private] |
calchan value used in that dataset
Definition at line 96 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), and calchan().
VVFloat CalibrationAnalysis::chi2_ [private] |
Definition at line 82 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), chi2(), and reset().
bool CalibrationAnalysis::deconv_ [private] |
fit mode: deconv or not ?
Definition at line 93 of file CalibrationAnalysis.h.
Referenced by deconvMode(), and CalibrationAlgorithm::fitPulse().
bool CalibrationAnalysis::isScan_ [private] |
internal mode: cal scan or standard run
Definition at line 99 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), CalibrationAlgorithm::correctDistribution(), and CalibrationAlgorithm::extract().
VFloat CalibrationAnalysis::max_amplitude_ [private] |
Definition at line 88 of file CalibrationAnalysis.h.
Referenced by amplitudeMax(), CalibrationAlgorithm::analyse(), and reset().
VFloat CalibrationAnalysis::max_chi2_ [private] |
Definition at line 88 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), chi2Max(), and reset().
VFloat CalibrationAnalysis::max_riseTime_ [private] |
Definition at line 88 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and riseTimeMax().
VFloat CalibrationAnalysis::max_smearing_ [private] |
Definition at line 88 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and smearingMax().
VFloat CalibrationAnalysis::max_tail_ [private] |
Definition at line 88 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and tailMax().
VFloat CalibrationAnalysis::max_timeConstant_ [private] |
Definition at line 88 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and timeConstantMax().
VFloat CalibrationAnalysis::mean_amplitude_ [private] |
Definition at line 84 of file CalibrationAnalysis.h.
Referenced by amplitudeMean(), CalibrationAlgorithm::analyse(), print(), and reset().
VFloat CalibrationAnalysis::mean_chi2_ [private] |
Definition at line 84 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), chi2Mean(), print(), and reset().
VFloat CalibrationAnalysis::mean_riseTime_ [private] |
Definition at line 84 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), print(), reset(), and riseTimeMean().
VFloat CalibrationAnalysis::mean_smearing_ [private] |
Definition at line 84 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), print(), reset(), and smearingMean().
VFloat CalibrationAnalysis::mean_tail_ [private] |
Definition at line 84 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), print(), reset(), and tailMean().
Definition at line 84 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), print(), reset(), and timeConstantMean().
VFloat CalibrationAnalysis::min_amplitude_ [private] |
Definition at line 86 of file CalibrationAnalysis.h.
Referenced by amplitudeMin(), CalibrationAlgorithm::analyse(), and reset().
VFloat CalibrationAnalysis::min_chi2_ [private] |
Definition at line 86 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), chi2Min(), and reset().
VFloat CalibrationAnalysis::min_riseTime_ [private] |
Definition at line 86 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and riseTimeMin().
VFloat CalibrationAnalysis::min_smearing_ [private] |
Definition at line 86 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and smearingMin().
VFloat CalibrationAnalysis::min_tail_ [private] |
Definition at line 86 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and tailMin().
VFloat CalibrationAnalysis::min_timeConstant_ [private] |
Definition at line 86 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and timeConstantMin().
VVFloat CalibrationAnalysis::riseTime_ [private] |
Definition at line 82 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and riseTime().
VVFloat CalibrationAnalysis::smearing_ [private] |
Definition at line 82 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and smearing().
VFloat CalibrationAnalysis::spread_amplitude_ [private] |
Definition at line 90 of file CalibrationAnalysis.h.
Referenced by amplitudeSpread(), CalibrationAlgorithm::analyse(), and reset().
VFloat CalibrationAnalysis::spread_chi2_ [private] |
Definition at line 90 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), chi2Spread(), and reset().
VFloat CalibrationAnalysis::spread_riseTime_ [private] |
Definition at line 90 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and riseTimeSpread().
VFloat CalibrationAnalysis::spread_smearing_ [private] |
Definition at line 90 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and smearingSpread().
VFloat CalibrationAnalysis::spread_tail_ [private] |
Definition at line 90 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and tailSpread().
Definition at line 90 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and timeConstantSpread().
VVFloat CalibrationAnalysis::tail_ [private] |
Definition at line 82 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and tail().
VVFloat CalibrationAnalysis::timeConstant_ [private] |
Definition at line 82 of file CalibrationAnalysis.h.
Referenced by CalibrationAlgorithm::analyse(), reset(), and timeConstant().