CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CalibCalorimetry/EcalLaserAnalyzer/interface/TPNFit.h

Go to the documentation of this file.
00001 #ifndef TPNFit_H
00002 #define TPNFit_H
00003 
00004 #include "TObject.h"
00005 
00006 #define NMAXSAMP2 50
00007 
00008 class TPNFit: public TObject 
00009 {
00010 
00011  private:       
00012 
00013   int fNsamples ;
00014   int fNum_samp_bef_max;
00015   int fNum_samp_after_max;
00016 
00017   int firstsample,lastsample;
00018   double t[NMAXSAMP2],val[NMAXSAMP2];
00019   double fv1[NMAXSAMP2],fv2[NMAXSAMP2],fv3[NMAXSAMP2];
00020   double ampl;
00021   double timeatmax;
00022   
00023 
00024  public:
00025   // Default Constructor, mainly for Root
00026   TPNFit();
00027 
00028   // Destructor: Does nothing
00029   virtual ~TPNFit();
00030 
00031   // Initialize 
00032   void init(int,int,int);
00033 
00034   double doFit(int,double *);
00035   double getAmpl() {return ampl;}
00036   double getTimax() {return timeatmax;}
00037 
00038   //  ClassDef(TPNFit,1)
00039 };
00040 
00041 #endif
00042 
00043 
00044