Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:24

0001 
0002 #ifndef __LASPEAKFINDER_H
0003 #define __LASPEAKFINDER_H
0004 
0005 #include <utility>
0006 #include <cmath>
0007 #include <iostream>
0008 
0009 #include <TH1.h>
0010 #include <TF1.h>
0011 
0012 #include "Alignment/LaserAlignment/interface/LASModuleProfile.h"
0013 
0014 ///
0015 /// class for fitting laser peaks
0016 /// in a LASModuleProfile;
0017 /// (will replace BeamProfileFitter)
0018 ///
0019 class LASPeakFinder {
0020 public:
0021   LASPeakFinder();
0022   bool FindPeakIn(const LASModuleProfile&, std::pair<double, double>&, TH1D*, const double);
0023   void SetAmplitudeThreshold(double);
0024 
0025 private:
0026   double amplitudeThreshold;
0027 };
0028 
0029 #endif