CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoLocalMuon/CSCRecHitD/src/CSCFindPeakTime.h

Go to the documentation of this file.
00001 #ifndef CSCRecHitD_CSCFindPeakTime_h
00002 #define CSCRecHitD_CSCFindPeakTime_h
00003 
00009 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00010 #include <vector>
00011 
00012 
00013 class CSCFindPeakTime
00014 {
00015  public:
00016   
00017   explicit CSCFindPeakTime( const edm::ParameterSet& ps );
00018   
00019   ~CSCFindPeakTime(){}; 
00020   
00022   float peakTime( int tmax, const float* adc, float t_peak);
00023 
00025   float averageTime( int tmax, const float* adc );
00026 
00028   float parabolaFitTime( int tmax, const float* adc );
00029 
00046   float fivePoleFitTime( int tmax, const float* adc, float t_peak ); 
00047 
00051   //@@ Needs work and interface fixes!!
00052   void fivePoleFitCharge( int tmax, const float* adc, const float& t_zero, const float& t_peak, std::vector<float>& adcsFit );
00053   
00054  private:
00055 
00056   bool useAverageTime;
00057   bool useParabolaFit;
00058   bool useFivePoleFit;  
00059   
00060 };
00061 
00062 #endif