test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PedestalsAnalysis.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiStripObjects_PedestalsAnalysis_H
2 #define CondFormats_SiStripObjects_PedestalsAnalysis_H
3 
6 #include <boost/cstdint.hpp>
7 #include <sstream>
8 #include <vector>
9 
16 
17  public:
18 
19  // ---------- con(de)structors ----------
20 
21  PedestalsAnalysis( const uint32_t& key );
22 
24 
25  virtual ~PedestalsAnalysis() {;}
26 
27  friend class PedestalsAlgorithm;
28 
29  // ---------- public interface ----------
30 
32  bool isValid() const;
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  // Dead and noisy strips (vector per APV)
40  inline const VVInt& dead() const;
41  inline const VVInt& noisy() const;
42 
43  // Mean and rms spread (value per APV)
44  inline const VFloat& pedsMean() const;
45  inline const VFloat& pedsSpread() const;
46  inline const VFloat& noiseMean() const;
47  inline const VFloat& noiseSpread() const;
48  inline const VFloat& rawMean() const;
49  inline const VFloat& rawSpread() const;
50 
51  // Max and min values (value per APV)
52  inline const VFloat& pedsMax() const;
53  inline const VFloat& pedsMin() const;
54  inline const VFloat& noiseMax() const;
55  inline const VFloat& noiseMin() const;
56  inline const VFloat& rawMax() const;
57  inline const VFloat& rawMin() const;
58 
59  // ---------- misc ----------
60 
62  void print( std::stringstream&, uint32_t apv_number = 0 );
63 
65  void summary( std::stringstream& ) const;
66 
68  void reset();
69 
70  // ---------- private member data ----------
71 
72  private:
73 
74  // VVFloats means: 1 vector per APV, 1 value per strip.
75 
78 
81 
84 
85  // VVInts means: 1 vector per APV, values are strip numbers.
86 
89 
92 
93  // VFloat: 1 value per APV
94 
97 
100 
103 
106 
109 
112 
115 
118 
121 
124 
127 
130 
131  // true if legacy histogram naming is used
132  bool legacy_;
133 
134 };
135 
136 // ---------- Inline methods ----------
137 
141 
144 
151 
158 
159 #endif // CondFormats_SiStripObjects_PedestalsAnalysis_H
const VFloat & rawMax() const
virtual ~PedestalsAnalysis()
const VFloat & pedsMean() const
const VVInt & noisy() const
const VVFloat & peds() const
void print(std::stringstream &, uint32_t apv_number=0)
bool isValid() const
const VFloat & noiseMean() const
const VVFloat & raw() const
std::vector< float > VFloat
void summary(std::stringstream &) const
const VFloat & pedsMin() const
const VVFloat & noise() const
Histogram-based analysis for pedestal run.
const VVInt & dead() const
const VFloat & rawMin() const
const VFloat & rawSpread() const
const VFloat & rawMean() const
std::vector< VInt > VVInt
const VFloat & pedsSpread() const
const VFloat & pedsMax() const
list key
Definition: combine.py:13
const VFloat & noiseSpread() const
std::vector< VFloat > VVFloat
const VFloat & noiseMax() const
Abstract base for derived classes that provide analysis of commissioning histograms.
Histogram-based analysis for pedestal run.
const VFloat & noiseMin() const