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
7  *
8  ****************************************************************************/
9 
10 #ifndef RecoCTPPS_TotemRPLocal_TotemTimingConversions
11 #define RecoCTPPS_TotemRPLocal_TotemTimingConversions
12 
13 #include <string>
14 #include <vector>
15 
17 
19 public:
21  TotemTimingConversions(const std::string& calibrationFile);
22 
23  void openCalibrationFile(const std::string& calibrationFile="/dev/null");
24 
25  const float getTimeOfFirstSample(const TotemTimingDigi& digi) const;
26 
27  const float getTriggerTime(const TotemTimingDigi& digi) const;
28 
29  std::vector<float> getTimeSamples(const TotemTimingDigi& digi) const;
30 
31  std::vector<float> getVoltSamples(const TotemTimingDigi& digi) const;
32 
33 private:
34  static const float SAMPIC_SAMPLING_PERIOD_NS;
35  static const float SAMPIC_ADC_V;
36  static const int SAMPIC_MAX_NUMBER_OF_SAMPLES;
37  static const int SAMPIC_DEFAULT_OFFSET;
38 
41 
42 };
43 
44 #endif
static const float SAMPIC_ADC_V
std::vector< float > getTimeSamples(const TotemTimingDigi &digi) const
std::vector< float > getVoltSamples(const TotemTimingDigi &digi) const
const float getTimeOfFirstSample(const TotemTimingDigi &digi) const
void openCalibrationFile(const std::string &calibrationFile="/dev/null")
static const int SAMPIC_DEFAULT_OFFSET
const float getTriggerTime(const TotemTimingDigi &digi) const
static const float SAMPIC_SAMPLING_PERIOD_NS
static const int SAMPIC_MAX_NUMBER_OF_SAMPLES