CMS 3D CMS Logo

CalibrationScanAnalysis.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiStripObjects_CalibrationScanAnalysis_H
2 #define CondFormats_SiStripObjects_CalibrationScanAnalysis_H
3 
6 #include <sstream>
7 #include <vector>
8 #include <map>
9 #include "TGraph.h"
10 #include "TGraph2D.h"
11 #include <cstdint>
12 
20 public:
21  CalibrationScanAnalysis(const uint32_t& key, const bool& deconv);
22  CalibrationScanAnalysis(const bool& deconv);
23 
24  ~CalibrationScanAnalysis() override { ; }
25 
27 
29 
30  inline const VBool isValid(const std::string& key) { return isvalid_[key]; } // analysis validity
31  bool isValid() const override;
32 
33  inline const VFloat& amplitude(const std::string& key) {
34  return amplitude_[key];
35  } // key stands for isha_%d_vfs_%d values
36  inline const VFloat& tail(const std::string& key) { return tail_[key]; }
37  inline const VFloat& riseTime(const std::string& key) { return riseTime_[key]; }
38  inline const VFloat& decayTime(const std::string& key) { return decayTime_[key]; }
39  inline const VFloat& turnOn(const std::string& key) { return turnOn_[key]; }
40  inline const VFloat& peakTime(const std::string& key) { return peakTime_[key]; }
41  inline const VFloat& undershoot(const std::string& key) { return undershoot_[key]; }
42  inline const VFloat& baseline(const std::string& key) { return baseline_[key]; }
43  inline const VFloat& smearing(const std::string& key) { return smearing_[key]; }
44  inline const VFloat& chi2(const std::string& key) { return chi2_[key]; }
45 
46  inline const VFloat& tunedAmplitude() { return tunedAmplitude_; }
47  inline const VFloat& tunedTail() { return tunedTail_; }
48  inline const VFloat& tunedRiseTime() { return tunedRiseTime_; }
49  inline const VFloat& tunedDecayTime() { return tunedDecayTime_; }
50  inline const VFloat& tunedTurnOn() { return tunedTurnOn_; }
51  inline const VFloat& tunedPeakTime() { return tunedPeakTime_; }
52  inline const VFloat& tunedUndershoot() { return tunedUndershoot_; }
53  inline const VFloat& tunedBaseline() { return tunedBaseline_; }
54  inline const VFloat& tunedSmearing() { return tunedSmearing_; }
55  inline const VFloat& tunedChi2() { return tunedChi2_; }
56 
57  inline const VInt& tunedISHA() { return tunedISHA_; }
58  inline const VInt& tunedVFS() { return tunedVFS_; }
59 
60  inline const std::vector<TGraph*>& decayTimeVsVFS() { return decayTime_vs_vfs_; }
61  inline const std::vector<TGraph*>& riseTimeVsISHA() { return riseTime_vs_isha_; }
62  inline const std::vector<TGraph2D*>& decayTimeVsISHAVsVFS() { return decayTime_vs_isha_vfs_; }
63  inline const std::vector<TGraph2D*>& riseTimeVsISHAVsVFS() { return riseTime_vs_isha_vfs_; }
64 
65  inline const VInt& bestISHA() { return isha_; }
66  inline const VInt& bestVFS() { return vfs_; }
67 
68  inline bool deconvMode() { return deconv_; }
69 
70  void print(std::stringstream&, uint32_t not_used = 0) override;
71  void reset() override;
72 
74  static const float minAmplitudeThreshold_;
75  static const float minBaselineThreshold_;
76  static const float maxBaselineThreshold_;
77  static const float maxChi2Threshold_;
78  static const float minDecayTimeThreshold_;
79  static const float maxDecayTimeThreshold_;
80  static const float minPeakTimeThreshold_;
81  static const float maxPeakTimeThreshold_;
82  static const float minRiseTimeThreshold_;
83  static const float maxRiseTimeThreshold_;
84  static const float minTurnOnThreshold_;
85  static const float maxTurnOnThreshold_;
86  static const float minISHAforVFSTune_;
87  static const float maxISHAforVFSTune_;
88  static const float VFSrange_;
89 
90 private:
92  std::map<std::string, VFloat> amplitude_;
93  std::map<std::string, VFloat> tail_;
94  std::map<std::string, VFloat> riseTime_;
95  std::map<std::string, VFloat> decayTime_;
96  std::map<std::string, VFloat> turnOn_;
97  std::map<std::string, VFloat> peakTime_;
98  std::map<std::string, VFloat> undershoot_;
99  std::map<std::string, VFloat> baseline_;
100  std::map<std::string, VFloat> smearing_;
101  std::map<std::string, VFloat> chi2_;
102  std::map<std::string, VBool> isvalid_;
103 
104  bool deconv_;
105 
107  std::vector<TGraph*> decayTime_vs_vfs_;
108  std::vector<TGraph*> riseTime_vs_isha_;
109  std::vector<TGraph2D*> riseTime_vs_isha_vfs_;
110  std::vector<TGraph2D*> decayTime_vs_isha_vfs_;
111 
114 
122 };
123 
124 #endif // CondFormats_SiStripObjects_CalibrationScanAnalysis_H
CalibrationScanAnalysis::tunedSmearing_
VFloat tunedSmearing_
Definition: CalibrationScanAnalysis.h:120
CalibrationScanAnalysis::tunedISHA_
VInt tunedISHA_
Definition: CalibrationScanAnalysis.h:121
CalibrationScanAnalysis::tunedPeakTime_
VFloat tunedPeakTime_
Definition: CalibrationScanAnalysis.h:118
CalibrationScanAnalysis::tunedDecayTime
const VFloat & tunedDecayTime()
Definition: CalibrationScanAnalysis.h:49
CalibrationScanAnalysis::chi2_
std::map< std::string, VFloat > chi2_
Definition: CalibrationScanAnalysis.h:101
CalibrationScanAnalysis::bestISHA
const VInt & bestISHA()
Definition: CalibrationScanAnalysis.h:65
CalibrationScanAnalysis::riseTime
const VFloat & riseTime(const std::string &key)
Definition: CalibrationScanAnalysis.h:37
CalibrationScanAnalysis::riseTimeVsISHAVsVFS
const std::vector< TGraph2D * > & riseTimeVsISHAVsVFS()
Definition: CalibrationScanAnalysis.h:63
CommissioningAnalysis.h
CalibrationScanAnalysis::deconv_
bool deconv_
Definition: CalibrationScanAnalysis.h:104
CalibrationScanAnalysis::tunedChi2
const VFloat & tunedChi2()
Definition: CalibrationScanAnalysis.h:55
CalibrationScanAnalysis::minRiseTimeThreshold_
static const float minRiseTimeThreshold_
Definition: CalibrationScanAnalysis.h:82
CalibrationScanAnalysis::tunedTurnOn_
VFloat tunedTurnOn_
Definition: CalibrationScanAnalysis.h:118
CalibrationScanAnalysis::tunedAmplitude_
VFloat tunedAmplitude_
Definition: CalibrationScanAnalysis.h:116
CalibrationScanAnalysis::tunedTail_
VFloat tunedTail_
Definition: CalibrationScanAnalysis.h:116
CalibrationScanAnalysis
Analysis for calibration scans.
Definition: CalibrationScanAnalysis.h:19
CalibrationScanAnalysis::maxChi2Threshold_
static const float maxChi2Threshold_
Definition: CalibrationScanAnalysis.h:77
CalibrationScanAnalysis::tunedUndershoot
const VFloat & tunedUndershoot()
Definition: CalibrationScanAnalysis.h:52
CalibrationScanAnalysis::tunedTail
const VFloat & tunedTail()
Definition: CalibrationScanAnalysis.h:47
CalibrationScanAnalysis::maxISHAforVFSTune_
static const float maxISHAforVFSTune_
Definition: CalibrationScanAnalysis.h:87
CalibrationScanAnalysis::riseTimeVsISHA
const std::vector< TGraph * > & riseTimeVsISHA()
Definition: CalibrationScanAnalysis.h:61
CalibrationScanAnalysis::tunedBaseline
const VFloat & tunedBaseline()
Definition: CalibrationScanAnalysis.h:53
CommissioningAnalysis::VFloat
std::vector< float > VFloat
Definition: CommissioningAnalysis.h:30
CalibrationScanAnalysis::baseline
const VFloat & baseline(const std::string &key)
Definition: CalibrationScanAnalysis.h:42
CalibrationScanAnalysis::minAmplitudeThreshold_
static const float minAmplitudeThreshold_
Definition: CalibrationScanAnalysis.h:74
CalibrationScanAnalysis::riseTime_
std::map< std::string, VFloat > riseTime_
Definition: CalibrationScanAnalysis.h:94
CalibrationScanAnalysis::turnOn_
std::map< std::string, VFloat > turnOn_
Definition: CalibrationScanAnalysis.h:96
CalibrationScanAnalysis::tunedRiseTime
const VFloat & tunedRiseTime()
Definition: CalibrationScanAnalysis.h:48
CalibrationScanAnalysis::isValid
bool isValid() const override
Definition: CalibrationScanAnalysis.cc:143
CalibrationScanAnalysis::tail
const VFloat & tail(const std::string &key)
Definition: CalibrationScanAnalysis.h:36
CalibrationScanAnalysis::riseTime_vs_isha_
std::vector< TGraph * > riseTime_vs_isha_
Definition: CalibrationScanAnalysis.h:108
CalibrationScanAlgorithm
Algorithm for calibration runs.
Definition: CalibrationScanAlgorithm.h:20
CalibrationScanAnalysis::reset
void reset() override
Definition: CalibrationScanAnalysis.cc:85
CalibrationScanAnalysis::tunedDecayTime_
VFloat tunedDecayTime_
Definition: CalibrationScanAnalysis.h:117
CalibrationScanAnalysis::bestVFS
const VInt & bestVFS()
Definition: CalibrationScanAnalysis.h:66
CalibrationScanAnalysis::tunedVFS_
VInt tunedVFS_
Definition: CalibrationScanAnalysis.h:121
CalibrationScanAnalysis::~CalibrationScanAnalysis
~CalibrationScanAnalysis() override
Definition: CalibrationScanAnalysis.h:24
CalibrationScanAnalysis::amplitude
const VFloat & amplitude(const std::string &key)
Definition: CalibrationScanAnalysis.h:33
CalibrationScanAnalysis::tail_
std::map< std::string, VFloat > tail_
Definition: CalibrationScanAnalysis.h:93
CalibrationScanAnalysis::minISHAforVFSTune_
static const float minISHAforVFSTune_
Definition: CalibrationScanAnalysis.h:86
CalibrationScanAnalysis::chi2
const VFloat & chi2(const std::string &key)
Definition: CalibrationScanAnalysis.h:44
CalibrationScanAnalysis::tunedPeakTime
const VFloat & tunedPeakTime()
Definition: CalibrationScanAnalysis.h:51
CalibrationScanAnalysis::smearing_
std::map< std::string, VFloat > smearing_
Definition: CalibrationScanAnalysis.h:100
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CalibrationScanAnalysis::isvalid_
std::map< std::string, VBool > isvalid_
Definition: CalibrationScanAnalysis.h:102
CalibrationScanAnalysis::tunedVFS
const VInt & tunedVFS()
Definition: CalibrationScanAnalysis.h:58
SiStripConstants.h
CalibrationScanAnalysis::riseTime_vs_isha_vfs_
std::vector< TGraph2D * > riseTime_vs_isha_vfs_
Definition: CalibrationScanAnalysis.h:109
CalibrationScanAnalysis::minDecayTimeThreshold_
static const float minDecayTimeThreshold_
Definition: CalibrationScanAnalysis.h:78
CalibrationScanAnalysis::minPeakTimeThreshold_
static const float minPeakTimeThreshold_
Definition: CalibrationScanAnalysis.h:80
CalibrationScanAnalysis::isha_
VInt isha_
Definition: CalibrationScanAnalysis.h:112
CalibrationScanAnalysis::amplitude_
std::map< std::string, VFloat > amplitude_
Definition: CalibrationScanAnalysis.h:92
CalibrationScanAnalysis::tunedUndershoot_
VFloat tunedUndershoot_
Definition: CalibrationScanAnalysis.h:119
CalibrationScanAnalysis::maxTurnOnThreshold_
static const float maxTurnOnThreshold_
Definition: CalibrationScanAnalysis.h:85
CalibrationScanAnalysis::maxPeakTimeThreshold_
static const float maxPeakTimeThreshold_
Definition: CalibrationScanAnalysis.h:81
CalibrationScanAnalysis::undershoot_
std::map< std::string, VFloat > undershoot_
Definition: CalibrationScanAnalysis.h:98
CalibrationScanAnalysis::print
void print(std::stringstream &, uint32_t not_used=0) override
Definition: CalibrationScanAnalysis.cc:117
CalibrationScanAnalysis::tunedChi2_
VFloat tunedChi2_
Definition: CalibrationScanAnalysis.h:120
CalibrationScanAnalysis::CalibrationScanAnalysis
CalibrationScanAnalysis(const uint32_t &key, const bool &deconv)
Definition: CalibrationScanAnalysis.cc:28
CalibrationScanAnalysis::isValid
const VBool isValid(const std::string &key)
Definition: CalibrationScanAnalysis.h:30
CalibrationScanAnalysis::decayTime_vs_isha_vfs_
std::vector< TGraph2D * > decayTime_vs_isha_vfs_
Definition: CalibrationScanAnalysis.h:110
CalibrationScanAnalysis::minTurnOnThreshold_
static const float minTurnOnThreshold_
Definition: CalibrationScanAnalysis.h:84
CalibrationScanAnalysis::decayTime
const VFloat & decayTime(const std::string &key)
Definition: CalibrationScanAnalysis.h:38
CalibrationScanAnalysis::tunedBaseline_
VFloat tunedBaseline_
Definition: CalibrationScanAnalysis.h:119
CommissioningAnalysis::VInt
std::vector< uint16_t > VInt
Definition: CommissioningAnalysis.h:34
CommissioningAnalysis
Abstract base for derived classes that provide analysis of commissioning histograms.
Definition: CommissioningAnalysis.h:18
CalibrationScanAnalysis::peakTime_
std::map< std::string, VFloat > peakTime_
Definition: CalibrationScanAnalysis.h:97
CalibrationScanAnalysis::maxRiseTimeThreshold_
static const float maxRiseTimeThreshold_
Definition: CalibrationScanAnalysis.h:83
CalibrationScanAnalysis::maxBaselineThreshold_
static const float maxBaselineThreshold_
Definition: CalibrationScanAnalysis.h:76
CalibrationScanAnalysis::decayTimeVsISHAVsVFS
const std::vector< TGraph2D * > & decayTimeVsISHAVsVFS()
Definition: CalibrationScanAnalysis.h:62
CalibrationScanAnalysis::maxDecayTimeThreshold_
static const float maxDecayTimeThreshold_
Definition: CalibrationScanAnalysis.h:79
CalibrationScanAnalysis::VFSrange_
static const float VFSrange_
Definition: CalibrationScanAnalysis.h:88
CalibrationScanAnalysis::tunedRiseTime_
VFloat tunedRiseTime_
Definition: CalibrationScanAnalysis.h:117
CalibrationScanAnalysis::tunedAmplitude
const VFloat & tunedAmplitude()
Definition: CalibrationScanAnalysis.h:46
CalibrationScanAnalysis::deconvMode
bool deconvMode()
Definition: CalibrationScanAnalysis.h:68
CalibrationScanAnalysis::peakTime
const VFloat & peakTime(const std::string &key)
Definition: CalibrationScanAnalysis.h:40
CalibrationScanAnalysis::undershoot
const VFloat & undershoot(const std::string &key)
Definition: CalibrationScanAnalysis.h:41
CalibrationScanAnalysis::turnOn
const VFloat & turnOn(const std::string &key)
Definition: CalibrationScanAnalysis.h:39
CalibrationScanAnalysis::vfs_
VInt vfs_
Definition: CalibrationScanAnalysis.h:113
CalibrationScanAnalysis::decayTime_vs_vfs_
std::vector< TGraph * > decayTime_vs_vfs_
Definition: CalibrationScanAnalysis.h:107
CalibrationScanAnalysis::smearing
const VFloat & smearing(const std::string &key)
Definition: CalibrationScanAnalysis.h:43
CalibrationScanAnalysis::decayTimeVsVFS
const std::vector< TGraph * > & decayTimeVsVFS()
Definition: CalibrationScanAnalysis.h:60
crabWrapper.key
key
Definition: crabWrapper.py:19
CalibrationScanAnalysis::tunedSmearing
const VFloat & tunedSmearing()
Definition: CalibrationScanAnalysis.h:54
CommissioningAnalysis::VBool
std::vector< bool > VBool
Definition: CommissioningAnalysis.h:38
CalibrationScanAnalysis::minBaselineThreshold_
static const float minBaselineThreshold_
Definition: CalibrationScanAnalysis.h:75
CalibrationScanAnalysis::tunedTurnOn
const VFloat & tunedTurnOn()
Definition: CalibrationScanAnalysis.h:50
CalibrationScanAnalysis::decayTime_
std::map< std::string, VFloat > decayTime_
Definition: CalibrationScanAnalysis.h:95
CalibrationScanAnalysis::baseline_
std::map< std::string, VFloat > baseline_
Definition: CalibrationScanAnalysis.h:99
CalibrationScanAnalysis::addOneCalibrationPoint
void addOneCalibrationPoint(const std::string &key)
Definition: CalibrationScanAnalysis.cc:68
CalibrationScanAnalysis::tunedISHA
const VInt & tunedISHA()
Definition: CalibrationScanAnalysis.h:57