CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FedCablingAnalysis.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiStripObjects_FedCablingAnalysis_H
2 #define CondFormats_SiStripObjects_FedCablingAnalysis_H
3 
6 #include <boost/cstdint.hpp>
7 #include <sstream>
8 #include <vector>
9 #include <map>
10 
17 
18  public:
19 
20  // ---------- con(de)structors and typedefs ----------
21 
22  FedCablingAnalysis( const uint32_t& key );
23 
25 
26  virtual ~FedCablingAnalysis() {;}
27 
28  typedef std::map<uint32_t,uint16_t> Candidates;
29 
30  friend class FedCablingAlgorithm;
31 
32  // ---------- public interface ----------
33 
35  bool isValid() const;
36 
38  inline const uint16_t& fedId() const;
39 
41  inline const uint16_t& fedCh() const;
42 
44  inline const float& adcLevel() const;
45 
47  inline const Candidates& candidates() const;
48 
49  // ---------- misc ----------
50 
52  void print( std::stringstream&, uint32_t not_used = 0 );
53 
55  void reset();
56 
57  // ---------- public static data ----------
58 
59  public:
60 
62  static const float threshold_;
63 
64  // ---------- private member data ----------
65 
66  private:
67 
69  uint16_t fedId_;
70 
72  uint16_t fedCh_;
73 
75  float adcLevel_;
76 
79 
80 };
81 
82 // ---------- Inline methods ----------
83 
84 const uint16_t& FedCablingAnalysis::fedId() const { return fedId_; }
85 const uint16_t& FedCablingAnalysis::fedCh() const { return fedCh_; }
86 const float& FedCablingAnalysis::adcLevel() const { return adcLevel_; }
88 
89 #endif // CondFormats_SiStripObjects_FedCablingAnalysis_H
90 
Histogram-based analysis for connection loop.
const Candidates & candidates() const
static const float threshold_
const uint16_t & fedCh() const
const uint16_t & fedId() const
const float & adcLevel() const
std::map< uint32_t, uint16_t > Candidates
list key
Definition: combine.py:13
Abstract base for derived classes that provide analysis of commissioning histograms.
Histogram-based analysis for connection loop.
void print(std::stringstream &, uint32_t not_used=0)