Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:57:47

0001 #ifndef TPNFit_H
0002 #define TPNFit_H
0003 
0004 #include "TObject.h"
0005 
0006 class TPNFit : public TObject {
0007 public:
0008   static constexpr int NMAXSAMP2 = 50;
0009 
0010 private:
0011   int fNsamples;
0012   int fNum_samp_bef_max;
0013   int fNum_samp_after_max;
0014 
0015   int firstsample, lastsample;
0016   double t[NMAXSAMP2], val[NMAXSAMP2];
0017   double fv1[NMAXSAMP2], fv2[NMAXSAMP2], fv3[NMAXSAMP2];
0018   double ampl;
0019   double timeatmax;
0020 
0021 public:
0022   // Default Constructor, mainly for Root
0023   TPNFit();
0024 
0025   // Destructor: Does nothing
0026   ~TPNFit() override;
0027 
0028   // Initialize
0029   void init(int, int, int);
0030 
0031   double doFit(int, double *);
0032   double getAmpl() { return ampl; }
0033   double getTimax() { return timeatmax; }
0034 
0035   ClassDefOverride(TPNFit, 0)
0036 };
0037 
0038 #endif