CMS 3D CMS Logo

CSCFindPeakTime.h
Go to the documentation of this file.
1 #ifndef CSCRecHitD_CSCFindPeakTime_h
2 #define CSCRecHitD_CSCFindPeakTime_h
3 
10 #include <vector>
11 
13 public:
14  explicit CSCFindPeakTime(const edm::ParameterSet& ps);
15 
17 
19  float peakTime(int tmax, const float* adc, float t_peak);
20 
22  float averageTime(int tmax, const float* adc);
23 
25  float parabolaFitTime(int tmax, const float* adc);
26 
43  float fivePoleFitTime(int tmax, const float* adc, float t_peak);
44 
48  //@@ Needs work and interface fixes!!
49  void fivePoleFitCharge(
50  int tmax, const float* adc, const float& t_zero, const float& t_peak, std::vector<float>& adcsFit);
51 
52 private:
56 };
57 
58 #endif
float parabolaFitTime(int tmax, const float *adc)
Parabolic fit to three time bins centered on maximum.
float fivePoleFitTime(int tmax, const float *adc, float t_peak)
void fivePoleFitCharge(int tmax, const float *adc, const float &t_zero, const float &t_peak, std::vector< float > &adcsFit)
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
static const double tmax[3]
CSCFindPeakTime(const edm::ParameterSet &ps)
float averageTime(int tmax, const float *adc)
Weighted average of time bins.
float peakTime(int tmax, const float *adc, float t_peak)
Basic result of this class.