CMS 3D CMS Logo

PedsFullNoiseAnalysis.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiStripObjects_PedsFullNoiseAnalysis_H
2 #define CondFormats_SiStripObjects_PedsFullNoiseAnalysis_H
3 
6 #include <sstream>
7 #include <vector>
8 #include <cstdint>
9 
17 public:
18  // ---------- con(de)structors ----------
19 
20  PedsFullNoiseAnalysis(const uint32_t& key);
21 
23 
24  ~PedsFullNoiseAnalysis() override { ; }
25 
26  friend class PedestalsAlgorithm;
27  friend class PedsFullNoiseAlgorithm;
28 
29  // ---------- public interface ----------
30 
32  bool isValid() const override;
33 
34  // Pedestal, noise and raw noise (128-strip vector per APV)
35  inline const VVFloat& peds() const;
36  inline const VVFloat& noise() const;
37  inline const VVFloat& raw() const;
38 
39  // test statistics for each APV (128-strip vector per APV)
40  inline const VVFloat& adProbab() const;
41  inline const VVFloat& ksProbab() const;
42  inline const VVFloat& jbProbab() const;
43  inline const VVFloat& chi2Probab() const;
44 
45  // Per strip values
46  inline const VVFloat& residualRMS() const; // RMS
47  inline const VVFloat& residualSigmaGaus() const; // from gaus fit
48  inline const VVFloat& noiseSignificance() const; // noise significance
49  inline const VVFloat& residualMean() const;
50  inline const VVFloat& residualSkewness() const;
51  inline const VVFloat& residualKurtosis() const;
52  inline const VVFloat& residualIntegralNsigma() const;
53  inline const VVFloat& residualIntegral() const;
54 
55  // status for different class of bad or problematic strips
56  inline const VVInt& deadStrip() const;
57  inline const VVInt& badStrip() const;
58  inline const VVInt& badStripBit() const;
59  inline const VVInt& deadStripBit() const;
60  inline const VVInt& shiftedStrip() const;
61  inline const VVInt& lowNoiseStrip() const;
62  inline const VVInt& largeNoiseStrip() const;
63  inline const VVInt& largeNoiseSignificance() const;
64  inline const VVInt& badFitStatus() const;
65  inline const VVInt& badADProbab() const;
66  inline const VVInt& badKSProbab() const;
67  inline const VVInt& badJBProbab() const;
68  inline const VVInt& badChi2Probab() const;
69  inline const VVInt& badTailStrip() const;
70  inline const VVInt& badDoublePeakStrip() const;
71 
72  // Mean and rms spread (value per APV)
73  inline const VFloat& pedsMean() const;
74  inline const VFloat& pedsSpread() const;
75  inline const VFloat& noiseMean() const;
76  inline const VFloat& noiseSpread() const;
77  inline const VFloat& rawMean() const;
78  inline const VFloat& rawSpread() const;
79 
80  // Max and min values (value per APV)
81  inline const VFloat& pedsMax() const;
82  inline const VFloat& pedsMin() const;
83  inline const VFloat& noiseMax() const;
84  inline const VFloat& noiseMin() const;
85  inline const VFloat& rawMax() const;
86  inline const VFloat& rawMin() const;
87 
88  // ---------- misc ----------
89 
91  void print(std::stringstream&, uint32_t apv_number = 0) override;
92 
94  void summary(std::stringstream&) const override;
95 
97  void reset() override;
98 
99  // ---------- private member data ----------
100 
101 private:
106 
121 
136 
137  // VFloat: 1 value per APV
150 
151  // true if legacy histogram naming is used
152  bool legacy_;
153 };
154 
155 // ---------- Inline methods ----------
156 
160 
165 
174 }
176 
186 }
194 
201 
208 
209 #endif // CondFormats_SiStripObjects_PedsFullNoiseAnalysis_H
PedsFullNoiseAnalysis::rawMean
const VFloat & rawMean() const
Definition: PedsFullNoiseAnalysis.h:199
PedsFullNoiseAnalysis::jbProbab_
VVFloat jbProbab_
Definition: PedsFullNoiseAnalysis.h:109
PedsFullNoiseAnalysis::badKSProbab_
VVInt badKSProbab_
Definition: PedsFullNoiseAnalysis.h:131
PedsFullNoiseAnalysis::residualKurtosis
const VVFloat & residualKurtosis() const
Definition: PedsFullNoiseAnalysis.h:171
PedsFullNoiseAnalysis::rawMean_
VFloat rawMean_
Definition: PedsFullNoiseAnalysis.h:142
PedsFullNoiseAnalysis::deadStripBit_
VVInt deadStripBit_
Definition: PedsFullNoiseAnalysis.h:120
PedsFullNoiseAnalysis::badChi2Probab
const VVInt & badChi2Probab() const
Definition: PedsFullNoiseAnalysis.h:191
PedsFullNoiseAnalysis::chi2Probab_
VVFloat chi2Probab_
Definition: PedsFullNoiseAnalysis.h:110
PedsFullNoiseAnalysis::badFitStatus_
VVInt badFitStatus_
Definition: PedsFullNoiseAnalysis.h:129
PedsFullNoiseAnalysis::residualMean_
VVFloat residualMean_
Definition: PedsFullNoiseAnalysis.h:114
CommissioningAnalysis.h
PedsFullNoiseAnalysis::badJBProbab_
VVInt badJBProbab_
Definition: PedsFullNoiseAnalysis.h:132
PedsFullNoiseAnalysis::residualSigmaGaus
const VVFloat & residualSigmaGaus() const
Definition: PedsFullNoiseAnalysis.h:167
PedsFullNoiseAnalysis::ksProbab_
VVFloat ksProbab_
Definition: PedsFullNoiseAnalysis.h:108
PedsFullNoiseAnalysis::residualSkewness_
VVFloat residualSkewness_
Definition: PedsFullNoiseAnalysis.h:115
PedsFullNoiseAnalysis::adProbab
const VVFloat & adProbab() const
Definition: PedsFullNoiseAnalysis.h:161
PedsFullNoiseAnalysis::residualIntegralNsigma_
VVFloat residualIntegralNsigma_
Definition: PedsFullNoiseAnalysis.h:117
PedsFullNoiseAnalysis::rawSpread_
VFloat rawSpread_
Definition: PedsFullNoiseAnalysis.h:143
PedestalsAlgorithm
Histogram-based analysis for pedestal run.
Definition: PedestalsAlgorithm.h:16
PedsFullNoiseAnalysis::noiseSignificance_
VVFloat noiseSignificance_
Definition: PedsFullNoiseAnalysis.h:113
CommissioningAnalysis::VVInt
std::vector< VInt > VVInt
Definition: CommissioningAnalysis.h:36
PedsFullNoiseAnalysis::badADProbab
const VVInt & badADProbab() const
Definition: PedsFullNoiseAnalysis.h:188
PedsFullNoiseAnalysis::peds
const VVFloat & peds() const
Definition: PedsFullNoiseAnalysis.h:157
CommissioningAnalysis::VFloat
std::vector< float > VFloat
Definition: CommissioningAnalysis.h:30
PedsFullNoiseAnalysis::badChi2Probab_
VVInt badChi2Probab_
Definition: PedsFullNoiseAnalysis.h:133
PedsFullNoiseAnalysis::summary
void summary(std::stringstream &) const override
Definition: PedsFullNoiseAnalysis.cc:258
PedsFullNoiseAnalysis::noiseSignificance
const VVFloat & noiseSignificance() const
Definition: PedsFullNoiseAnalysis.h:168
PedsFullNoiseAnalysis::residualSigmaGaus_
VVFloat residualSigmaGaus_
Definition: PedsFullNoiseAnalysis.h:112
PedsFullNoiseAnalysis
Histogram-based analysis for pedestal run.
Definition: PedsFullNoiseAnalysis.h:16
PedsFullNoiseAnalysis::PedsFullNoiseAnalysis
PedsFullNoiseAnalysis()
Definition: PedsFullNoiseAnalysis.cc:89
PedsFullNoiseAnalysis::noiseMax
const VFloat & noiseMax() const
Definition: PedsFullNoiseAnalysis.h:204
PedsFullNoiseAnalysis::pedsSpread
const VFloat & pedsSpread() const
Definition: PedsFullNoiseAnalysis.h:196
PedsFullNoiseAnalysis::lowNoiseStrip_
VVInt lowNoiseStrip_
Definition: PedsFullNoiseAnalysis.h:126
PedsFullNoiseAnalysis::noiseMin_
VFloat noiseMin_
Definition: PedsFullNoiseAnalysis.h:147
PedsFullNoiseAnalysis::noise_
VVFloat noise_
Definition: PedsFullNoiseAnalysis.h:104
PedsFullNoiseAnalysis::pedsMin_
VFloat pedsMin_
Definition: PedsFullNoiseAnalysis.h:145
PedsFullNoiseAnalysis::noiseMax_
VFloat noiseMax_
Definition: PedsFullNoiseAnalysis.h:146
PedsFullNoiseAnalysis::adProbab_
VVFloat adProbab_
Definition: PedsFullNoiseAnalysis.h:107
PedsFullNoiseAnalysis::residualIntegral
const VVFloat & residualIntegral() const
Definition: PedsFullNoiseAnalysis.h:175
PedsFullNoiseAnalysis::badKSProbab
const VVInt & badKSProbab() const
Definition: PedsFullNoiseAnalysis.h:189
PedsFullNoiseAnalysis::residualIntegral_
VVFloat residualIntegral_
Definition: PedsFullNoiseAnalysis.h:118
PedsFullNoiseAnalysis::badStripBit
const VVInt & badStripBit() const
Definition: PedsFullNoiseAnalysis.h:179
PedsFullNoiseAnalysis::largeNoiseSignificance
const VVInt & largeNoiseSignificance() const
Definition: PedsFullNoiseAnalysis.h:184
PedsFullNoiseAnalysis::rawMax_
VFloat rawMax_
Definition: PedsFullNoiseAnalysis.h:148
PedsFullNoiseAnalysis::badFitStatus
const VVInt & badFitStatus() const
Definition: PedsFullNoiseAnalysis.h:187
PedsFullNoiseAnalysis::isValid
bool isValid() const override
Definition: PedsFullNoiseAnalysis.cc:244
PedsFullNoiseAnalysis::badDoublePeakStrip_
VVInt badDoublePeakStrip_
Definition: PedsFullNoiseAnalysis.h:135
PedsFullNoiseAnalysis::pedsSpread_
VFloat pedsSpread_
Definition: PedsFullNoiseAnalysis.h:139
PedsFullNoiseAnalysis::noiseMean_
VFloat noiseMean_
Definition: PedsFullNoiseAnalysis.h:140
SiStripConstants.h
PedsFullNoiseAnalysis::noiseSpread
const VFloat & noiseSpread() const
Definition: PedsFullNoiseAnalysis.h:198
PedsFullNoiseAnalysis::legacy_
bool legacy_
Definition: PedsFullNoiseAnalysis.h:152
PedsFullNoiseAnalysis::residualKurtosis_
VVFloat residualKurtosis_
Definition: PedsFullNoiseAnalysis.h:116
PedsFullNoiseAnalysis::residualRMS
const VVFloat & residualRMS() const
Definition: PedsFullNoiseAnalysis.h:166
PedsFullNoiseAnalysis::pedsMin
const VFloat & pedsMin() const
Definition: PedsFullNoiseAnalysis.h:203
PedsFullNoiseAlgorithm
Histogram-based analysis for pedestal run.
Definition: PedsFullNoiseAlgorithm.h:17
PedsFullNoiseAnalysis::badADProbab_
VVInt badADProbab_
Definition: PedsFullNoiseAnalysis.h:130
PedsFullNoiseAnalysis::largeNoiseStrip
const VVInt & largeNoiseStrip() const
Definition: PedsFullNoiseAnalysis.h:183
PedsFullNoiseAnalysis::raw
const VVFloat & raw() const
Definition: PedsFullNoiseAnalysis.h:159
PedsFullNoiseAnalysis::chi2Probab
const VVFloat & chi2Probab() const
Definition: PedsFullNoiseAnalysis.h:164
PedsFullNoiseAnalysis::noiseMin
const VFloat & noiseMin() const
Definition: PedsFullNoiseAnalysis.h:205
PedsFullNoiseAnalysis::badStrip
const VVInt & badStrip() const
Definition: PedsFullNoiseAnalysis.h:178
PedsFullNoiseAnalysis::badDoublePeakStrip
const VVInt & badDoublePeakStrip() const
Definition: PedsFullNoiseAnalysis.h:193
CommissioningAnalysis
Abstract base for derived classes that provide analysis of commissioning histograms.
Definition: CommissioningAnalysis.h:18
PedsFullNoiseAnalysis::shiftedStrip
const VVInt & shiftedStrip() const
Definition: PedsFullNoiseAnalysis.h:181
PedsFullNoiseAnalysis::noise
const VVFloat & noise() const
Definition: PedsFullNoiseAnalysis.h:158
PedsFullNoiseAnalysis::badTailStrip_
VVInt badTailStrip_
Definition: PedsFullNoiseAnalysis.h:134
PedsFullNoiseAnalysis::jbProbab
const VVFloat & jbProbab() const
Definition: PedsFullNoiseAnalysis.h:163
PedsFullNoiseAnalysis::residualSkewness
const VVFloat & residualSkewness() const
Definition: PedsFullNoiseAnalysis.h:170
PedsFullNoiseAnalysis::largeNoiseStrip_
VVInt largeNoiseStrip_
Definition: PedsFullNoiseAnalysis.h:127
PedsFullNoiseAnalysis::rawMin_
VFloat rawMin_
Definition: PedsFullNoiseAnalysis.h:149
PedsFullNoiseAnalysis::ksProbab
const VVFloat & ksProbab() const
Definition: PedsFullNoiseAnalysis.h:162
PedsFullNoiseAnalysis::largeNoiseSignificance_
VVInt largeNoiseSignificance_
Definition: PedsFullNoiseAnalysis.h:128
PedsFullNoiseAnalysis::reset
void reset() override
Definition: PedsFullNoiseAnalysis.cc:165
PedsFullNoiseAnalysis::deadStrip
const VVInt & deadStrip() const
Definition: PedsFullNoiseAnalysis.h:177
PedsFullNoiseAnalysis::rawMin
const VFloat & rawMin() const
Definition: PedsFullNoiseAnalysis.h:207
PedsFullNoiseAnalysis::pedsMax_
VFloat pedsMax_
Definition: PedsFullNoiseAnalysis.h:144
PedsFullNoiseAnalysis::pedsMean_
VFloat pedsMean_
Definition: PedsFullNoiseAnalysis.h:138
PedsFullNoiseAnalysis::badStrip_
VVInt badStrip_
Definition: PedsFullNoiseAnalysis.h:124
PedsFullNoiseAnalysis::peds_
VVFloat peds_
Quantitles that are always filled for every strip.
Definition: PedsFullNoiseAnalysis.h:103
PedsFullNoiseAnalysis::pedsMean
const VFloat & pedsMean() const
Definition: PedsFullNoiseAnalysis.h:195
PedsFullNoiseAnalysis::badTailStrip
const VVInt & badTailStrip() const
Definition: PedsFullNoiseAnalysis.h:192
PedsFullNoiseAnalysis::badJBProbab
const VVInt & badJBProbab() const
Definition: PedsFullNoiseAnalysis.h:190
PedsFullNoiseAnalysis::lowNoiseStrip
const VVInt & lowNoiseStrip() const
Definition: PedsFullNoiseAnalysis.h:182
PedsFullNoiseAnalysis::residualRMS_
VVFloat residualRMS_
Definition: PedsFullNoiseAnalysis.h:111
PedsFullNoiseAnalysis::residualIntegralNsigma
const VVFloat & residualIntegralNsigma() const
Definition: PedsFullNoiseAnalysis.h:172
CommissioningAnalysis::VVFloat
std::vector< VFloat > VVFloat
Definition: CommissioningAnalysis.h:32
PedsFullNoiseAnalysis::rawMax
const VFloat & rawMax() const
Definition: PedsFullNoiseAnalysis.h:206
PedsFullNoiseAnalysis::deadStrip_
VVInt deadStrip_
Quantities filled only for bad strips i.e. vectors of strip-id.
Definition: PedsFullNoiseAnalysis.h:123
PedsFullNoiseAnalysis::badStripBit_
VVInt badStripBit_
Definition: PedsFullNoiseAnalysis.h:119
PedsFullNoiseAnalysis::shiftedStrip_
VVInt shiftedStrip_
Definition: PedsFullNoiseAnalysis.h:125
PedsFullNoiseAnalysis::raw_
VVFloat raw_
Definition: PedsFullNoiseAnalysis.h:105
PedsFullNoiseAnalysis::noiseMean
const VFloat & noiseMean() const
Definition: PedsFullNoiseAnalysis.h:197
PedsFullNoiseAnalysis::noiseSpread_
VFloat noiseSpread_
Definition: PedsFullNoiseAnalysis.h:141
crabWrapper.key
key
Definition: crabWrapper.py:19
PedsFullNoiseAnalysis::rawSpread
const VFloat & rawSpread() const
Definition: PedsFullNoiseAnalysis.h:200
PedsFullNoiseAnalysis::print
void print(std::stringstream &, uint32_t apv_number=0) override
Definition: PedsFullNoiseAnalysis.cc:319
PedsFullNoiseAnalysis::~PedsFullNoiseAnalysis
~PedsFullNoiseAnalysis() override
Definition: PedsFullNoiseAnalysis.h:24
PedsFullNoiseAnalysis::deadStripBit
const VVInt & deadStripBit() const
Definition: PedsFullNoiseAnalysis.h:180
PedsFullNoiseAnalysis::pedsMax
const VFloat & pedsMax() const
Definition: PedsFullNoiseAnalysis.h:202
PedsFullNoiseAnalysis::residualMean
const VVFloat & residualMean() const
Definition: PedsFullNoiseAnalysis.h:169