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 npoints, x, and hlt_dqm_clientPB-live_cfg::xmax.
Referenced by analyse().
|
private |
Definition at line 310 of file CalibrationScanAlgorithm.cc.
Referenced by analyse().
|
private |
Definition at line 346 of file CalibrationScanAlgorithm.cc.
References funct::exp(), SiStripPI::max, and x.
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_, sistrip::mlCommissioning_, runGCPTkAlMap::title, createJobs::tmp, and sistrip::unexpectedTask_.
Referenced by BeautifulSoup.PageElement::_invert(), and BeautifulSoup.Tag::decompose().
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().
Referenced by CalibrationHistograms::histoAnalysis().
|
inline |
Definition at line 25 of file CalibrationScanAlgorithm.h.
References histo_, mps_fire::i, and submitPVResolutionJobs::key.
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_, mergeVDriftHistosByStation::name, or, CalibrationScanAnalysis::riseTime(), CalibrationScanAnalysis::riseTime_vs_isha_, scanned_isha_, scanned_vfs_, CalibrationScanAnalysis::vfs_, and CalibrationScanAnalysis::VFSrange_.
Referenced by CalibrationHistograms::histoAnalysis().
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(), gpuPixelDoublets::minz, funct::pow(), CalibrationScanAnalysis::riseTime(), CalibrationScanAnalysis::riseTime_vs_isha_vfs_, scanned_isha_, scanned_vfs_, mathSSE::sqrt(), and CalibrationScanAnalysis::vfs_.
Referenced by CalibrationHistograms::histoAnalysis().
|
private |
Definition at line 336 of file CalibrationScanAlgorithm.cc.
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().