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
int fNum_samp_bef_max
Definition: TPNFit.h:11
double fv3[50]
Definition: TPNFit.h:16
double getTimax()
Definition: TPNFit.h:32
void init(int, int, int)
Definition: TPNFit.cc:24
int fNum_samp_after_max
Definition: TPNFit.h:12
double timeatmax
Definition: TPNFit.h:18
int fNsamples
Definition: TPNFit.h:10
double getAmpl()
Definition: TPNFit.h:31
double t[50]
Definition: TPNFit.h:15
#define NMAXSAMP2
Definition: TPNFit.h:6
TPNFit()
Definition: TPNFit.cc:15
double fv2[50]
Definition: TPNFit.h:16
double val[50]
Definition: TPNFit.h:15
double fv1[50]
Definition: TPNFit.h:16
int lastsample
Definition: TPNFit.h:14
Definition: TPNFit.h:8
int firstsample
Definition: TPNFit.h:14
double doFit(int, double *)
Definition: TPNFit.cc:39
~TPNFit() override
Definition: TPNFit.cc:22
double ampl
Definition: TPNFit.h:17