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 23 of file CalibrationScanAlgorithm.h.
|
inlineprivate |
Definition at line 32 of file CalibrationScanAlgorithm.h.
|
overrideprivatevirtual |
Performs histogram anaylsis.
loop over histograms for this fiber
make the fit
make the fit
Implements CommissioningAlgorithm.
Definition at line 82 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_, unpackBuffers-CaloStage2::token, turnOn(), CalibrationScanAnalysis::turnOn_, and CalibrationScanAnalysis::undershoot_.
|
private |
Definition at line 323 of file CalibrationScanAlgorithm.cc.
References f, npoints, x, and TrackerOfflineValidation_Dqm_cff::xmax.
Referenced by analyse().
|
private |
Definition at line 310 of file CalibrationScanAlgorithm.cc.
References histo().
Referenced by analyse().
|
private |
Definition at line 346 of file CalibrationScanAlgorithm.cc.
References JetChargeProducer_cfi::exp, f, SiStripPI::max, x, and makeMEIFBenchmarkPlots::xval.
Referenced by analyse().
|
overrideprivatevirtual |
Extracts and organises histograms.
extract isha, vfs and calchan values, as well as filling the histogram objects
Implements CommissioningAlgorithm.
Definition at line 32 of file CalibrationScanAlgorithm.cc.
References CommissioningAnalysis::addErrorCode(), CommissioningAlgorithm::anal(), cal_, sistrip::CALIBRATION_SCAN, sistrip::CALIBRATION_SCAN_DECO, CommissioningAlgorithm::extractFedKey(), CommissioningAnalysis::fedKey(), histo_, combine::histos, sistrip::mlCommissioning_, runGCPTkAlMap::title, createJobs::tmp, and sistrip::unexpectedTask_.
void CalibrationScanAlgorithm::fillTunedObservables | ( | const int & | apvid | ) |
Definition at line 565 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().
|
inline |
Definition at line 25 of file CalibrationScanAlgorithm.h.
References histo_, mps_fire::i, and submitPVResolutionJobs::key.
Referenced by correctDistribution().
void CalibrationScanAlgorithm::tuneIndependently | ( | const int & | iapv, |
const float & | targetRiseTime, | ||
const float & | targetDecayTime | ||
) |
Definition at line 361 of file CalibrationScanAlgorithm.cc.
References cal_, CalibrationScanAnalysis::decayTime(), CalibrationScanAnalysis::decayTime_vs_vfs_, histo_, plotBeamSpotDB::ipoint, CalibrationScanAnalysis::isha_, CalibrationScanAnalysis::isValid(), CalibrationScanAnalysis::maxISHAforVFSTune_, CalibrationScanAnalysis::minISHAforVFSTune_, Skims_PA_cff::name, or, CalibrationScanAnalysis::riseTime(), CalibrationScanAnalysis::riseTime_vs_isha_, scanned_isha_, scanned_vfs_, jetUpdater_cfi::sort, OfflineDbClient_cff::targetDecayTime, OfflineDbClient_cff::targetRiseTime, CalibrationScanAnalysis::vfs_, and CalibrationScanAnalysis::VFSrange_.
void CalibrationScanAlgorithm::tuneSimultaneously | ( | const int & | iapv, |
const float & | targetRiseTime, | ||
const float & | targetDecayTime | ||
) |
Definition at line 471 of file CalibrationScanAlgorithm.cc.
References cal_, CalibrationScanAnalysis::decayTime(), CalibrationScanAnalysis::decayTime_vs_isha_vfs_, histo_, CalibrationScanAnalysis::isha_, CalibrationScanAnalysis::isValid(), phase1PixelTopology::minz, funct::pow(), CalibrationScanAnalysis::riseTime(), CalibrationScanAnalysis::riseTime_vs_isha_vfs_, scanned_isha_, scanned_vfs_, mathSSE::sqrt(), OfflineDbClient_cff::targetDecayTime, OfflineDbClient_cff::targetRiseTime, and CalibrationScanAnalysis::vfs_.
|
private |
Definition at line 336 of file CalibrationScanAlgorithm.cc.
References f, and hcalRecHitTable_cff::time.
Referenced by analyse().
|
private |
analysis object
Definition at line 47 of file CalibrationScanAlgorithm.h.
Referenced by analyse(), extract(), fillTunedObservables(), tuneIndependently(), and tuneSimultaneously().
|
private |
pulse shape
Definition at line 44 of file CalibrationScanAlgorithm.h.
Referenced by analyse(), extract(), histo(), tuneIndependently(), and tuneSimultaneously().
|
private |
values of the scanned isha and vfs
Definition at line 50 of file CalibrationScanAlgorithm.h.
Referenced by analyse(), fillTunedObservables(), tuneIndependently(), and tuneSimultaneously().
|
private |
Definition at line 51 of file CalibrationScanAlgorithm.h.
Referenced by analyse(), fillTunedObservables(), tuneIndependently(), and tuneSimultaneously().