CMS 3D CMS Logo

PedestalsAnalysis.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiStripObjects_PedestalsAnalysis_H
2 #define CondFormats_SiStripObjects_PedestalsAnalysis_H
3 
6 #include <sstream>
7 #include <vector>
8 #include <cstdint>
9 
16 public:
17  // ---------- con(de)structors ----------
18 
19  PedestalsAnalysis(const uint32_t& key);
20 
22 
23  ~PedestalsAnalysis() override { ; }
24 
25  friend class PedestalsAlgorithm;
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_PedestalsAnalysis_H
PedestalsAnalysis::noiseMean
const VFloat & noiseMean() const
Definition: PedestalsAnalysis.h:143
PedestalsAnalysis::pedsMin
const VFloat & pedsMin() const
Definition: PedestalsAnalysis.h:149
PedestalsAnalysis::~PedestalsAnalysis
~PedestalsAnalysis() override
Definition: PedestalsAnalysis.h:23
PedestalsAnalysis::PedestalsAnalysis
PedestalsAnalysis()
Definition: PedestalsAnalysis.cc:41
PedestalsAnalysis::summary
void summary(std::stringstream &) const override
Definition: PedestalsAnalysis.cc:112
CommissioningAnalysis.h
PedestalsAnalysis::rawMin_
VFloat rawMin_
Definition: PedestalsAnalysis.h:126
PedestalsAnalysis::rawSpread
const VFloat & rawSpread() const
Definition: PedestalsAnalysis.h:146
PedestalsAlgorithm
Histogram-based analysis for pedestal run.
Definition: PedestalsAlgorithm.h:16
PedestalsAnalysis::noiseSpread_
VFloat noiseSpread_
Definition: PedestalsAnalysis.h:102
CommissioningAnalysis::VVInt
std::vector< VInt > VVInt
Definition: CommissioningAnalysis.h:36
PedestalsAnalysis::rawMax
const VFloat & rawMax() const
Definition: PedestalsAnalysis.h:152
PedestalsAnalysis::print
void print(std::stringstream &, uint32_t apv_number=0) override
Definition: PedestalsAnalysis.cc:173
PedestalsAnalysis::noisy_
VVInt noisy_
Definition: PedestalsAnalysis.h:88
PedestalsAnalysis
Histogram-based analysis for pedestal run.
Definition: PedestalsAnalysis.h:15
PedestalsAnalysis::noiseMin
const VFloat & noiseMin() const
Definition: PedestalsAnalysis.h:151
CommissioningAnalysis::VFloat
std::vector< float > VFloat
Definition: CommissioningAnalysis.h:30
PedestalsAnalysis::legacy_
bool legacy_
Definition: PedestalsAnalysis.h:129
PedestalsAnalysis::noiseSpread
const VFloat & noiseSpread() const
Definition: PedestalsAnalysis.h:144
PedestalsAnalysis::pedsMin_
VFloat pedsMin_
Definition: PedestalsAnalysis.h:114
PedestalsAnalysis::reset
void reset() override
Definition: PedestalsAnalysis.cc:69
PedestalsAnalysis::rawSpread_
VFloat rawSpread_
Definition: PedestalsAnalysis.h:108
PedestalsAnalysis::raw_
VVFloat raw_
Definition: PedestalsAnalysis.h:80
PedestalsAnalysis::peds
const VVFloat & peds() const
Definition: PedestalsAnalysis.h:134
PedestalsAnalysis::dead_
VVInt dead_
Definition: PedestalsAnalysis.h:85
PedestalsAnalysis::peds_
VVFloat peds_
Definition: PedestalsAnalysis.h:74
PedestalsAnalysis::pedsMax
const VFloat & pedsMax() const
Definition: PedestalsAnalysis.h:148
PedestalsAnalysis::pedsSpread_
VFloat pedsSpread_
Definition: PedestalsAnalysis.h:96
SiStripConstants.h
PedestalsAnalysis::isValid
bool isValid() const override
Definition: PedestalsAnalysis.cc:96
PedestalsAnalysis::dead
const VVInt & dead() const
Definition: PedestalsAnalysis.h:138
PedestalsAnalysis::pedsSpread
const VFloat & pedsSpread() const
Definition: PedestalsAnalysis.h:142
PedestalsAnalysis::noisy
const VVInt & noisy() const
Definition: PedestalsAnalysis.h:139
PedestalsAnalysis::rawMin
const VFloat & rawMin() const
Definition: PedestalsAnalysis.h:153
PedestalsAnalysis::pedsMean_
VFloat pedsMean_
Definition: PedestalsAnalysis.h:93
PedestalsAnalysis::rawMax_
VFloat rawMax_
Definition: PedestalsAnalysis.h:123
PedestalsAnalysis::noise
const VVFloat & noise() const
Definition: PedestalsAnalysis.h:135
CommissioningAnalysis
Abstract base for derived classes that provide analysis of commissioning histograms.
Definition: CommissioningAnalysis.h:18
PedestalsAnalysis::noiseMax_
VFloat noiseMax_
Definition: PedestalsAnalysis.h:117
PedestalsAnalysis::noiseMax
const VFloat & noiseMax() const
Definition: PedestalsAnalysis.h:150
PedestalsAnalysis::pedsMean
const VFloat & pedsMean() const
Definition: PedestalsAnalysis.h:141
PedestalsAnalysis::noiseMin_
VFloat noiseMin_
Definition: PedestalsAnalysis.h:120
CommissioningAnalysis::VVFloat
std::vector< VFloat > VVFloat
Definition: CommissioningAnalysis.h:32
PedestalsAnalysis::pedsMax_
VFloat pedsMax_
Definition: PedestalsAnalysis.h:111
PedestalsAnalysis::noise_
VVFloat noise_
Definition: PedestalsAnalysis.h:77
PedestalsAnalysis::noiseMean_
VFloat noiseMean_
Definition: PedestalsAnalysis.h:99
PedestalsAnalysis::rawMean
const VFloat & rawMean() const
Definition: PedestalsAnalysis.h:145
crabWrapper.key
key
Definition: crabWrapper.py:19
PedestalsAnalysis::rawMean_
VFloat rawMean_
Definition: PedestalsAnalysis.h:105
PedestalsAnalysis::raw
const VVFloat & raw() const
Definition: PedestalsAnalysis.h:136