CMS 3D CMS Logo

DaqScopeModeAnalysis.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiStripObjects_DaqScopeModeAnalysis_H
2 #define CondFormats_SiStripObjects_DaqScopeModeAnalysis_H
3 
6 #include <sstream>
7 #include <vector>
8 #include <cstdint>
9 
17 public:
18  DaqScopeModeAnalysis(const uint32_t& key);
19 
21 
22  ~DaqScopeModeAnalysis() override { ; }
23 
24  friend class DaqScopeModeAlgorithm;
25 
27  bool isValid() const override;
29  bool foundTickMark() const;
31  uint16_t frameFindingThreshold() const;
32 
33  // Pedestal, noise and raw noise (128-strip vector per APV)
34  inline const VVFloat& peds() const;
35  inline const VVFloat& noise() const;
36  inline const VVFloat& raw() const;
37 
38  // Dead and noisy strips (vector per APV)
39  inline const VVInt& dead() const;
40  inline const VVInt& noisy() const;
41 
42  // Mean and rms spread (value per APV)
43  inline const VFloat& pedsMean() const;
44  inline const VFloat& pedsSpread() const;
45  inline const VFloat& noiseMean() const;
46  inline const VFloat& noiseSpread() const;
47  inline const VFloat& rawMean() const;
48  inline const VFloat& rawSpread() const;
49 
50  // Max and min values (value per APV)
51  inline const VFloat& pedsMax() const;
52  inline const VFloat& pedsMin() const;
53  inline const VFloat& noiseMax() const;
54  inline const VFloat& noiseMin() const;
55  inline const VFloat& rawMax() const;
56  inline const VFloat& rawMin() const;
57 
59  inline const float& height() const;
61  inline const float& base() const;
63  inline const float& peak() const;
64 
66  void print(std::stringstream&, uint32_t apv_number = 0) override;
67 
69  inline void addErrorCode(const std::string& error) override;
70 
72  void summary(std::stringstream&) const override;
73 
75  void reset() override;
76 
78  static const float tickMarkHeightThreshold_;
79 
81  static const float frameFindingThreshold_;
82 
83 private:
85  float height_;
87  float base_;
89  float peak_;
90 
97 
102 
115 
120 
129  // true if legacy histogram naming is used
130  bool legacy_;
131 };
132 
136 
139 
146 
153 
154 const float& DaqScopeModeAnalysis::height() const { return height_; }
155 const float& DaqScopeModeAnalysis::base() const { return base_; }
156 const float& DaqScopeModeAnalysis::peak() const { return peak_; }
158 
159 #endif // CondFormats_SiStripObjects_DaqScopeModeAnalysis_H
DaqScopeModeAnalysis::rawMean
const VFloat & rawMean() const
Definition: DaqScopeModeAnalysis.h:144
DaqScopeModeAnalysis::pedsMax
const VFloat & pedsMax() const
Definition: DaqScopeModeAnalysis.h:147
DaqScopeModeAnalysis::noiseMin_
VFloat noiseMin_
Definition: DaqScopeModeAnalysis.h:124
DaqScopeModeAnalysis::raw_
VVFloat raw_
Definition: DaqScopeModeAnalysis.h:96
DaqScopeModeAnalysis::rawMax
const VFloat & rawMax() const
Definition: DaqScopeModeAnalysis.h:151
DaqScopeModeAnalysis::dead
const VVInt & dead() const
Definition: DaqScopeModeAnalysis.h:137
DaqScopeModeAnalysis::noise_
VVFloat noise_
Definition: DaqScopeModeAnalysis.h:94
CommissioningAnalysis.h
DaqScopeModeAnalysis::noiseMax
const VFloat & noiseMax() const
Definition: DaqScopeModeAnalysis.h:149
DaqScopeModeAnalysis::isValid
bool isValid() const override
Definition: DaqScopeModeAnalysis.cc:124
DaqScopeModeAnalysis::reset
void reset() override
Definition: DaqScopeModeAnalysis.cc:76
DaqScopeModeAnalysis::summary
void summary(std::stringstream &) const override
Definition: DaqScopeModeAnalysis.cc:216
DaqScopeModeAnalysis::noisy_
VVInt noisy_
Definition: DaqScopeModeAnalysis.h:101
DaqScopeModeAnalysis::rawSpread_
VFloat rawSpread_
Definition: DaqScopeModeAnalysis.h:114
CommissioningAnalysis::VVInt
std::vector< VInt > VVInt
Definition: CommissioningAnalysis.h:36
CommissioningAnalysis::addErrorCode
virtual void addErrorCode(const std::string &error)
Definition: CommissioningAnalysis.h:148
relativeConstraints.error
error
Definition: relativeConstraints.py:53
CommissioningAnalysis::VFloat
std::vector< float > VFloat
Definition: CommissioningAnalysis.h:30
DaqScopeModeAnalysis::pedsSpread_
VFloat pedsSpread_
Definition: DaqScopeModeAnalysis.h:106
DaqScopeModeAnalysis::height
const float & height() const
Definition: DaqScopeModeAnalysis.h:154
DaqScopeModeAnalysis::pedsMean_
VFloat pedsMean_
Definition: DaqScopeModeAnalysis.h:104
DaqScopeModeAnalysis::noiseSpread
const VFloat & noiseSpread() const
Definition: DaqScopeModeAnalysis.h:143
DaqScopeModeAnalysis::noise
const VVFloat & noise() const
Definition: DaqScopeModeAnalysis.h:134
DaqScopeModeAnalysis::~DaqScopeModeAnalysis
~DaqScopeModeAnalysis() override
Definition: DaqScopeModeAnalysis.h:22
DaqScopeModeAnalysis::noiseMean_
VFloat noiseMean_
Definition: DaqScopeModeAnalysis.h:108
DaqScopeModeAnalysis::base_
float base_
Definition: DaqScopeModeAnalysis.h:87
DaqScopeModeAnalysis::peds
const VVFloat & peds() const
Definition: DaqScopeModeAnalysis.h:133
DaqScopeModeAnalysis
Analysis for scope mode data.
Definition: DaqScopeModeAnalysis.h:16
DaqScopeModeAnalysis::rawMin_
VFloat rawMin_
Definition: DaqScopeModeAnalysis.h:128
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DaqScopeModeAnalysis::addErrorCode
void addErrorCode(const std::string &error) override
Definition: DaqScopeModeAnalysis.h:157
DaqScopeModeAnalysis::pedsMin_
VFloat pedsMin_
Definition: DaqScopeModeAnalysis.h:119
SiStripConstants.h
DaqScopeModeAnalysis::base
const float & base() const
Definition: DaqScopeModeAnalysis.h:155
DaqScopeModeAnalysis::pedsMean
const VFloat & pedsMean() const
Definition: DaqScopeModeAnalysis.h:140
DaqScopeModeAnalysis::noiseSpread_
VFloat noiseSpread_
Definition: DaqScopeModeAnalysis.h:110
DaqScopeModeAnalysis::noiseMin
const VFloat & noiseMin() const
Definition: DaqScopeModeAnalysis.h:150
DaqScopeModeAnalysis::rawMax_
VFloat rawMax_
Definition: DaqScopeModeAnalysis.h:126
DaqScopeModeAnalysis::noiseMax_
VFloat noiseMax_
Definition: DaqScopeModeAnalysis.h:122
DaqScopeModeAnalysis::peds_
VVFloat peds_
Definition: DaqScopeModeAnalysis.h:92
DaqScopeModeAnalysis::legacy_
bool legacy_
Definition: DaqScopeModeAnalysis.h:130
DaqScopeModeAnalysis::tickMarkHeightThreshold_
static const float tickMarkHeightThreshold_
Definition: DaqScopeModeAnalysis.h:78
CommissioningAnalysis
Abstract base for derived classes that provide analysis of commissioning histograms.
Definition: CommissioningAnalysis.h:18
DaqScopeModeAlgorithm
Algorithm for scope mode data.
Definition: DaqScopeModeAlgorithm.h:16
DaqScopeModeAnalysis::dead_
VVInt dead_
Definition: DaqScopeModeAnalysis.h:99
DaqScopeModeAnalysis::pedsMin
const VFloat & pedsMin() const
Definition: DaqScopeModeAnalysis.h:148
DaqScopeModeAnalysis::DaqScopeModeAnalysis
DaqScopeModeAnalysis()
Definition: DaqScopeModeAnalysis.cc:46
DaqScopeModeAnalysis::rawMean_
VFloat rawMean_
Definition: DaqScopeModeAnalysis.h:112
DaqScopeModeAnalysis::noiseMean
const VFloat & noiseMean() const
Definition: DaqScopeModeAnalysis.h:142
DaqScopeModeAnalysis::foundTickMark
bool foundTickMark() const
Definition: DaqScopeModeAnalysis.cc:117
DaqScopeModeAnalysis::frameFindingThreshold
uint16_t frameFindingThreshold() const
Definition: DaqScopeModeAnalysis.cc:106
DaqScopeModeAnalysis::print
void print(std::stringstream &, uint32_t apv_number=0) override
Definition: DaqScopeModeAnalysis.cc:140
CommissioningAnalysis::VVFloat
std::vector< VFloat > VVFloat
Definition: CommissioningAnalysis.h:32
DaqScopeModeAnalysis::height_
float height_
Definition: DaqScopeModeAnalysis.h:85
DaqScopeModeAnalysis::frameFindingThreshold_
static const float frameFindingThreshold_
Definition: DaqScopeModeAnalysis.h:81
DaqScopeModeAnalysis::pedsSpread
const VFloat & pedsSpread() const
Definition: DaqScopeModeAnalysis.h:141
DaqScopeModeAnalysis::noisy
const VVInt & noisy() const
Definition: DaqScopeModeAnalysis.h:138
DaqScopeModeAnalysis::pedsMax_
VFloat pedsMax_
Definition: DaqScopeModeAnalysis.h:117
crabWrapper.key
key
Definition: crabWrapper.py:19
DaqScopeModeAnalysis::rawMin
const VFloat & rawMin() const
Definition: DaqScopeModeAnalysis.h:152
DaqScopeModeAnalysis::raw
const VVFloat & raw() const
Definition: DaqScopeModeAnalysis.h:135
DaqScopeModeAnalysis::rawSpread
const VFloat & rawSpread() const
Definition: DaqScopeModeAnalysis.h:145
DaqScopeModeAnalysis::peak
const float & peak() const
Definition: DaqScopeModeAnalysis.h:156
DaqScopeModeAnalysis::peak_
float peak_
Definition: DaqScopeModeAnalysis.h:89