CMS 3D CMS Logo

TotemTimingRecHit.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * This is a part of CTPPS offline software.
4  * Authors:
5  * Laurent Forthomme (laurent.forthomme@cern.ch)
6  * Nicola Minafra (nicola.minafra@cern.ch)
7  *
8  ****************************************************************************/
9 
10 #ifndef DataFormats_CTPPSReco_TotemTimingRecHit
11 #define DataFormats_CTPPSReco_TotemTimingRecHit
12 
14 
18 {
19  public:
21  enum { NO_T_AVAILABLE = -100 };
22 
26  mode_( NOT_SET ) {}
27 
28  TotemTimingRecHit( float x, float xWidth, float y, float yWidth, float z, float zWidth,
29  float t, float sampicThresholdTime, float tPrecision,
30  float amplitude, float baselineRMS,
32  CTPPSTimingRecHit( x, xWidth, y, yWidth, z, zWidth, t ),
33  sampicThresholdTime_( sampicThresholdTime ), tPrecision_( tPrecision ),
34  amplitude_( amplitude ), baselineRMS_( baselineRMS ), mode_( mode ) {}
35 
36  inline void setSampicThresholdTime( float stt ) { sampicThresholdTime_ = stt; }
37  inline float getSampicThresholdTime() const { return sampicThresholdTime_; }
38 
39  inline void setTPrecision( float tPrecision ) { tPrecision_ = tPrecision; }
40  inline float getTPrecision() const { return tPrecision_; }
41 
42  inline void setAmplitude( float amplitude ) { amplitude_ = amplitude; }
43  inline float getAmplitude() const { return amplitude_; }
44 
45  inline void setBaselineRMS( float brms ) { baselineRMS_ = brms; }
46  inline float getBaselineRMS() const { return baselineRMS_; }
47 
48  inline TimingAlgorithm getTimingAlgorithm() const { return mode_; }
49 
50  private:
52  float amplitude_;
53  float baselineRMS_;
55 };
56 
57 #endif
TimingAlgorithm mode_
Reconstructed hit in timing detectors.
float getTPrecision() const
void setSampicThresholdTime(float stt)
void setBaselineRMS(float brms)
void setTPrecision(float tPrecision)
float getBaselineRMS() const
float getAmplitude() const
TimingAlgorithm getTimingAlgorithm() const
void setAmplitude(float amplitude)
TotemTimingRecHit(float x, float xWidth, float y, float yWidth, float z, float zWidth, float t, float sampicThresholdTime, float tPrecision, float amplitude, float baselineRMS, TimingAlgorithm mode)
float getSampicThresholdTime() const