Analysis for calibration scans. More...
#include <CalibrationScanAnalysis.h>
Public Member Functions | |
void | addOneCalibrationPoint (const std::string &key) |
const VFloat & | amplitude (const std::string &key) |
const VFloat & | baseline (const std::string &key) |
const VInt & | bestISHA () |
const VInt & | bestVFS () |
CalibrationScanAnalysis (const bool &deconv) | |
CalibrationScanAnalysis (const uint32_t &key, const bool &deconv) | |
const VFloat & | chi2 (const std::string &key) |
const VFloat & | decayTime (const std::string &key) |
const std::vector< TGraph2D * > & | decayTimeVsISHAVsVFS () |
const std::vector< TGraph * > & | decayTimeVsVFS () |
bool | deconvMode () |
bool | isValid () const override |
const VBool | isValid (const std::string &key) |
const VFloat & | peakTime (const std::string &key) |
void | print (std::stringstream &, uint32_t not_used=0) override |
void | reset () override |
const VFloat & | riseTime (const std::string &key) |
const std::vector< TGraph * > & | riseTimeVsISHA () |
const std::vector< TGraph2D * > & | riseTimeVsISHAVsVFS () |
const VFloat & | smearing (const std::string &key) |
const VFloat & | tail (const std::string &key) |
const VFloat & | tunedAmplitude () |
const VFloat & | tunedBaseline () |
const VFloat & | tunedChi2 () |
const VFloat & | tunedDecayTime () |
const VInt & | tunedISHA () |
const VFloat & | tunedPeakTime () |
const VFloat & | tunedRiseTime () |
const VFloat & | tunedSmearing () |
const VFloat & | tunedTail () |
const VFloat & | tunedTurnOn () |
const VFloat & | tunedUndershoot () |
const VInt & | tunedVFS () |
const VFloat & | turnOn (const std::string &key) |
const VFloat & | undershoot (const std::string &key) |
~CalibrationScanAnalysis () override | |
Public Member Functions inherited from CommissioningAnalysis | |
virtual void | addErrorCode (const std::string &error) |
CommissioningAnalysis (const std::string &my_name) | |
CommissioningAnalysis (const uint32_t &key, const std::string &my_name) | |
const uint32_t & | dcuId () const |
void | dcuId (const uint32_t &) |
const uint32_t & | detId () const |
void | detId (const uint32_t &) |
const uint32_t & | fecKey () const |
void | fecKey (const uint32_t &) |
const uint32_t & | fedKey () const |
void | fedKey (const uint32_t &) |
const VString & | getErrorCodes () const |
virtual void | header (std::stringstream &) const |
const std::string & | myName () const |
void | setErrorCodes (const VString &errors) |
virtual void | summary (std::stringstream &) const |
virtual | ~CommissioningAnalysis () |
Static Public Attributes | |
static const float | maxBaselineThreshold_ = 50 |
static const float | maxChi2Threshold_ = 3 |
static const float | maxDecayTimeThreshold_ = 250 |
static const float | maxISHAforVFSTune_ = 110 |
static const float | maxPeakTimeThreshold_ = 130 |
static const float | maxRiseTimeThreshold_ = 100 |
static const float | maxTurnOnThreshold_ = 40 |
static const float | minAmplitudeThreshold_ = 50 |
static const float | minBaselineThreshold_ = -50 |
static const float | minDecayTimeThreshold_ = 30 |
static const float | minISHAforVFSTune_ = 30 |
static const float | minPeakTimeThreshold_ = 40 |
static const float | minRiseTimeThreshold_ = 10 |
static const float | minTurnOnThreshold_ = 5 |
static const float | VFSrange_ = 20 |
Private Attributes | |
std::map< std::string, VFloat > | amplitude_ |
std::map< std::string, VFloat > | baseline_ |
std::map< std::string, VFloat > | chi2_ |
std::map< std::string, VFloat > | decayTime_ |
std::vector< TGraph2D * > | decayTime_vs_isha_vfs_ |
std::vector< TGraph * > | decayTime_vs_vfs_ |
bool | deconv_ |
VInt | isha_ |
std::map< std::string, VBool > | isvalid_ |
std::map< std::string, VFloat > | peakTime_ |
std::map< std::string, VFloat > | riseTime_ |
std::vector< TGraph * > | riseTime_vs_isha_ |
std::vector< TGraph2D * > | riseTime_vs_isha_vfs_ |
std::map< std::string, VFloat > | smearing_ |
std::map< std::string, VFloat > | tail_ |
VFloat | tunedAmplitude_ |
VFloat | tunedBaseline_ |
VFloat | tunedChi2_ |
VFloat | tunedDecayTime_ |
VInt | tunedISHA_ |
VFloat | tunedPeakTime_ |
VFloat | tunedRiseTime_ |
VFloat | tunedSmearing_ |
VFloat | tunedTail_ |
VFloat | tunedTurnOn_ |
VFloat | tunedUndershoot_ |
VInt | tunedVFS_ |
std::map< std::string, VFloat > | turnOn_ |
std::map< std::string, VFloat > | undershoot_ |
VInt | vfs_ |
Friends | |
class | CalibrationScanAlgorithm |
Additional Inherited Members | |
Public Types inherited from CommissioningAnalysis | |
typedef std::vector< bool > | VBool |
typedef std::vector< float > | VFloat |
typedef std::vector< uint16_t > | VInt |
typedef std::vector< std::string > | VString |
typedef std::vector< VBool > | VVBool |
typedef std::vector< VFloat > | VVFloat |
typedef std::vector< VInt > | VVInt |
Analysis for calibration scans.
Definition at line 19 of file CalibrationScanAnalysis.h.
CalibrationScanAnalysis::CalibrationScanAnalysis | ( | const uint32_t & | key, |
const bool & | deconv | ||
) |
Definition at line 28 of file CalibrationScanAnalysis.cc.
References sistrip::invalid_, isha_, tunedAmplitude_, tunedBaseline_, tunedChi2_, tunedDecayTime_, tunedISHA_, tunedPeakTime_, tunedRiseTime_, tunedSmearing_, tunedTail_, tunedTurnOn_, tunedUndershoot_, tunedVFS_, and vfs_.
CalibrationScanAnalysis::CalibrationScanAnalysis | ( | const bool & | deconv | ) |
Definition at line 48 of file CalibrationScanAnalysis.cc.
References sistrip::invalid_, isha_, tunedAmplitude_, tunedBaseline_, tunedChi2_, tunedDecayTime_, tunedISHA_, tunedPeakTime_, tunedRiseTime_, tunedSmearing_, tunedTail_, tunedTurnOn_, tunedUndershoot_, tunedVFS_, and vfs_.
|
inlineoverride |
Definition at line 24 of file CalibrationScanAnalysis.h.
void CalibrationScanAnalysis::addOneCalibrationPoint | ( | const std::string & | key | ) |
Definition at line 68 of file CalibrationScanAnalysis.cc.
References amplitude_, baseline_, chi2_, decayTime_, sistrip::invalid_, isvalid_, crabWrapper::key, peakTime_, riseTime_, smearing_, tail_, turnOn_, and undershoot_.
Referenced by CalibrationScanAlgorithm::analyse().
|
inline |
Definition at line 33 of file CalibrationScanAnalysis.h.
References amplitude_, and crabWrapper::key.
Referenced by CalibrationScanAlgorithm::fillTunedObservables().
|
inline |
Definition at line 42 of file CalibrationScanAnalysis.h.
References baseline_, and crabWrapper::key.
Referenced by CalibrationScanAlgorithm::fillTunedObservables().
|
inline |
Definition at line 65 of file CalibrationScanAnalysis.h.
References isha_.
Referenced by CalibrationScanAlgorithm::fillTunedObservables().
|
inline |
Definition at line 66 of file CalibrationScanAnalysis.h.
References vfs_.
Referenced by CalibrationScanAlgorithm::fillTunedObservables().
|
inline |
Definition at line 44 of file CalibrationScanAnalysis.h.
References chi2_, and crabWrapper::key.
Referenced by CalibrationScanAlgorithm::fillTunedObservables().
|
inline |
Definition at line 38 of file CalibrationScanAnalysis.h.
References decayTime_, and crabWrapper::key.
Referenced by CalibrationScanAlgorithm::fillTunedObservables(), CalibrationScanAlgorithm::tuneIndependently(), and CalibrationScanAlgorithm::tuneSimultaneously().
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Identifies if analysis is valid or not.
Reimplemented from CommissioningAnalysis.
Definition at line 143 of file CalibrationScanAnalysis.cc.
Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
inline |
Definition at line 30 of file CalibrationScanAnalysis.h.
References isvalid_, and crabWrapper::key.
Referenced by ntupleDataFormat._Object::_checkIsValid(), core.AutoHandle.AutoHandle::ReallyLoad(), CalibrationScanAlgorithm::tuneIndependently(), and CalibrationScanAlgorithm::tuneSimultaneously().
|
inline |
Definition at line 40 of file CalibrationScanAnalysis.h.
References crabWrapper::key, and peakTime_.
Referenced by CalibrationScanAlgorithm::fillTunedObservables().
|
overridevirtual |
Prints analysis results.
Implements CommissioningAnalysis.
Definition at line 117 of file CalibrationScanAnalysis.cc.
References amplitude_, baseline_, chi2_, decayTime_, deconvMode(), CommissioningAnalysis::header(), peakTime_, riseTime_, smearing_, contentValuesCheck::ss, turnOn_, and undershoot_.
|
overridevirtual |
Resets analysis member data.
Implements CommissioningAnalysis.
Definition at line 85 of file CalibrationScanAnalysis.cc.
References amplitude_, baseline_, chi2_, decayTime_, sistrip::invalid_, isha_, crabWrapper::key, peakTime_, riseTime_, smearing_, tail_, tunedAmplitude_, tunedBaseline_, tunedChi2_, tunedDecayTime_, tunedISHA_, tunedPeakTime_, tunedRiseTime_, tunedSmearing_, tunedTail_, tunedTurnOn_, tunedUndershoot_, tunedVFS_, turnOn_, undershoot_, and vfs_.
Referenced by MatrixReader.MatrixReader::__init__(), and MatrixReader.MatrixReader::showRaw().
|
inline |
Definition at line 37 of file CalibrationScanAnalysis.h.
References crabWrapper::key, and riseTime_.
Referenced by CalibrationScanAlgorithm::fillTunedObservables(), CalibrationScanAlgorithm::tuneIndependently(), and CalibrationScanAlgorithm::tuneSimultaneously().
|
inline |
|
inline |
|
inline |
Definition at line 43 of file CalibrationScanAnalysis.h.
References crabWrapper::key, and smearing_.
Referenced by CalibrationScanAlgorithm::fillTunedObservables().
|
inline |
Definition at line 36 of file CalibrationScanAnalysis.h.
References crabWrapper::key, and tail_.
Referenced by CalibrationScanAlgorithm::fillTunedObservables().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 57 of file CalibrationScanAnalysis.h.
References tunedISHA_.
Referenced by CalibrationScanAlgorithm::fillTunedObservables().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 58 of file CalibrationScanAnalysis.h.
References tunedVFS_.
Referenced by CalibrationScanAlgorithm::fillTunedObservables().
|
inline |
Definition at line 39 of file CalibrationScanAnalysis.h.
References crabWrapper::key, and turnOn_.
Referenced by CalibrationScanAlgorithm::fillTunedObservables().
|
inline |
Definition at line 41 of file CalibrationScanAnalysis.h.
References crabWrapper::key, and undershoot_.
Referenced by CalibrationScanAlgorithm::fillTunedObservables().
|
friend |
Definition at line 28 of file CalibrationScanAnalysis.h.
|
private |
Parameters extracted from the fit of pulse shape
Definition at line 92 of file CalibrationScanAnalysis.h.
Referenced by addOneCalibrationPoint(), amplitude(), CalibrationScanAlgorithm::analyse(), print(), and reset().
|
private |
Definition at line 99 of file CalibrationScanAnalysis.h.
Referenced by addOneCalibrationPoint(), CalibrationScanAlgorithm::analyse(), baseline(), print(), and reset().
|
private |
Definition at line 101 of file CalibrationScanAnalysis.h.
Referenced by addOneCalibrationPoint(), CalibrationScanAlgorithm::analyse(), chi2(), print(), and reset().
|
private |
Definition at line 95 of file CalibrationScanAnalysis.h.
Referenced by addOneCalibrationPoint(), CalibrationScanAlgorithm::analyse(), decayTime(), print(), and reset().
|
private |
Definition at line 110 of file CalibrationScanAnalysis.h.
Referenced by decayTimeVsISHAVsVFS(), and CalibrationScanAlgorithm::tuneSimultaneously().
|
private |
Best isha and vfs values --> one per APV --> interpolate linearly allows a better evaluation compared to the point scanned
Definition at line 107 of file CalibrationScanAnalysis.h.
Referenced by decayTimeVsVFS(), and CalibrationScanAlgorithm::tuneIndependently().
|
private |
Definition at line 104 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::analyse(), and deconvMode().
|
private |
Definition at line 112 of file CalibrationScanAnalysis.h.
Referenced by bestISHA(), CalibrationScanAnalysis(), reset(), CalibrationScanAlgorithm::tuneIndependently(), and CalibrationScanAlgorithm::tuneSimultaneously().
|
private |
Definition at line 102 of file CalibrationScanAnalysis.h.
Referenced by addOneCalibrationPoint(), CalibrationScanAlgorithm::analyse(), and isValid().
|
static |
Definition at line 76 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::analyse().
|
static |
Definition at line 77 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::analyse().
|
static |
Definition at line 79 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::analyse().
|
static |
Definition at line 87 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::tuneIndependently().
|
static |
Definition at line 81 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::analyse().
|
static |
Definition at line 83 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::analyse().
|
static |
Definition at line 85 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::analyse().
|
static |
Values for quality cuts
Definition at line 74 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::analyse().
|
static |
Definition at line 75 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::analyse().
|
static |
Definition at line 78 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::analyse().
|
static |
Definition at line 86 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::tuneIndependently().
|
static |
Definition at line 80 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::analyse().
|
static |
Definition at line 82 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::analyse().
|
static |
Definition at line 84 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::analyse().
|
private |
Definition at line 97 of file CalibrationScanAnalysis.h.
Referenced by addOneCalibrationPoint(), CalibrationScanAlgorithm::analyse(), peakTime(), print(), and reset().
|
private |
Definition at line 94 of file CalibrationScanAnalysis.h.
Referenced by addOneCalibrationPoint(), CalibrationScanAlgorithm::analyse(), print(), reset(), and riseTime().
|
private |
Definition at line 108 of file CalibrationScanAnalysis.h.
Referenced by riseTimeVsISHA(), and CalibrationScanAlgorithm::tuneIndependently().
|
private |
Definition at line 109 of file CalibrationScanAnalysis.h.
Referenced by riseTimeVsISHAVsVFS(), and CalibrationScanAlgorithm::tuneSimultaneously().
|
private |
Definition at line 100 of file CalibrationScanAnalysis.h.
Referenced by addOneCalibrationPoint(), CalibrationScanAlgorithm::analyse(), print(), reset(), and smearing().
|
private |
Definition at line 93 of file CalibrationScanAnalysis.h.
Referenced by addOneCalibrationPoint(), CalibrationScanAlgorithm::analyse(), reset(), and tail().
|
private |
properties of pulse shapes closes to the optimal ISHA and VFS values
Definition at line 116 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAnalysis(), CalibrationScanAlgorithm::fillTunedObservables(), reset(), and tunedAmplitude().
|
private |
Definition at line 119 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAnalysis(), CalibrationScanAlgorithm::fillTunedObservables(), reset(), and tunedBaseline().
|
private |
Definition at line 120 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAnalysis(), CalibrationScanAlgorithm::fillTunedObservables(), reset(), and tunedChi2().
|
private |
Definition at line 117 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAnalysis(), CalibrationScanAlgorithm::fillTunedObservables(), reset(), and tunedDecayTime().
|
private |
Definition at line 121 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAnalysis(), CalibrationScanAlgorithm::fillTunedObservables(), reset(), and tunedISHA().
|
private |
Definition at line 118 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAnalysis(), CalibrationScanAlgorithm::fillTunedObservables(), reset(), and tunedPeakTime().
|
private |
Definition at line 117 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAnalysis(), CalibrationScanAlgorithm::fillTunedObservables(), reset(), and tunedRiseTime().
|
private |
Definition at line 120 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAnalysis(), CalibrationScanAlgorithm::fillTunedObservables(), reset(), and tunedSmearing().
|
private |
Definition at line 116 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAnalysis(), CalibrationScanAlgorithm::fillTunedObservables(), reset(), and tunedTail().
|
private |
Definition at line 118 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAnalysis(), CalibrationScanAlgorithm::fillTunedObservables(), reset(), and tunedTurnOn().
|
private |
Definition at line 119 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAnalysis(), CalibrationScanAlgorithm::fillTunedObservables(), reset(), and tunedUndershoot().
|
private |
Definition at line 121 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAnalysis(), CalibrationScanAlgorithm::fillTunedObservables(), reset(), and tunedVFS().
|
private |
Definition at line 96 of file CalibrationScanAnalysis.h.
Referenced by addOneCalibrationPoint(), CalibrationScanAlgorithm::analyse(), print(), reset(), and turnOn().
|
private |
Definition at line 98 of file CalibrationScanAnalysis.h.
Referenced by addOneCalibrationPoint(), CalibrationScanAlgorithm::analyse(), print(), reset(), and undershoot().
|
private |
Definition at line 113 of file CalibrationScanAnalysis.h.
Referenced by bestVFS(), CalibrationScanAnalysis(), reset(), CalibrationScanAlgorithm::tuneIndependently(), and CalibrationScanAlgorithm::tuneSimultaneously().
|
static |
Definition at line 88 of file CalibrationScanAnalysis.h.
Referenced by CalibrationScanAlgorithm::tuneIndependently().