test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCFindPeakTime.h
Go to the documentation of this file.
1 #ifndef CSCRecHitD_CSCFindPeakTime_h
2 #define CSCRecHitD_CSCFindPeakTime_h
3 
10 #include <vector>
11 
12 
14 {
15  public:
16 
17  explicit CSCFindPeakTime( const edm::ParameterSet& ps );
18 
20 
22  float peakTime( int tmax, const float* adc, float t_peak);
23 
25  float averageTime( int tmax, const float* adc );
26 
28  float parabolaFitTime( int tmax, const float* adc );
29 
46  float fivePoleFitTime( int tmax, const float* adc, float t_peak );
47 
51  //@@ Needs work and interface fixes!!
52  void fivePoleFitCharge( int tmax, const float* adc, const float& t_zero, const float& t_peak, std::vector<float>& adcsFit );
53 
54  private:
55 
59 
60 };
61 
62 #endif
int adc(sample_type sample)
get the ADC sample (12 bits)
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)
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.