CMS 3D CMS Logo

TPNFit.h
Go to the documentation of this file.
1 #ifndef TPNFit_H
2 #define TPNFit_H
3 
4 #include "TObject.h"
5 
6 #define NMAXSAMP2 50
7 
8 class TPNFit : public TObject {
9 private:
10  int fNsamples;
13 
15  double t[NMAXSAMP2], val[NMAXSAMP2];
17  double ampl;
18  double timeatmax;
19 
20 public:
21  // Default Constructor, mainly for Root
22  TPNFit();
23 
24  // Destructor: Does nothing
25  ~TPNFit() override;
26 
27  // Initialize
28  void init(int, int, int);
29 
30  double doFit(int, double *);
31  double getAmpl() { return ampl; }
32  double getTimax() { return timeatmax; }
33 
34  ClassDefOverride(TPNFit, 0)
35 };
36 
37 #endif
TPNFit::t
double t[50]
Definition: TPNFit.h:15
TPNFit::ampl
double ampl
Definition: TPNFit.h:17
NMAXSAMP2
#define NMAXSAMP2
Definition: TPNFit.h:6
TPNFit
Definition: TPNFit.h:8
TPNFit::fNum_samp_after_max
int fNum_samp_after_max
Definition: TPNFit.h:12
TPNFit::fv1
double fv1[50]
Definition: TPNFit.h:16
TPNFit::timeatmax
double timeatmax
Definition: TPNFit.h:18
TPNFit::val
double val[50]
Definition: TPNFit.h:15
TPNFit::~TPNFit
~TPNFit() override
Definition: TPNFit.cc:22
TPNFit::fNum_samp_bef_max
int fNum_samp_bef_max
Definition: TPNFit.h:11
TPNFit::TPNFit
TPNFit()
Definition: TPNFit.cc:15
TPNFit::fv2
double fv2[50]
Definition: TPNFit.h:16
TPNFit::getAmpl
double getAmpl()
Definition: TPNFit.h:31
TPNFit::init
void init(int, int, int)
Definition: TPNFit.cc:24
TPNFit::lastsample
int lastsample
Definition: TPNFit.h:14
TPNFit::getTimax
double getTimax()
Definition: TPNFit.h:32
TPNFit::firstsample
int firstsample
Definition: TPNFit.h:14
TPNFit::doFit
double doFit(int, double *)
Definition: TPNFit.cc:39
TPNFit::fNsamples
int fNsamples
Definition: TPNFit.h:10
TPNFit::fv3
double fv3[50]
Definition: TPNFit.h:16