Algorithm for calibration runs. More...
#include <CalibrationScanAlgorithm.h>
Public Member Functions | |
CalibrationScanAlgorithm (const edm::ParameterSet &pset, CalibrationScanAnalysis *const) | |
void | fillTunedObservables (const int &) |
const Histo & | histo (std::string &key, int &i) |
void | tuneIndependently (const int &, const float &, const float &) |
void | tuneSimultaneously (const int &, const float &, const float &) |
~CalibrationScanAlgorithm () override | |
Public Member Functions inherited from CommissioningAlgorithm | |
void | analysis (const std::vector< TH1 * > &) |
CommissioningAlgorithm (CommissioningAnalysis *const ) | |
CommissioningAlgorithm () | |
virtual | ~CommissioningAlgorithm () |
Private Member Functions | |
void | analyse () override |
float | baseLine (TF1 *) |
CalibrationScanAlgorithm () | |
void | correctDistribution (TH1 *, const bool &) const |
float | decayTime (TF1 *) |
void | extract (const std::vector< TH1 * > &) override |
float | turnOn (TF1 *, const float &) |
Private Attributes | |
CalibrationScanAnalysis * | cal_ |
std::map< std::string, std::vector< Histo > > | histo_ |
std::vector< int > | scanned_isha_ |
std::vector< int > | scanned_vfs_ |
Additional Inherited Members | |
Public Types inherited from CommissioningAlgorithm | |
typedef std::pair< TH1 *, std::string > | Histo |
Protected Member Functions inherited from CommissioningAlgorithm | |
CommissioningAnalysis *const | anal () const |
uint32_t | extractFedKey (const TH1 *const ) |
Algorithm for calibration runs.
Definition at line 20 of file CalibrationScanAlgorithm.h.
CalibrationScanAlgorithm::CalibrationScanAlgorithm | ( | const edm::ParameterSet & | pset, |
CalibrationScanAnalysis * const | anal | ||
) |
Definition at line 27 of file CalibrationScanAlgorithm.cc.
|
inlineoverride |
Definition at line 25 of file CalibrationScanAlgorithm.h.
|
inlineprivate |
Definition at line 35 of file CalibrationScanAlgorithm.h.
References analyse(), baseLine(), correctDistribution(), decayTime(), extract(), and turnOn().
|
overrideprivatevirtual |
Performs histogram anaylsis.
loop over histograms for this fiber
make the fit
make the fit
Implements CommissioningAlgorithm.
Definition at line 87 of file CalibrationScanAlgorithm.cc.
References CalibrationScanAnalysis::addOneCalibrationPoint(), CalibrationScanAnalysis::amplitude_, baseLine(), CalibrationScanAnalysis::baseline_, cal_, CalibrationScanAnalysis::chi2_, correctDistribution(), decayTime(), CalibrationScanAnalysis::decayTime_, CalibrationScanAnalysis::deconv_, relativeConstraints::error, fdecay(), fdeconv(), fturnOn(), histo_, mps_fire::i, CalibrationScanAnalysis::isvalid_, CalibrationScanAnalysis::maxBaselineThreshold_, CalibrationScanAnalysis::maxChi2Threshold_, CalibrationScanAnalysis::maxDecayTimeThreshold_, CalibrationScanAnalysis::maxPeakTimeThreshold_, CalibrationScanAnalysis::maxRiseTimeThreshold_, CalibrationScanAnalysis::maxTurnOnThreshold_, CalibrationScanAnalysis::minAmplitudeThreshold_, CalibrationScanAnalysis::minBaselineThreshold_, CalibrationScanAnalysis::minDecayTimeThreshold_, CalibrationScanAnalysis::minPeakTimeThreshold_, CalibrationScanAnalysis::minRiseTimeThreshold_, CalibrationScanAnalysis::minTurnOnThreshold_, sistrip::mlCommissioning_, CalibrationScanAnalysis::peakTime_, CalibrationScanAnalysis::riseTime_, scanned_isha_, scanned_vfs_, CalibrationScanAnalysis::smearing_, AlCaHLTBitMon_QueryRunRegistry::string, CalibrationScanAnalysis::tail_, turnOn(), CalibrationScanAnalysis::turnOn_, and CalibrationScanAnalysis::undershoot_.
Referenced by CalibrationScanAlgorithm().
|
private |
Definition at line 308 of file CalibrationScanAlgorithm.cc.
References npoints, x, and TrackerOfflineValidation_Dqm_cff::xmax.
Referenced by analyse(), and CalibrationScanAlgorithm().
|
private |
Definition at line 294 of file CalibrationScanAlgorithm.cc.
Referenced by analyse(), and CalibrationScanAlgorithm().
|
private |
Definition at line 329 of file CalibrationScanAlgorithm.cc.
References JetChargeProducer_cfi::exp, SiStripPI::max, and x.
Referenced by analyse(), and CalibrationScanAlgorithm().
|
overrideprivatevirtual |
Extracts and organises histograms.
extract isha, vfs and calchan values, as well as filling the histogram objects
Implements CommissioningAlgorithm.
Definition at line 34 of file CalibrationScanAlgorithm.cc.
References CommissioningAnalysis::addErrorCode(), CommissioningAlgorithm::anal(), cal_, sistrip::CALIBRATION_SCAN, sistrip::CALIBRATION_SCAN_DECO, CommissioningAlgorithm::extractFedKey(), CommissioningAnalysis::fedKey(), histo_, sistrip::mlCommissioning_, runGCPTkAlMap::title, tmp, and sistrip::unexpectedTask_.
Referenced by CalibrationScanAlgorithm().
void CalibrationScanAlgorithm::fillTunedObservables | ( | const int & | apvid | ) |
Definition at line 516 of file CalibrationScanAlgorithm.cc.
References CalibrationScanAnalysis::amplitude(), CalibrationScanAnalysis::baseline(), CalibrationScanAnalysis::bestISHA(), CalibrationScanAnalysis::bestVFS(), cal_, CalibrationScanAnalysis::chi2(), CalibrationScanAnalysis::decayTime(), mps_fire::i, CalibrationScanAnalysis::peakTime(), CalibrationScanAnalysis::riseTime(), scanned_isha_, scanned_vfs_, CalibrationScanAnalysis::smearing(), AlCaHLTBitMon_QueryRunRegistry::string, CalibrationScanAnalysis::tail(), CalibrationScanAnalysis::tunedAmplitude_, CalibrationScanAnalysis::tunedBaseline_, CalibrationScanAnalysis::tunedChi2_, CalibrationScanAnalysis::tunedDecayTime_, CalibrationScanAnalysis::tunedISHA(), CalibrationScanAnalysis::tunedISHA_, CalibrationScanAnalysis::tunedPeakTime_, CalibrationScanAnalysis::tunedRiseTime_, CalibrationScanAnalysis::tunedSmearing_, CalibrationScanAnalysis::tunedTail_, CalibrationScanAnalysis::tunedTurnOn_, CalibrationScanAnalysis::tunedUndershoot_, CalibrationScanAnalysis::tunedVFS(), CalibrationScanAnalysis::tunedVFS_, CalibrationScanAnalysis::turnOn(), and CalibrationScanAnalysis::undershoot().
Referenced by histo(), and CalibrationHistograms::histoAnalysis().
|
inline |
Definition at line 27 of file CalibrationScanAlgorithm.h.
References fillTunedObservables(), histo_, mps_fire::i, crabWrapper::key, tuneIndependently(), and tuneSimultaneously().
void CalibrationScanAlgorithm::tuneIndependently | ( | const int & | iapv, |
const float & | targetRiseTime, | ||
const float & | targetDecayTime | ||
) |
Definition at line 341 of file CalibrationScanAlgorithm.cc.
References cal_, CalibrationScanAnalysis::decayTime(), CalibrationScanAnalysis::decayTime_vs_vfs_, histo_, plotBeamSpotDB::ipoint, CalibrationScanAnalysis::isha_, CalibrationScanAnalysis::isValid(), CalibrationScanAnalysis::maxISHAforVFSTune_, CalibrationScanAnalysis::minISHAforVFSTune_, dataset::name, or, CalibrationScanAnalysis::riseTime(), CalibrationScanAnalysis::riseTime_vs_isha_, scanned_isha_, scanned_vfs_, CalibrationScanAnalysis::vfs_, and CalibrationScanAnalysis::VFSrange_.
Referenced by histo(), and CalibrationHistograms::histoAnalysis().
void CalibrationScanAlgorithm::tuneSimultaneously | ( | const int & | iapv, |
const float & | targetRiseTime, | ||
const float & | targetDecayTime | ||
) |
Definition at line 440 of file CalibrationScanAlgorithm.cc.
References cal_, CalibrationScanAnalysis::decayTime(), CalibrationScanAnalysis::decayTime_vs_isha_vfs_, histo_, CalibrationScanAnalysis::isha_, CalibrationScanAnalysis::isValid(), funct::pow(), CalibrationScanAnalysis::riseTime(), CalibrationScanAnalysis::riseTime_vs_isha_vfs_, scanned_isha_, scanned_vfs_, mathSSE::sqrt(), and CalibrationScanAnalysis::vfs_.
Referenced by histo(), and CalibrationHistograms::histoAnalysis().
|
private |
Definition at line 321 of file CalibrationScanAlgorithm.cc.
References ntuplemaker::time.
Referenced by analyse(), and CalibrationScanAlgorithm().
|
private |
analysis object
Definition at line 50 of file CalibrationScanAlgorithm.h.
Referenced by analyse(), extract(), fillTunedObservables(), tuneIndependently(), and tuneSimultaneously().
|
private |
pulse shape
Definition at line 47 of file CalibrationScanAlgorithm.h.
Referenced by analyse(), extract(), histo(), tuneIndependently(), and tuneSimultaneously().
|
private |
values of the scanned isha and vfs
Definition at line 53 of file CalibrationScanAlgorithm.h.
Referenced by analyse(), fillTunedObservables(), tuneIndependently(), and tuneSimultaneously().
|
private |
Definition at line 54 of file CalibrationScanAlgorithm.h.
Referenced by analyse(), fillTunedObservables(), tuneIndependently(), and tuneSimultaneously().