CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PedsOnlyAnalysis.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiStripObjects_PedsOnlyAnalysis_H
2 #define CondFormats_SiStripObjects_PedsOnlyAnalysis_H
3 
6 #include <boost/cstdint.hpp>
7 #include <sstream>
8 #include <vector>
9 
16 
17  public:
18 
19  // ---------- con(de)structors ----------
20 
21  PedsOnlyAnalysis( const uint32_t& key );
22 
24 
25  virtual ~PedsOnlyAnalysis() {;}
26 
27  friend class PedsOnlyAlgorithm;
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& raw() const;
37 
38  // Mean and rms spread (value per APV)
39  inline const VFloat& pedsMean() const;
40  inline const VFloat& pedsSpread() const;
41  inline const VFloat& rawMean() const;
42  inline const VFloat& rawSpread() const;
43 
44  // Max and min values (value per APV)
45  inline const VFloat& pedsMax() const;
46  inline const VFloat& pedsMin() const;
47  inline const VFloat& rawMax() const;
48  inline const VFloat& rawMin() const;
49 
50  // ---------- misc ----------
51 
53  void print( std::stringstream&, uint32_t apv_number = 0 );
54 
56  void summary( std::stringstream& ) const;
57 
59  void reset();
60 
61  // ---------- private member data ----------
62 
63  private:
64 
65  // VVFloats means: 1 vector per APV, 1 value per strip.
66 
69 
72 
73  // VFloat: 1 value per APV
74 
77 
80 
83 
86 
89 
92 
95 
98 
99  // true if legacy histogram naming is used
100  bool legacy_;
101 
102 };
103 
104 // ---------- Inline methods ----------
105 
108 
113 
118 
119 #endif // CondFormats_SiStripObjects_PedsOnlyAnalysis_H
Histogram-based analysis for pedestal run.
virtual ~PedsOnlyAnalysis()
bool isValid() const
void print(std::stringstream &, uint32_t apv_number=0)
const VFloat & rawSpread() const
const VVFloat & raw() const
std::vector< float > VFloat
const VFloat & rawMin() const
const VFloat & pedsMin() const
const VFloat & pedsMax() const
const VFloat & rawMax() const
const VVFloat & peds() const
list key
Definition: combine.py:13
void summary(std::stringstream &) const
const VFloat & pedsSpread() const
const VFloat & pedsMean() const
std::vector< VFloat > VVFloat
Abstract base for derived classes that provide analysis of commissioning histograms.
const VFloat & rawMean() const
Histogram-based analysis for pedestal run.