CMS 3D CMS Logo

TotemTimingConversions.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  * Filip Dej
8  *
9  ****************************************************************************/
10 
11 #ifndef RecoCTPPS_TotemRPLocal_TotemTimingConversions
12 #define RecoCTPPS_TotemRPLocal_TotemTimingConversions
13 
15 
18 
19 #include <string>
20 #include <vector>
21 
23 {
24  public:
25  TotemTimingConversions(bool mergeTimePeaks, const PPSTimingCalibration& calibration);
26 
27  float timeOfFirstSample(const TotemTimingDigi& digi) const;
28  float triggerTime(const TotemTimingDigi& digi) const;
29  float timePrecision(const TotemTimingDigi& digi) const;
30  std::vector<float> timeSamples(const TotemTimingDigi& digi) const;
31  std::vector<float> voltSamples(const TotemTimingDigi& digi) const;
32 
33  private:
34  static constexpr float SAMPIC_SAMPLING_PERIOD_NS = 1. / 7.695;
35  static constexpr float SAMPIC_ADC_V = 1. / 256;
39  static constexpr unsigned long CELL0_MASK = 0xfffffff000;
40 
44 };
45 
46 #endif
47 
static constexpr unsigned long CELL0_MASK
std::vector< float > voltSamples(const TotemTimingDigi &digi) const
reco::FormulaEvaluator calibrationFunction_
static constexpr float SAMPIC_SAMPLING_PERIOD_NS
static constexpr float SAMPIC_ADC_V
float triggerTime(const TotemTimingDigi &digi) const
TotemTimingConversions(bool mergeTimePeaks, const PPSTimingCalibration &calibration)
static constexpr int SAMPIC_DEFAULT_OFFSET
static constexpr int SAMPIC_MAX_NUMBER_OF_SAMPLES
float timePrecision(const TotemTimingDigi &digi) const
float timeOfFirstSample(const TotemTimingDigi &digi) const
std::vector< float > timeSamples(const TotemTimingDigi &digi) const
PPSTimingCalibration calibration_
static constexpr int ACCEPTED_TIME_RADIUS
#define constexpr