CMS 3D CMS Logo

NoiseAnalysis.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiStripObjects_NoiseAnalysis_H
2 #define CondFormats_SiStripObjects_NoiseAnalysis_H
3 
6 #include <sstream>
7 #include <vector>
8 #include <cstdint>
9 
16 public:
17  // ---------- con(de)structors ----------
18 
19  NoiseAnalysis(const uint32_t& key);
20 
21  NoiseAnalysis();
22 
23  ~NoiseAnalysis() override { ; }
24 
25  friend class NoiseAlgorithm;
26 
27  // ---------- public interface ----------
28 
30  bool isValid() const override;
31 
32  // Pedestal, noise and raw noise (128-strip vector per APV)
33  inline const VVFloat& peds() const;
34  inline const VVFloat& noise() const;
35  inline const VVFloat& raw() const;
36 
37  // Dead and noisy strips (vector per APV)
38  inline const VVInt& dead() const;
39  inline const VVInt& noisy() const;
40 
41  // Mean and rms spread (value per APV)
42  inline const VFloat& pedsMean() const;
43  inline const VFloat& pedsSpread() const;
44  inline const VFloat& noiseMean() const;
45  inline const VFloat& noiseSpread() const;
46  inline const VFloat& rawMean() const;
47  inline const VFloat& rawSpread() const;
48 
49  // Max and min values (value per APV)
50  inline const VFloat& pedsMax() const;
51  inline const VFloat& pedsMin() const;
52  inline const VFloat& noiseMax() const;
53  inline const VFloat& noiseMin() const;
54  inline const VFloat& rawMax() const;
55  inline const VFloat& rawMin() const;
56 
57  // ---------- misc ----------
58 
60  void print(std::stringstream&, uint32_t apv_number = 0) override;
61 
63  void summary(std::stringstream&) const override;
64 
66  void reset() override;
67 
68  // ---------- private member data ----------
69 
70 private:
71  // VVFloats means: 1 vector per APV, 1 value per strip.
72 
75 
78 
81 
82  // VVInts means: 1 vector per APV, values are strip numbers.
83 
86 
89 
90  // VFloat: 1 value per APV
91 
94 
97 
100 
103 
106 
109 
112 
115 
118 
121 
124 
127 
128  // true if legacy histogram naming is used
129  bool legacy_;
130 };
131 
132 // ---------- Inline methods ----------
133 
137 
140 
147 
154 
155 #endif // CondFormats_SiStripObjects_NoiseAnalysis_H
NoiseAnalysis::rawMin
const VFloat & rawMin() const
Definition: NoiseAnalysis.h:153
NoiseAnalysis::noisy_
VVInt noisy_
Definition: NoiseAnalysis.h:88
NoiseAnalysis::reset
void reset() override
Definition: NoiseAnalysis.cc:69
NoiseAnalysis::pedsMin
const VFloat & pedsMin() const
Definition: NoiseAnalysis.h:149
CommissioningAnalysis.h
NoiseAnalysis::dead_
VVInt dead_
Definition: NoiseAnalysis.h:85
NoiseAnalysis::NoiseAnalysis
NoiseAnalysis()
Definition: NoiseAnalysis.cc:41
NoiseAnalysis::peds_
VVFloat peds_
Definition: NoiseAnalysis.h:74
NoiseAnalysis::noiseMean
const VFloat & noiseMean() const
Definition: NoiseAnalysis.h:143
NoiseAnalysis::summary
void summary(std::stringstream &) const override
Definition: NoiseAnalysis.cc:112
CommissioningAnalysis::VVInt
std::vector< VInt > VVInt
Definition: CommissioningAnalysis.h:36
NoiseAnalysis::legacy_
bool legacy_
Definition: NoiseAnalysis.h:129
NoiseAnalysis::rawMean
const VFloat & rawMean() const
Definition: NoiseAnalysis.h:145
NoiseAnalysis::noisy
const VVInt & noisy() const
Definition: NoiseAnalysis.h:139
CommissioningAnalysis::VFloat
std::vector< float > VFloat
Definition: CommissioningAnalysis.h:30
NoiseAnalysis::raw_
VVFloat raw_
Definition: NoiseAnalysis.h:80
NoiseAnalysis::rawMean_
VFloat rawMean_
Definition: NoiseAnalysis.h:105
NoiseAnalysis::noise_
VVFloat noise_
Definition: NoiseAnalysis.h:77
NoiseAnalysis::noiseMin_
VFloat noiseMin_
Definition: NoiseAnalysis.h:120
NoiseAnalysis::raw
const VVFloat & raw() const
Definition: NoiseAnalysis.h:136
NoiseAnalysis::noiseSpread_
VFloat noiseSpread_
Definition: NoiseAnalysis.h:102
NoiseAnalysis::dead
const VVInt & dead() const
Definition: NoiseAnalysis.h:138
NoiseAnalysis::pedsSpread_
VFloat pedsSpread_
Definition: NoiseAnalysis.h:96
NoiseAnalysis::noiseMin
const VFloat & noiseMin() const
Definition: NoiseAnalysis.h:151
NoiseAnalysis::pedsSpread
const VFloat & pedsSpread() const
Definition: NoiseAnalysis.h:142
NoiseAnalysis::noiseMean_
VFloat noiseMean_
Definition: NoiseAnalysis.h:99
NoiseAnalysis::pedsMin_
VFloat pedsMin_
Definition: NoiseAnalysis.h:114
NoiseAnalysis::noise
const VVFloat & noise() const
Definition: NoiseAnalysis.h:135
SiStripConstants.h
NoiseAnalysis::rawMin_
VFloat rawMin_
Definition: NoiseAnalysis.h:126
NoiseAlgorithm
Histogram-based analysis for pedestal run.
Definition: NoiseAlgorithm.h:16
NoiseAnalysis::rawMax
const VFloat & rawMax() const
Definition: NoiseAnalysis.h:152
NoiseAnalysis::~NoiseAnalysis
~NoiseAnalysis() override
Definition: NoiseAnalysis.h:23
NoiseAnalysis::pedsMax
const VFloat & pedsMax() const
Definition: NoiseAnalysis.h:148
NoiseAnalysis::rawMax_
VFloat rawMax_
Definition: NoiseAnalysis.h:123
NoiseAnalysis::noiseMax
const VFloat & noiseMax() const
Definition: NoiseAnalysis.h:150
NoiseAnalysis::isValid
bool isValid() const override
Definition: NoiseAnalysis.cc:96
NoiseAnalysis::pedsMax_
VFloat pedsMax_
Definition: NoiseAnalysis.h:111
CommissioningAnalysis
Abstract base for derived classes that provide analysis of commissioning histograms.
Definition: CommissioningAnalysis.h:18
NoiseAnalysis::pedsMean
const VFloat & pedsMean() const
Definition: NoiseAnalysis.h:141
NoiseAnalysis::rawSpread
const VFloat & rawSpread() const
Definition: NoiseAnalysis.h:146
NoiseAnalysis::noiseSpread
const VFloat & noiseSpread() const
Definition: NoiseAnalysis.h:144
NoiseAnalysis::pedsMean_
VFloat pedsMean_
Definition: NoiseAnalysis.h:93
NoiseAnalysis::peds
const VVFloat & peds() const
Definition: NoiseAnalysis.h:134
NoiseAnalysis::noiseMax_
VFloat noiseMax_
Definition: NoiseAnalysis.h:117
NoiseAnalysis::print
void print(std::stringstream &, uint32_t apv_number=0) override
Definition: NoiseAnalysis.cc:173
CommissioningAnalysis::VVFloat
std::vector< VFloat > VVFloat
Definition: CommissioningAnalysis.h:32
NoiseAnalysis
Histogram-based analysis for pedestal run.
Definition: NoiseAnalysis.h:15
crabWrapper.key
key
Definition: crabWrapper.py:19
NoiseAnalysis::rawSpread_
VFloat rawSpread_
Definition: NoiseAnalysis.h:108