CMS 3D CMS Logo

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