CMS 3D CMS Logo

TotemTimingRecHitProducerAlgorithm.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_TotemTimingRecHitProducerAlgorithm
11 #define RecoCTPPS_TotemRPLocal_TotemTimingRecHitProducerAlgorithm
12 
14 
16 
20 
23 
25 
26 #include <memory>
27 
29 public:
31 
34 
35 private:
37  float m, q, rms;
38  RegressionResults() : m(0.), q(0.), rms(0.) {}
39  };
40 
41  RegressionResults simplifiedLinearRegression(const std::vector<float>& time,
42  const std::vector<float>& data,
43  const unsigned int start_at,
44  const unsigned int points) const;
45 
46  int fastDiscriminator(const std::vector<float>& data, float threshold) const;
47 
48  float constantFractionDiscriminator(const std::vector<float>& time, const std::vector<float>& data);
49 
50  static constexpr float SINC_COEFFICIENT = M_PI * 2 / 7.8;
51 
52  std::unique_ptr<TotemTimingConversions> sampicConversions_;
53 
57  double cfdFraction_;
60  double hysteresis_;
62 };
63 
64 #endif
float constantFractionDiscriminator(const std::vector< float > &time, const std::vector< float > &data)
int fastDiscriminator(const std::vector< float > &data, float threshold) const
TotemTimingRecHitProducerAlgorithm(const edm::ParameterSet &conf)
void build(const CTPPSGeometry &, const edm::DetSetVector< TotemTimingDigi > &, edm::DetSetVector< TotemTimingRecHit > &)
RegressionResults simplifiedLinearRegression(const std::vector< float > &time, const std::vector< float > &data, const unsigned int start_at, const unsigned int points) const
#define M_PI
The manager class for TOTEM RP geometry.
Definition: CTPPSGeometry.h:33
std::unique_ptr< TotemTimingConversions > sampicConversions_
void setCalibration(const PPSTimingCalibration &)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
#define constexpr