CMS 3D CMS Logo

ApvTimingAnalysis.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiStripObjects_ApvTimingAnalysis_H
2 #define CondFormats_SiStripObjects_ApvTimingAnalysis_H
3 
6 #include <sstream>
7 #include <vector>
8 #include <cstdint>
9 
16 public:
17  // ---------- con(de)structors ----------
18 
19  ApvTimingAnalysis(const uint32_t& key);
20 
22 
23  ~ApvTimingAnalysis() override { ; }
24 
25  friend class ApvTimingAlgorithm;
26 
27  // ---------- public interface ----------
28 
30  bool isValid() const override;
31 
33  bool foundTickMark() const;
34 
36  inline const float& time() const;
37 
39  inline const float& error() const;
40 
42  inline const float& optimumSamplingPoint() const;
43 
45  inline const float& refTime() const;
46 
48  void refTime(const float& time, const float& targetDelay = -1);
49 
51  inline const float& delay() const;
52 
54  inline const float& height() const;
55 
57  inline const float& base() const;
58 
60  inline const float& peak() const;
61 
63  uint16_t frameFindingThreshold() const;
64 
65  // ---------- misc ----------
66 
68  void print(std::stringstream&, uint32_t not_used = 0) override;
69 
71  inline void addErrorCode(const std::string& error) override;
72 
74  void reset() override;
75 
76  // ---------- public static data ----------
77 
79  static const float optimumSamplingPoint_;
80 
82  static const float tickMarkHeightThreshold_;
83 
85  static const float frameFindingThreshold_;
86 
87  // ---------- private member data ----------
88 
89 private:
91  float time_;
92 
94  float error_;
95 
97  static float refTime_;
98 
100  float delay_;
101 
103  float height_;
104 
106  float base_;
107 
109  float peak_;
110 
113 };
114 
115 // ---------- Inline methods ----------
116 
117 const float& ApvTimingAnalysis::time() const { return time_; }
118 const float& ApvTimingAnalysis::error() const { return error_; }
120 const float& ApvTimingAnalysis::refTime() const { return refTime_; }
121 const float& ApvTimingAnalysis::delay() const { return delay_; }
122 const float& ApvTimingAnalysis::height() const { return height_; }
123 const float& ApvTimingAnalysis::base() const { return base_; }
124 const float& ApvTimingAnalysis::peak() const { return peak_; }
126 
127 #endif // CondFormats_SiStripObjects_ApvTimingAnalysis_H
ApvTimingAnalysis::base
const float & base() const
Definition: ApvTimingAnalysis.h:123
CommissioningAnalysis.h
ApvTimingAnalysis::foundTickMark
bool foundTickMark() const
Definition: ApvTimingAnalysis.cc:133
ApvTimingAnalysis::height
const float & height() const
Definition: ApvTimingAnalysis.h:122
ApvTimingAnalysis::time_
float time_
Definition: ApvTimingAnalysis.h:91
ApvTimingAnalysis::~ApvTimingAnalysis
~ApvTimingAnalysis() override
Definition: ApvTimingAnalysis.h:23
CommissioningAnalysis::addErrorCode
virtual void addErrorCode(const std::string &error)
Definition: CommissioningAnalysis.h:148
ApvTimingAnalysis::peak_
float peak_
Definition: ApvTimingAnalysis.h:109
relativeConstraints.error
error
Definition: relativeConstraints.py:53
ApvTimingAnalysis::tickMarkHeightThreshold_
static const float tickMarkHeightThreshold_
Definition: ApvTimingAnalysis.h:82
ApvTimingAnalysis::error
const float & error() const
Definition: ApvTimingAnalysis.h:118
ApvTimingAnalysis::optimumSamplingPoint
const float & optimumSamplingPoint() const
Definition: ApvTimingAnalysis.h:119
ApvTimingAnalysis::base_
float base_
Definition: ApvTimingAnalysis.h:106
ApvTimingAnalysis::peak
const float & peak() const
Definition: ApvTimingAnalysis.h:124
ApvTimingAnalysis::delay
const float & delay() const
Definition: ApvTimingAnalysis.h:121
ApvTimingAnalysis::isValid
bool isValid() const override
Definition: ApvTimingAnalysis.cc:141
ApvTimingAnalysis::time
const float & time() const
Definition: ApvTimingAnalysis.h:117
ApvTimingAnalysis::addErrorCode
void addErrorCode(const std::string &error) override
Definition: ApvTimingAnalysis.h:125
ApvTimingAnalysis::synchronized_
bool synchronized_
Definition: ApvTimingAnalysis.h:112
SiStripConstants.h
ApvTimingAnalysis::print
void print(std::stringstream &, uint32_t not_used=0) override
Definition: ApvTimingAnalysis.cc:150
ApvTimingAnalysis::refTime
const float & refTime() const
Definition: ApvTimingAnalysis.h:120
ApvTimingAnalysis
Analysis for timing run using APV tick marks.
Definition: ApvTimingAnalysis.h:15
ApvTimingAlgorithm
Analysis for timing run using APV tick marks.
Definition: ApvTimingAlgorithm.h:16
ApvTimingAnalysis::ApvTimingAnalysis
ApvTimingAnalysis()
Definition: ApvTimingAnalysis.cc:44
ApvTimingAnalysis::optimumSamplingPoint_
static const float optimumSamplingPoint_
Definition: ApvTimingAnalysis.h:79
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CommissioningAnalysis
Abstract base for derived classes that provide analysis of commissioning histograms.
Definition: CommissioningAnalysis.h:18
ApvTimingAnalysis::refTime_
static float refTime_
Definition: ApvTimingAnalysis.h:97
ApvTimingAnalysis::frameFindingThreshold
uint16_t frameFindingThreshold() const
Definition: ApvTimingAnalysis.cc:121
ApvTimingAnalysis::error_
float error_
Definition: ApvTimingAnalysis.h:94
ApvTimingAnalysis::delay_
float delay_
Definition: ApvTimingAnalysis.h:100
ApvTimingAnalysis::height_
float height_
Definition: ApvTimingAnalysis.h:103
crabWrapper.key
key
Definition: crabWrapper.py:19
ApvTimingAnalysis::reset
void reset() override
Definition: ApvTimingAnalysis.cc:58
ApvTimingAnalysis::frameFindingThreshold_
static const float frameFindingThreshold_
Definition: ApvTimingAnalysis.h:85