CMS 3D CMS Logo

PedsOnlyAnalysis.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiStripObjects_PedsOnlyAnalysis_H
2 #define CondFormats_SiStripObjects_PedsOnlyAnalysis_H
3 
6 #include <sstream>
7 #include <vector>
8 #include <cstdint>
9 
16 public:
17  // ---------- con(de)structors ----------
18 
19  PedsOnlyAnalysis(const uint32_t& key);
20 
22 
23  ~PedsOnlyAnalysis() override { ; }
24 
25  friend class PedsOnlyAlgorithm;
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& raw() const;
35 
36  // Mean and rms spread (value per APV)
37  inline const VFloat& pedsMean() const;
38  inline const VFloat& pedsSpread() const;
39  inline const VFloat& rawMean() const;
40  inline const VFloat& rawSpread() const;
41 
42  // Max and min values (value per APV)
43  inline const VFloat& pedsMax() const;
44  inline const VFloat& pedsMin() const;
45  inline const VFloat& rawMax() const;
46  inline const VFloat& rawMin() const;
47 
48  // ---------- misc ----------
49 
51  void print(std::stringstream&, uint32_t apv_number = 0) override;
52 
54  void summary(std::stringstream&) const override;
55 
57  void reset() override;
58 
59  // ---------- private member data ----------
60 
61 private:
62  // VVFloats means: 1 vector per APV, 1 value per strip.
63 
66 
69 
70  // VFloat: 1 value per APV
71 
74 
77 
80 
83 
86 
89 
92 
95 
96  // true if legacy histogram naming is used
97  bool legacy_;
98 };
99 
100 // ---------- Inline methods ----------
101 
104 
109 
114 
115 #endif // CondFormats_SiStripObjects_PedsOnlyAnalysis_H
PedsOnlyAnalysis::raw_
VVFloat raw_
Definition: PedsOnlyAnalysis.h:68
PedsOnlyAnalysis::PedsOnlyAnalysis
PedsOnlyAnalysis()
Definition: PedsOnlyAnalysis.cc:29
PedsOnlyAnalysis::summary
void summary(std::stringstream &) const override
Definition: PedsOnlyAnalysis.cc:72
PedsOnlyAlgorithm
Histogram-based analysis for pedestal run.
Definition: PedsOnlyAlgorithm.h:16
PedsOnlyAnalysis::rawMin
const VFloat & rawMin() const
Definition: PedsOnlyAnalysis.h:113
CommissioningAnalysis.h
PedsOnlyAnalysis::rawMax_
VFloat rawMax_
Definition: PedsOnlyAnalysis.h:91
PedsOnlyAnalysis::peds
const VVFloat & peds() const
Definition: PedsOnlyAnalysis.h:102
PedsOnlyAnalysis::~PedsOnlyAnalysis
~PedsOnlyAnalysis() override
Definition: PedsOnlyAnalysis.h:23
PedsOnlyAnalysis::pedsSpread_
VFloat pedsSpread_
Definition: PedsOnlyAnalysis.h:76
PedsOnlyAnalysis::rawSpread
const VFloat & rawSpread() const
Definition: PedsOnlyAnalysis.h:108
CommissioningAnalysis::VFloat
std::vector< float > VFloat
Definition: CommissioningAnalysis.h:30
PedsOnlyAnalysis::rawMax
const VFloat & rawMax() const
Definition: PedsOnlyAnalysis.h:112
PedsOnlyAnalysis::reset
void reset() override
Definition: PedsOnlyAnalysis.cc:45
PedsOnlyAnalysis::raw
const VVFloat & raw() const
Definition: PedsOnlyAnalysis.h:103
PedsOnlyAnalysis::pedsMax
const VFloat & pedsMax() const
Definition: PedsOnlyAnalysis.h:110
PedsOnlyAnalysis
Histogram-based analysis for pedestal run.
Definition: PedsOnlyAnalysis.h:15
PedsOnlyAnalysis::rawSpread_
VFloat rawSpread_
Definition: PedsOnlyAnalysis.h:82
SiStripConstants.h
PedsOnlyAnalysis::print
void print(std::stringstream &, uint32_t apv_number=0) override
Definition: PedsOnlyAnalysis.cc:133
PedsOnlyAnalysis::rawMin_
VFloat rawMin_
Definition: PedsOnlyAnalysis.h:94
PedsOnlyAnalysis::pedsMean_
VFloat pedsMean_
Definition: PedsOnlyAnalysis.h:73
PedsOnlyAnalysis::legacy_
bool legacy_
Definition: PedsOnlyAnalysis.h:97
CommissioningAnalysis
Abstract base for derived classes that provide analysis of commissioning histograms.
Definition: CommissioningAnalysis.h:18
PedsOnlyAnalysis::pedsMin
const VFloat & pedsMin() const
Definition: PedsOnlyAnalysis.h:111
PedsOnlyAnalysis::pedsMin_
VFloat pedsMin_
Definition: PedsOnlyAnalysis.h:88
PedsOnlyAnalysis::peds_
VVFloat peds_
Definition: PedsOnlyAnalysis.h:65
PedsOnlyAnalysis::rawMean_
VFloat rawMean_
Definition: PedsOnlyAnalysis.h:79
PedsOnlyAnalysis::isValid
bool isValid() const override
Definition: PedsOnlyAnalysis.cc:61
PedsOnlyAnalysis::pedsSpread
const VFloat & pedsSpread() const
Definition: PedsOnlyAnalysis.h:106
CommissioningAnalysis::VVFloat
std::vector< VFloat > VVFloat
Definition: CommissioningAnalysis.h:32
PedsOnlyAnalysis::pedsMax_
VFloat pedsMax_
Definition: PedsOnlyAnalysis.h:85
PedsOnlyAnalysis::rawMean
const VFloat & rawMean() const
Definition: PedsOnlyAnalysis.h:107
crabWrapper.key
key
Definition: crabWrapper.py:19
PedsOnlyAnalysis::pedsMean
const VFloat & pedsMean() const
Definition: PedsOnlyAnalysis.h:105