CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ApvTimingAnalysis.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiStripObjects_ApvTimingAnalysis_H
2 #define CondFormats_SiStripObjects_ApvTimingAnalysis_H
3 
6 #include <boost/cstdint.hpp>
7 #include <sstream>
8 #include <vector>
9 
16 
17  public:
18 
19  // ---------- con(de)structors ----------
20 
21  ApvTimingAnalysis( const uint32_t& key );
22 
24 
25  virtual ~ApvTimingAnalysis() {;}
26 
27  friend class ApvTimingAlgorithm;
28 
29  // ---------- public interface ----------
30 
32  bool isValid() const;
33 
35  bool foundTickMark() const;
36 
38  inline const float& time() const;
39 
41  inline const float& error() const;
42 
44  inline const float& optimumSamplingPoint() const;
45 
47  inline const float& refTime() const;
48 
50  void refTime( const float& time, const float& targetDelay = -1 );
51 
53  inline const float& delay() const;
54 
56  inline const float& height() const;
57 
59  inline const float& base() const;
60 
62  inline const float& peak() const;
63 
65  uint16_t frameFindingThreshold() const;
66 
67  // ---------- misc ----------
68 
70  void print( std::stringstream&, uint32_t not_used = 0 );
71 
73  inline void addErrorCode( const std::string& error );
74 
76  void reset();
77 
78  // ---------- public static data ----------
79 
81  static const float optimumSamplingPoint_;
82 
84  static const float tickMarkHeightThreshold_;
85 
87  static const float frameFindingThreshold_;
88 
89  // ---------- private member data ----------
90 
91  private:
92 
94  float time_;
95 
97  float error_;
98 
100  static float refTime_;
101 
103  float delay_;
104 
106  float height_;
107 
109  float base_;
110 
112  float peak_;
113 
116 
117 };
118 
119 // ---------- Inline methods ----------
120 
121 const float& ApvTimingAnalysis::time() const { return time_; }
122 const float& ApvTimingAnalysis::error() const { return error_; }
124 const float& ApvTimingAnalysis::refTime() const { return refTime_; }
125 const float& ApvTimingAnalysis::delay() const { return delay_; }
126 const float& ApvTimingAnalysis::height() const { return height_; }
127 const float& ApvTimingAnalysis::base() const { return base_; }
128 const float& ApvTimingAnalysis::peak() const { return peak_; }
130 
131 #endif // CondFormats_SiStripObjects_ApvTimingAnalysis_H
132 
133 
134 
virtual ~ApvTimingAnalysis()
const float & error() const
const float & refTime() const
Analysis for timing run using APV tick marks.
static const float tickMarkHeightThreshold_
const float & optimumSamplingPoint() const
const float & base() const
void addErrorCode(const std::string &error)
virtual void addErrorCode(const std::string &error)
const float & peak() const
const float & time() const
const float & delay() const
void print(std::stringstream &, uint32_t not_used=0)
uint16_t frameFindingThreshold() const
static const float optimumSamplingPoint_
Abstract base for derived classes that provide analysis of commissioning histograms.
Analysis for timing run using APV tick marks.
static const float frameFindingThreshold_
const float & height() const
bool foundTickMark() const