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
ecalMGPA::adc
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
Definition: EcalMGPASample.h:11
CSCFindPeakTime::peakTime
float peakTime(int tmax, const float *adc, float t_peak)
Basic result of this class.
Definition: CSCFindPeakTime.cc:17
CSCFindPeakTime::~CSCFindPeakTime
~CSCFindPeakTime()
Definition: CSCFindPeakTime.h:16
CSCFindPeakTime::CSCFindPeakTime
CSCFindPeakTime(const edm::ParameterSet &ps)
Definition: CSCFindPeakTime.cc:8
tmax
static const double tmax[3]
Definition: CastorTimeSlew.cc:7
CSCFindPeakTime::useParabolaFit
bool useParabolaFit
Definition: CSCFindPeakTime.h:54
CSCFindPeakTime::parabolaFitTime
float parabolaFitTime(int tmax, const float *adc)
Parabolic fit to three time bins centered on maximum.
Definition: CSCFindPeakTime.cc:40
CSCFindPeakTime::fivePoleFitCharge
void fivePoleFitCharge(int tmax, const float *adc, const float &t_zero, const float &t_peak, std::vector< float > &adcsFit)
Definition: CSCFindPeakTime.cc:147
CSCFindPeakTime::useFivePoleFit
bool useFivePoleFit
Definition: CSCFindPeakTime.h:55
CSCFindPeakTime::fivePoleFitTime
float fivePoleFitTime(int tmax, const float *adc, float t_peak)
Definition: CSCFindPeakTime.cc:64
CSCFindPeakTime::useAverageTime
bool useAverageTime
Definition: CSCFindPeakTime.h:53
edm::ParameterSet
Definition: ParameterSet.h:36
CSCFindPeakTime
Definition: CSCFindPeakTime.h:12
CSCFindPeakTime::averageTime
float averageTime(int tmax, const float *adc)
Weighted average of time bins.
Definition: CSCFindPeakTime.cc:30
ParameterSet.h