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
std::map< uint32_t, uint16_t > Candidates
Histogram-based analysis for connection loop.
void print(std::stringstream &, uint32_t not_used=0) override
static const float threshold_
const uint16_t & fedCh() const
bool isValid() const override
key
prepare the HTCondor submission files and eventually submit them
void reset() override
const uint16_t & fedId() const
const Candidates & candidates() const
~FedCablingAnalysis() override
const float & adcLevel() const
Abstract base for derived classes that provide analysis of commissioning histograms.
Histogram-based analysis for connection loop.