CMS 3D CMS Logo

FedCablingAnalysis.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiStripObjects_FedCablingAnalysis_H
2 #define CondFormats_SiStripObjects_FedCablingAnalysis_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  FedCablingAnalysis(const uint32_t& key);
21 
23 
24  ~FedCablingAnalysis() override { ; }
25 
26  typedef std::map<uint32_t, uint16_t> Candidates;
27 
28  friend class FedCablingAlgorithm;
29 
30  // ---------- public interface ----------
31 
33  bool isValid() const override;
34 
36  inline const uint16_t& fedId() const;
37 
39  inline const uint16_t& fedCh() const;
40 
42  inline const float& adcLevel() const;
43 
45  inline const Candidates& candidates() const;
46 
47  // ---------- misc ----------
48 
50  void print(std::stringstream&, uint32_t not_used = 0) override;
51 
53  void reset() override;
54 
55  // ---------- public static data ----------
56 
57 public:
59  static const float threshold_;
60 
61  // ---------- private member data ----------
62 
63 private:
65  uint16_t fedId_;
66 
68  uint16_t fedCh_;
69 
71  float adcLevel_;
72 
75 };
76 
77 // ---------- Inline methods ----------
78 
79 const uint16_t& FedCablingAnalysis::fedId() const { return fedId_; }
80 const uint16_t& FedCablingAnalysis::fedCh() const { return fedCh_; }
81 const float& FedCablingAnalysis::adcLevel() const { return adcLevel_; }
83 
84 #endif // CondFormats_SiStripObjects_FedCablingAnalysis_H
FedCablingAnalysis::Candidates
std::map< uint32_t, uint16_t > Candidates
Definition: FedCablingAnalysis.h:26
FedCablingAlgorithm
Histogram-based analysis for connection loop.
Definition: FedCablingAlgorithm.h:16
FedCablingAnalysis::adcLevel_
float adcLevel_
Definition: FedCablingAnalysis.h:71
FedCablingAnalysis::threshold_
static const float threshold_
Definition: FedCablingAnalysis.h:59
FedCablingAnalysis::print
void print(std::stringstream &, uint32_t not_used=0) override
Definition: FedCablingAnalysis.cc:56
FedCablingAnalysis::candidates
const Candidates & candidates() const
Definition: FedCablingAnalysis.h:82
CommissioningAnalysis.h
FedCablingAnalysis::fedId_
uint16_t fedId_
Definition: FedCablingAnalysis.h:65
FedCablingAnalysis::fedCh_
uint16_t fedCh_
Definition: FedCablingAnalysis.h:68
FedCablingAnalysis::FedCablingAnalysis
FedCablingAnalysis()
Definition: FedCablingAnalysis.cc:29
FedCablingAnalysis::isValid
bool isValid() const override
Definition: FedCablingAnalysis.cc:49
FedCablingAnalysis::candidates_
Candidates candidates_
Definition: FedCablingAnalysis.h:74
FedCablingAnalysis::adcLevel
const float & adcLevel() const
Definition: FedCablingAnalysis.h:81
FedCablingAnalysis::fedCh
const uint16_t & fedCh() const
Definition: FedCablingAnalysis.h:80
FedCablingAnalysis::~FedCablingAnalysis
~FedCablingAnalysis() override
Definition: FedCablingAnalysis.h:24
SiStripConstants.h
CommissioningAnalysis
Abstract base for derived classes that provide analysis of commissioning histograms.
Definition: CommissioningAnalysis.h:18
FedCablingAnalysis::reset
void reset() override
Definition: FedCablingAnalysis.cc:40
crabWrapper.key
key
Definition: crabWrapper.py:19
FedCablingAnalysis::fedId
const uint16_t & fedId() const
Definition: FedCablingAnalysis.h:79
FedCablingAnalysis
Histogram-based analysis for connection loop.
Definition: FedCablingAnalysis.h:16