CMS 3D CMS Logo

FastFedCablingAnalysis.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiStripObjects_FastFedCablingAnalysis_H
2 #define CondFormats_SiStripObjects_FastFedCablingAnalysis_H
3 
6 #include <sstream>
7 #include <vector>
8 #include <map>
9 #include <cstdint>
10 
17 public:
18  // ---------- con(de)structors and typedefs ----------
19 
20  FastFedCablingAnalysis(const uint32_t& key);
21 
23 
24  ~FastFedCablingAnalysis() override { ; }
25 
26  typedef std::map<uint32_t, uint16_t> Candidates;
27 
29 
30  // ---------- public interface ----------
31 
33  bool isValid() const override;
34 
36  bool isDirty() const;
37 
39  bool badTrimDac() const;
40 
42  inline const uint32_t& dcuHardId() const;
43 
45  inline const uint16_t& lldCh() const;
46 
48  inline const float& highLevel() const;
49 
51  inline const float& highRms() const;
52 
54  inline const float& lowLevel() const;
55 
57  inline const float& lowRms() const;
58 
60  inline const float& max() const;
61 
63  inline const float& min() const;
64 
65  // ---------- misc ----------
66 
68  void print(std::stringstream&, uint32_t not_used = 0) override;
69 
71  void header(std::stringstream&) const override;
72 
74  void summary(std::stringstream&) const override;
75 
77  void reset() override;
78 
79  // ---------- public static data ----------
80 
81 public:
83  static const float threshold_;
84 
86  static const float dirtyThreshold_;
87 
89  static const float trimDacThreshold_;
90 
92  static const uint16_t nBitsForDcuId_;
93 
95  static const uint16_t nBitsForLldCh_;
96 
97  // ---------- private member data ----------
98 
99 private:
101  uint32_t dcuHardId_;
102 
104  uint16_t lldCh_;
105 
107  float highMedian_;
108 
110  float highMean_;
111 
113  float highRms_;
114 
116  float lowMedian_;
117 
119  float lowMean_;
120 
122  float lowRms_;
123 
125  float range_;
126 
128  float midRange_;
129 
131  float max_;
132 
134  float min_;
135 };
136 
137 // ---------- Inline methods ----------
138 
139 const uint32_t& FastFedCablingAnalysis::dcuHardId() const { return dcuHardId_; }
140 const uint16_t& FastFedCablingAnalysis::lldCh() const { return lldCh_; }
141 const float& FastFedCablingAnalysis::highLevel() const { return highMean_; }
142 const float& FastFedCablingAnalysis::highRms() const { return highRms_; }
143 const float& FastFedCablingAnalysis::lowLevel() const { return lowMean_; }
144 const float& FastFedCablingAnalysis::lowRms() const { return lowRms_; }
145 const float& FastFedCablingAnalysis::max() const { return max_; }
146 const float& FastFedCablingAnalysis::min() const { return min_; }
147 
148 #endif // CondFormats_SiStripObjects_FastFedCablingAnalysis_H
FastFedCablingAnalysis::dcuHardId_
uint32_t dcuHardId_
Definition: FastFedCablingAnalysis.h:101
FastFedCablingAnalysis::lowMean_
float lowMean_
Definition: FastFedCablingAnalysis.h:119
FastFedCablingAnalysis::lowRms
const float & lowRms() const
Definition: FastFedCablingAnalysis.h:144
FastFedCablingAnalysis::range_
float range_
Definition: FastFedCablingAnalysis.h:125
CommissioningAnalysis.h
FastFedCablingAnalysis::lldCh_
uint16_t lldCh_
Definition: FastFedCablingAnalysis.h:104
FastFedCablingAnalysis::highLevel
const float & highLevel() const
Definition: FastFedCablingAnalysis.h:141
FastFedCablingAnalysis::highMedian_
float highMedian_
Definition: FastFedCablingAnalysis.h:107
FastFedCablingAnalysis::~FastFedCablingAnalysis
~FastFedCablingAnalysis() override
Definition: FastFedCablingAnalysis.h:24
FastFedCablingAnalysis::highRms_
float highRms_
Definition: FastFedCablingAnalysis.h:113
FastFedCablingAnalysis
Histogram-based analysis for connection loop.
Definition: FastFedCablingAnalysis.h:16
FastFedCablingAnalysis::lowRms_
float lowRms_
Definition: FastFedCablingAnalysis.h:122
FastFedCablingAnalysis::FastFedCablingAnalysis
FastFedCablingAnalysis()
Definition: FastFedCablingAnalysis.cc:61
FastFedCablingAnalysis::trimDacThreshold_
static const float trimDacThreshold_
Definition: FastFedCablingAnalysis.h:89
FastFedCablingAnalysis::lowMedian_
float lowMedian_
Definition: FastFedCablingAnalysis.h:116
FastFedCablingAnalysis::threshold_
static const float threshold_
Definition: FastFedCablingAnalysis.h:83
FastFedCablingAnalysis::summary
void summary(std::stringstream &) const override
Definition: FastFedCablingAnalysis.cc:147
FastFedCablingAnalysis::min
const float & min() const
Definition: FastFedCablingAnalysis.h:146
FastFedCablingAnalysis::highRms
const float & highRms() const
Definition: FastFedCablingAnalysis.h:142
FastFedCablingAnalysis::highMean_
float highMean_
Definition: FastFedCablingAnalysis.h:110
SiStripConstants.h
FastFedCablingAnalysis::badTrimDac
bool badTrimDac() const
Definition: FastFedCablingAnalysis.cc:110
FastFedCablingAnalysis::lowLevel
const float & lowLevel() const
Definition: FastFedCablingAnalysis.h:143
FastFedCablingAnalysis::header
void header(std::stringstream &) const override
Definition: FastFedCablingAnalysis.cc:114
FastFedCablingAnalysis::nBitsForDcuId_
static const uint16_t nBitsForDcuId_
Definition: FastFedCablingAnalysis.h:92
FastFedCablingAnalysis::reset
void reset() override
Definition: FastFedCablingAnalysis.cc:80
FastFedCablingAnalysis::nBitsForLldCh_
static const uint16_t nBitsForLldCh_
Definition: FastFedCablingAnalysis.h:95
FastFedCablingAnalysis::lldCh
const uint16_t & lldCh() const
Definition: FastFedCablingAnalysis.h:140
CommissioningAnalysis
Abstract base for derived classes that provide analysis of commissioning histograms.
Definition: CommissioningAnalysis.h:18
FastFedCablingAnalysis::max_
float max_
Definition: FastFedCablingAnalysis.h:131
FastFedCablingAnalysis::isDirty
bool isDirty() const
Definition: FastFedCablingAnalysis.cc:106
FastFedCablingAnalysis::min_
float min_
Definition: FastFedCablingAnalysis.h:134
FastFedCablingAnalysis::print
void print(std::stringstream &, uint32_t not_used=0) override
Definition: FastFedCablingAnalysis.cc:165
FastFedCablingAnalysis::dirtyThreshold_
static const float dirtyThreshold_
Definition: FastFedCablingAnalysis.h:86
FastFedCablingAnalysis::midRange_
float midRange_
Definition: FastFedCablingAnalysis.h:128
FastFedCablingAnalysis::Candidates
std::map< uint32_t, uint16_t > Candidates
Definition: FastFedCablingAnalysis.h:26
FastFedCablingAnalysis::max
const float & max() const
Definition: FastFedCablingAnalysis.h:145
FastFedCablingAnalysis::dcuHardId
const uint32_t & dcuHardId() const
Definition: FastFedCablingAnalysis.h:139
crabWrapper.key
key
Definition: crabWrapper.py:19
FastFedCablingAlgorithm
Histogram-based analysis for connection loop.
Definition: FastFedCablingAlgorithm.h:16
FastFedCablingAnalysis::isValid
bool isValid() const override
Definition: FastFedCablingAnalysis.cc:97