CMS 3D CMS Logo

CalibrationAnalysis.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiStripObjects_CalibrationAnalysis_H
2 #define CondFormats_SiStripObjects_CalibrationAnalysis_H
3 
6 #include <sstream>
7 #include <vector>
8 #include <cstdint>
9 
17 public:
18  CalibrationAnalysis(const uint32_t& key, const bool& deconv);
19  CalibrationAnalysis(const bool& deconv);
20 
21  ~CalibrationAnalysis() override { ; }
22 
23  friend class CalibrationAlgorithm;
24 
25  // values per strip and per APV
26  inline const VVFloat& amplitude() { return amplitude_; }
27  inline const VVFloat& tail() { return tail_; }
28  inline const VVFloat& riseTime() { return riseTime_; }
29  inline const VVFloat& decayTime() { return decayTime_; }
30  inline const VVFloat& turnOn() { return turnOn_; }
31  inline const VVFloat& peakTime() { return peakTime_; }
32  inline const VVFloat& undershoot() { return undershoot_; }
33  inline const VVFloat& baseline() { return baseline_; }
34  inline const VVFloat& smearing() { return smearing_; }
35  inline const VVFloat& chi2() { return chi2_; }
36 
37  inline const VVBool isValidStrip() { return isvalid_; } // analysis validity
38  bool isValid() const override;
39 
40  // mean values per APV
41  inline const VFloat& amplitudeMean() { return mean_amplitude_; }
42  inline const VFloat& tailMean() { return mean_tail_; }
43  inline const VFloat& riseTimeMean() { return mean_riseTime_; }
44  inline const VFloat& decayTimeMean() { return mean_decayTime_; }
45  inline const VFloat& smearingMean() { return mean_smearing_; }
46  inline const VFloat& turnOnMean() { return mean_turnOn_; }
47  inline const VFloat& peakTimeMean() { return mean_peakTime_; }
48  inline const VFloat& undershootMean() { return mean_undershoot_; }
49  inline const VFloat& baselineMean() { return mean_baseline_; }
50  inline const VFloat& chi2Mean() { return mean_chi2_; }
51 
52  // spread, min and max
53  inline const VFloat& amplitudeSpread() { return spread_amplitude_; }
54  inline const VFloat& amplitudeMin() { return min_amplitude_; }
55  inline const VFloat& amplitudeMax() { return max_amplitude_; }
56 
57  inline const VFloat& tailSpread() { return spread_tail_; }
58  inline const VFloat& tailMin() { return min_tail_; }
59  inline const VFloat& tailMax() { return max_tail_; }
60 
61  inline const VFloat& riseTimeSpread() { return spread_riseTime_; }
62  inline const VFloat& riseTimeMin() { return min_riseTime_; }
63  inline const VFloat& riseTimeMax() { return max_riseTime_; }
64 
65  inline const VFloat& decayTimeSpread() { return spread_decayTime_; }
66  inline const VFloat& decayTimeMin() { return min_decayTime_; }
67  inline const VFloat& decayTimeMax() { return max_decayTime_; }
68 
69  inline const VFloat& smearingSpread() { return spread_smearing_; }
70  inline const VFloat& smearingMin() { return min_smearing_; }
71  inline const VFloat& smearingMax() { return max_smearing_; }
72 
73  inline const VFloat& turnOnSpread() { return spread_turnOn_; }
74  inline const VFloat& turnOnMin() { return min_turnOn_; }
75  inline const VFloat& turnOnMax() { return max_turnOn_; }
76 
77  inline const VFloat& peakTimeSpread() { return spread_peakTime_; }
78  inline const VFloat& peakTimeMin() { return min_peakTime_; }
79  inline const VFloat& peakTimeMax() { return max_peakTime_; }
80 
81  inline const VFloat& undershootSpread() { return spread_undershoot_; }
82  inline const VFloat& undershootMin() { return min_undershoot_; }
83  inline const VFloat& undershootMax() { return max_undershoot_; }
84 
85  inline const VFloat& baselineSpread() { return spread_baseline_; }
86  inline const VFloat& baselineMin() { return min_baseline_; }
87  inline const VFloat& baselineMax() { return max_baseline_; }
88 
89  inline const VFloat& chi2Spread() { return spread_chi2_; }
90  inline const VFloat& chi2Min() { return min_chi2_; }
91  inline const VFloat& chi2Max() { return max_chi2_; }
92 
93  inline int calChan() { return calChan_; }
94  inline bool deconvMode() { return deconv_; }
95 
96  void print(std::stringstream&, uint32_t not_used = 0) override;
97  void reset() override;
98 
99 private:
101  static const float minAmplitudeThreshold_;
102  static const float minBaselineThreshold_;
103  static const float maxBaselineThreshold_;
104  static const float maxChi2Threshold_;
105 
106  static const float minDecayTimeThreshold_;
107  static const float maxDecayTimeThreshold_;
108  static const float minPeakTimeThreshold_;
109  static const float maxPeakTimeThreshold_;
110  static const float minRiseTimeThreshold_;
111  static const float maxRiseTimeThreshold_;
112  static const float minTurnOnThreshold_;
113  static const float maxTurnOnThreshold_;
114 
115  static const float minDecayTimeThresholdDeco_;
116  static const float maxDecayTimeThresholdDeco_;
117  static const float minPeakTimeThresholdDeco_;
118  static const float maxPeakTimeThresholdDeco_;
119  static const float minRiseTimeThresholdDeco_;
120  static const float maxRiseTimeThresholdDeco_;
121  static const float minTurnOnThresholdDeco_;
122  static const float maxTurnOnThresholdDeco_;
123 
124 private:
136 
138  bool deconv_;
139 
141  int calChan_;
142 };
143 
144 #endif // CondFormats_SiStripObjects_CalibrationAnalysis_H
CalibrationAnalysis::riseTime
const VVFloat & riseTime()
Definition: CalibrationAnalysis.h:28
CalibrationAnalysis::maxDecayTimeThresholdDeco_
static const float maxDecayTimeThresholdDeco_
Definition: CalibrationAnalysis.h:116
CalibrationAnalysis::smearingMax
const VFloat & smearingMax()
Definition: CalibrationAnalysis.h:71
CalibrationAnalysis::calChan
int calChan()
Definition: CalibrationAnalysis.h:93
CalibrationAnalysis::riseTimeMax
const VFloat & riseTimeMax()
Definition: CalibrationAnalysis.h:63
CalibrationAnalysis::baselineMax
const VFloat & baselineMax()
Definition: CalibrationAnalysis.h:87
CommissioningAnalysis::VVBool
std::vector< VBool > VVBool
Definition: CommissioningAnalysis.h:40
CalibrationAnalysis::riseTimeSpread
const VFloat & riseTimeSpread()
Definition: CalibrationAnalysis.h:61
CalibrationAnalysis::isvalid_
VVBool isvalid_
Definition: CalibrationAnalysis.h:127
CalibrationAnalysis::undershootSpread
const VFloat & undershootSpread()
Definition: CalibrationAnalysis.h:81
CalibrationAnalysis::maxPeakTimeThresholdDeco_
static const float maxPeakTimeThresholdDeco_
Definition: CalibrationAnalysis.h:118
CalibrationAnalysis::minBaselineThreshold_
static const float minBaselineThreshold_
Definition: CalibrationAnalysis.h:102
CommissioningAnalysis.h
CalibrationAnalysis::minRiseTimeThresholdDeco_
static const float minRiseTimeThresholdDeco_
Definition: CalibrationAnalysis.h:119
CalibrationAnalysis::maxTurnOnThreshold_
static const float maxTurnOnThreshold_
Definition: CalibrationAnalysis.h:113
CalibrationAnalysis::chi2_
VVFloat chi2_
Definition: CalibrationAnalysis.h:126
CalibrationAnalysis::tailMax
const VFloat & tailMax()
Definition: CalibrationAnalysis.h:59
CalibrationAnalysis::spread_turnOn_
VFloat spread_turnOn_
Definition: CalibrationAnalysis.h:134
CalibrationAnalysis::undershootMax
const VFloat & undershootMax()
Definition: CalibrationAnalysis.h:83
CalibrationAnalysis::min_turnOn_
VFloat min_turnOn_
Definition: CalibrationAnalysis.h:130
CalibrationAnalysis::peakTimeMin
const VFloat & peakTimeMin()
Definition: CalibrationAnalysis.h:78
CalibrationAnalysis::maxPeakTimeThreshold_
static const float maxPeakTimeThreshold_
Definition: CalibrationAnalysis.h:109
CalibrationAnalysis::amplitude_
VVFloat amplitude_
Definition: CalibrationAnalysis.h:126
CalibrationAnalysis::decayTimeMean
const VFloat & decayTimeMean()
Definition: CalibrationAnalysis.h:44
CalibrationAnalysis::mean_baseline_
VFloat mean_baseline_
Definition: CalibrationAnalysis.h:128
CalibrationAnalysis::maxRiseTimeThresholdDeco_
static const float maxRiseTimeThresholdDeco_
Definition: CalibrationAnalysis.h:120
CalibrationAnalysis::deconvMode
bool deconvMode()
Definition: CalibrationAnalysis.h:94
CalibrationAnalysis::amplitudeMax
const VFloat & amplitudeMax()
Definition: CalibrationAnalysis.h:55
CalibrationAnalysis::mean_decayTime_
VFloat mean_decayTime_
Definition: CalibrationAnalysis.h:128
CalibrationAnalysis::decayTime_
VVFloat decayTime_
Definition: CalibrationAnalysis.h:126
CalibrationAnalysis::chi2Spread
const VFloat & chi2Spread()
Definition: CalibrationAnalysis.h:89
CalibrationAnalysis::min_riseTime_
VFloat min_riseTime_
Definition: CalibrationAnalysis.h:130
CalibrationAnalysis::peakTime_
VVFloat peakTime_
Definition: CalibrationAnalysis.h:126
CalibrationAnalysis::deconv_
bool deconv_
Definition: CalibrationAnalysis.h:138
CalibrationAnalysis::print
void print(std::stringstream &, uint32_t not_used=0) override
Definition: CalibrationAnalysis.cc:216
CalibrationAnalysis::spread_riseTime_
VFloat spread_riseTime_
Definition: CalibrationAnalysis.h:134
CalibrationAnalysis::mean_undershoot_
VFloat mean_undershoot_
Definition: CalibrationAnalysis.h:128
CommissioningAnalysis::VFloat
std::vector< float > VFloat
Definition: CommissioningAnalysis.h:30
CalibrationAnalysis::minPeakTimeThresholdDeco_
static const float minPeakTimeThresholdDeco_
Definition: CalibrationAnalysis.h:117
CalibrationAnalysis::turnOnMin
const VFloat & turnOnMin()
Definition: CalibrationAnalysis.h:74
CalibrationAnalysis::min_decayTime_
VFloat min_decayTime_
Definition: CalibrationAnalysis.h:130
CalibrationAnalysis::riseTimeMean
const VFloat & riseTimeMean()
Definition: CalibrationAnalysis.h:43
CalibrationAnalysis::min_peakTime_
VFloat min_peakTime_
Definition: CalibrationAnalysis.h:130
CalibrationAnalysis::minRiseTimeThreshold_
static const float minRiseTimeThreshold_
Definition: CalibrationAnalysis.h:110
CalibrationAnalysis::undershootMean
const VFloat & undershootMean()
Definition: CalibrationAnalysis.h:48
CalibrationAnalysis::reset
void reset() override
Definition: CalibrationAnalysis.cc:154
CalibrationAnalysis::baseline
const VVFloat & baseline()
Definition: CalibrationAnalysis.h:33
CalibrationAnalysis::spread_baseline_
VFloat spread_baseline_
Definition: CalibrationAnalysis.h:134
CalibrationAnalysis::max_riseTime_
VFloat max_riseTime_
Definition: CalibrationAnalysis.h:132
CalibrationAnalysis::min_amplitude_
VFloat min_amplitude_
Definition: CalibrationAnalysis.h:130
CalibrationAnalysis::mean_amplitude_
VFloat mean_amplitude_
Definition: CalibrationAnalysis.h:128
CalibrationAnalysis::mean_smearing_
VFloat mean_smearing_
Definition: CalibrationAnalysis.h:128
CalibrationAnalysis::CalibrationAnalysis
CalibrationAnalysis(const uint32_t &key, const bool &deconv)
Definition: CalibrationAnalysis.cc:34
CalibrationAnalysis::minDecayTimeThresholdDeco_
static const float minDecayTimeThresholdDeco_
Definition: CalibrationAnalysis.h:115
CalibrationAnalysis::decayTimeMax
const VFloat & decayTimeMax()
Definition: CalibrationAnalysis.h:67
CalibrationAnalysis::mean_riseTime_
VFloat mean_riseTime_
Definition: CalibrationAnalysis.h:128
CalibrationAnalysis::mean_chi2_
VFloat mean_chi2_
Definition: CalibrationAnalysis.h:128
CalibrationAnalysis::spread_smearing_
VFloat spread_smearing_
Definition: CalibrationAnalysis.h:134
CalibrationAnalysis::tailSpread
const VFloat & tailSpread()
Definition: CalibrationAnalysis.h:57
CalibrationAnalysis::undershootMin
const VFloat & undershootMin()
Definition: CalibrationAnalysis.h:82
CalibrationAnalysis::mean_turnOn_
VFloat mean_turnOn_
Definition: CalibrationAnalysis.h:128
CalibrationAnalysis::amplitude
const VVFloat & amplitude()
Definition: CalibrationAnalysis.h:26
CalibrationAnalysis::smearing
const VVFloat & smearing()
Definition: CalibrationAnalysis.h:34
CalibrationAnalysis::amplitudeSpread
const VFloat & amplitudeSpread()
Definition: CalibrationAnalysis.h:53
CalibrationAnalysis::spread_decayTime_
VFloat spread_decayTime_
Definition: CalibrationAnalysis.h:134
CalibrationAnalysis::tailMean
const VFloat & tailMean()
Definition: CalibrationAnalysis.h:42
CalibrationAnalysis::spread_peakTime_
VFloat spread_peakTime_
Definition: CalibrationAnalysis.h:134
CalibrationAnalysis::minPeakTimeThreshold_
static const float minPeakTimeThreshold_
Definition: CalibrationAnalysis.h:108
SiStripConstants.h
CalibrationAnalysis::minTurnOnThresholdDeco_
static const float minTurnOnThresholdDeco_
Definition: CalibrationAnalysis.h:121
CalibrationAnalysis::turnOnMax
const VFloat & turnOnMax()
Definition: CalibrationAnalysis.h:75
CalibrationAnalysis::baseline_
VVFloat baseline_
Definition: CalibrationAnalysis.h:126
CalibrationAnalysis::max_smearing_
VFloat max_smearing_
Definition: CalibrationAnalysis.h:132
CalibrationAnalysis::baselineSpread
const VFloat & baselineSpread()
Definition: CalibrationAnalysis.h:85
CalibrationAnalysis::max_peakTime_
VFloat max_peakTime_
Definition: CalibrationAnalysis.h:132
CalibrationAnalysis::spread_tail_
VFloat spread_tail_
Definition: CalibrationAnalysis.h:134
CalibrationAnalysis::turnOnMean
const VFloat & turnOnMean()
Definition: CalibrationAnalysis.h:46
CalibrationAnalysis::spread_undershoot_
VFloat spread_undershoot_
Definition: CalibrationAnalysis.h:134
CalibrationAnalysis::max_chi2_
VFloat max_chi2_
Definition: CalibrationAnalysis.h:132
CalibrationAnalysis::minTurnOnThreshold_
static const float minTurnOnThreshold_
Definition: CalibrationAnalysis.h:112
CalibrationAnalysis::spread_chi2_
VFloat spread_chi2_
Definition: CalibrationAnalysis.h:134
CalibrationAnalysis::riseTime_
VVFloat riseTime_
Definition: CalibrationAnalysis.h:126
CalibrationAnalysis::amplitudeMean
const VFloat & amplitudeMean()
Definition: CalibrationAnalysis.h:41
CalibrationAlgorithm
Algorithm for calibration runs.
Definition: CalibrationAlgorithm.h:19
CalibrationAnalysis::isValidStrip
const VVBool isValidStrip()
Definition: CalibrationAnalysis.h:37
CalibrationAnalysis::turnOnSpread
const VFloat & turnOnSpread()
Definition: CalibrationAnalysis.h:73
CalibrationAnalysis::max_decayTime_
VFloat max_decayTime_
Definition: CalibrationAnalysis.h:132
CalibrationAnalysis::smearingSpread
const VFloat & smearingSpread()
Definition: CalibrationAnalysis.h:69
CalibrationAnalysis::decayTime
const VVFloat & decayTime()
Definition: CalibrationAnalysis.h:29
CalibrationAnalysis::chi2Mean
const VFloat & chi2Mean()
Definition: CalibrationAnalysis.h:50
CalibrationAnalysis::riseTimeMin
const VFloat & riseTimeMin()
Definition: CalibrationAnalysis.h:62
CalibrationAnalysis::decayTimeMin
const VFloat & decayTimeMin()
Definition: CalibrationAnalysis.h:66
CalibrationAnalysis::max_baseline_
VFloat max_baseline_
Definition: CalibrationAnalysis.h:132
CalibrationAnalysis::minAmplitudeThreshold_
static const float minAmplitudeThreshold_
Definition: CalibrationAnalysis.h:101
CalibrationAnalysis::tailMin
const VFloat & tailMin()
Definition: CalibrationAnalysis.h:58
CalibrationAnalysis::maxDecayTimeThreshold_
static const float maxDecayTimeThreshold_
Definition: CalibrationAnalysis.h:107
CalibrationAnalysis::~CalibrationAnalysis
~CalibrationAnalysis() override
Definition: CalibrationAnalysis.h:21
CommissioningAnalysis
Abstract base for derived classes that provide analysis of commissioning histograms.
Definition: CommissioningAnalysis.h:18
CalibrationAnalysis::peakTimeMax
const VFloat & peakTimeMax()
Definition: CalibrationAnalysis.h:79
CalibrationAnalysis::min_baseline_
VFloat min_baseline_
Definition: CalibrationAnalysis.h:130
CalibrationAnalysis::calChan_
int calChan_
Definition: CalibrationAnalysis.h:141
CalibrationAnalysis::peakTime
const VVFloat & peakTime()
Definition: CalibrationAnalysis.h:31
CalibrationAnalysis::baselineMin
const VFloat & baselineMin()
Definition: CalibrationAnalysis.h:86
CalibrationAnalysis::turnOn
const VVFloat & turnOn()
Definition: CalibrationAnalysis.h:30
CalibrationAnalysis::mean_peakTime_
VFloat mean_peakTime_
Definition: CalibrationAnalysis.h:128
CalibrationAnalysis::max_undershoot_
VFloat max_undershoot_
Definition: CalibrationAnalysis.h:132
CalibrationAnalysis::chi2Max
const VFloat & chi2Max()
Definition: CalibrationAnalysis.h:91
CalibrationAnalysis::peakTimeSpread
const VFloat & peakTimeSpread()
Definition: CalibrationAnalysis.h:77
CalibrationAnalysis::maxBaselineThreshold_
static const float maxBaselineThreshold_
Definition: CalibrationAnalysis.h:103
CalibrationAnalysis::amplitudeMin
const VFloat & amplitudeMin()
Definition: CalibrationAnalysis.h:54
CalibrationAnalysis::undershoot
const VVFloat & undershoot()
Definition: CalibrationAnalysis.h:32
CalibrationAnalysis::chi2Min
const VFloat & chi2Min()
Definition: CalibrationAnalysis.h:90
CalibrationAnalysis::turnOn_
VVFloat turnOn_
Definition: CalibrationAnalysis.h:126
CalibrationAnalysis::min_tail_
VFloat min_tail_
Definition: CalibrationAnalysis.h:130
CalibrationAnalysis::spread_amplitude_
VFloat spread_amplitude_
Definition: CalibrationAnalysis.h:134
CalibrationAnalysis::mean_tail_
VFloat mean_tail_
Definition: CalibrationAnalysis.h:128
CalibrationAnalysis::chi2
const VVFloat & chi2()
Definition: CalibrationAnalysis.h:35
CalibrationAnalysis::max_amplitude_
VFloat max_amplitude_
Definition: CalibrationAnalysis.h:132
CalibrationAnalysis::decayTimeSpread
const VFloat & decayTimeSpread()
Definition: CalibrationAnalysis.h:65
CommissioningAnalysis::VVFloat
std::vector< VFloat > VVFloat
Definition: CommissioningAnalysis.h:32
CalibrationAnalysis::maxChi2Threshold_
static const float maxChi2Threshold_
Definition: CalibrationAnalysis.h:104
CalibrationAnalysis::max_turnOn_
VFloat max_turnOn_
Definition: CalibrationAnalysis.h:132
CalibrationAnalysis::maxTurnOnThresholdDeco_
static const float maxTurnOnThresholdDeco_
Definition: CalibrationAnalysis.h:122
CalibrationAnalysis
Analysis for calibration runs.
Definition: CalibrationAnalysis.h:16
CalibrationAnalysis::min_undershoot_
VFloat min_undershoot_
Definition: CalibrationAnalysis.h:130
CalibrationAnalysis::tail_
VVFloat tail_
Definition: CalibrationAnalysis.h:126
CalibrationAnalysis::min_chi2_
VFloat min_chi2_
Definition: CalibrationAnalysis.h:130
crabWrapper.key
key
Definition: crabWrapper.py:19
CalibrationAnalysis::minDecayTimeThreshold_
static const float minDecayTimeThreshold_
Definition: CalibrationAnalysis.h:106
CalibrationAnalysis::smearingMin
const VFloat & smearingMin()
Definition: CalibrationAnalysis.h:70
CalibrationAnalysis::isValid
bool isValid() const override
Definition: CalibrationAnalysis.cc:242
CalibrationAnalysis::baselineMean
const VFloat & baselineMean()
Definition: CalibrationAnalysis.h:49
CalibrationAnalysis::undershoot_
VVFloat undershoot_
Definition: CalibrationAnalysis.h:126
CalibrationAnalysis::smearingMean
const VFloat & smearingMean()
Definition: CalibrationAnalysis.h:45
CalibrationAnalysis::smearing_
VVFloat smearing_
Definition: CalibrationAnalysis.h:126
CalibrationAnalysis::tail
const VVFloat & tail()
Definition: CalibrationAnalysis.h:27
CalibrationAnalysis::min_smearing_
VFloat min_smearing_
Definition: CalibrationAnalysis.h:130
CalibrationAnalysis::max_tail_
VFloat max_tail_
Definition: CalibrationAnalysis.h:132
CalibrationAnalysis::peakTimeMean
const VFloat & peakTimeMean()
Definition: CalibrationAnalysis.h:47
CalibrationAnalysis::maxRiseTimeThreshold_
static const float maxRiseTimeThreshold_
Definition: CalibrationAnalysis.h:111