Last change
on this file since 14472 was 14472, checked in by Jens Buss, 12 years ago |
class for pulse fit modell
|
-
Property svn:executable
set to
*
|
File size:
2.0 KB
|
Line | |
---|
1 | #ifndef Pulse_H
|
---|
2 | #define Pulse_H
|
---|
3 |
|
---|
4 | // SYSTEM INCLUDES
|
---|
5 | //
|
---|
6 |
|
---|
7 | // PROJECT INCLUDES
|
---|
8 | #include <TROOT.h>
|
---|
9 | #include <TMath.h>
|
---|
10 | #include <TProfile.h>
|
---|
11 | #include <TH2F.h>
|
---|
12 | #include <TH1I.h>
|
---|
13 | #include <TH1F.h>
|
---|
14 | #include <TF1.h>
|
---|
15 | #include <TString.h>
|
---|
16 | #include <TSystem.h>
|
---|
17 | //
|
---|
18 |
|
---|
19 | // LOCAL INCLUDES
|
---|
20 | //
|
---|
21 |
|
---|
22 | // FORWARD REFERENCES
|
---|
23 | //
|
---|
24 |
|
---|
25 | /** Assignment operator.
|
---|
26 | * @todo do me
|
---|
27 | * @warning not implemented
|
---|
28 | * @param from THe value to assign to this object.
|
---|
29 | *
|
---|
30 | * @return A reference to this object.
|
---|
31 | */
|
---|
32 |
|
---|
33 | /**
|
---|
34 | */
|
---|
35 | int Heaviside(double val);
|
---|
36 | double shapeFunc( double* t, double* par);
|
---|
37 | double shapeFunc2( double* t, double* par);
|
---|
38 |
|
---|
39 | class Pulse
|
---|
40 | {
|
---|
41 | public:
|
---|
42 | // LIFECYCLE
|
---|
43 |
|
---|
44 | /** Default constructor.
|
---|
45 | */
|
---|
46 | Pulse( );
|
---|
47 | Pulse(TH1* histo );
|
---|
48 | Pulse(TH1* histo, TString options );
|
---|
49 |
|
---|
50 | // /** Copy constructor.
|
---|
51 | // *
|
---|
52 | // * @param from The value to copy to this object.
|
---|
53 | // */
|
---|
54 | /** Destructor.
|
---|
55 | */
|
---|
56 | ~Pulse();
|
---|
57 |
|
---|
58 |
|
---|
59 | // OPERATORS
|
---|
60 |
|
---|
61 | // /** Assignment operator.
|
---|
62 | // *
|
---|
63 | // * @param from THe value to assign to this object.
|
---|
64 | // *
|
---|
65 | // * @return A reference to this object.
|
---|
66 | // */
|
---|
67 | // XX& operator=(const XX& from);
|
---|
68 |
|
---|
69 | // OPERATIONS
|
---|
70 | // double shapeFunc( double* x, double* par);
|
---|
71 | void Fit(TString fitName, TString fitOptions );
|
---|
72 | void Fit(TString fitName, TString fitOptions, int fitMin, int fitMax);
|
---|
73 | void Fit2(TString fitName, TString fitOptions );
|
---|
74 | void Fit2(TString fitName, TString fitOptions, int fitMin, int fitMax);
|
---|
75 |
|
---|
76 | // ACCESS
|
---|
77 | double GetBsl();
|
---|
78 | double GetHeight();
|
---|
79 | double GetAvalancheStart();
|
---|
80 | double GetAvalancheEnd();
|
---|
81 | double GetTimeConstRising();
|
---|
82 | double GetTimeConstFalling();
|
---|
83 | double GetIntegral();
|
---|
84 | double GetAmplitude();
|
---|
85 | int GetPE();
|
---|
86 |
|
---|
87 | // INQUIRY
|
---|
88 | private:
|
---|
89 | TH1* mHisto;
|
---|
90 | TString mOptions;
|
---|
91 | double mBsl;
|
---|
92 | double mHeight;
|
---|
93 | double mStart;
|
---|
94 | double mRising;
|
---|
95 | double mTauRising;
|
---|
96 | double mTauFalling;
|
---|
97 | double mIntegral;
|
---|
98 | double mAmplitude;
|
---|
99 | int mPhE;
|
---|
100 |
|
---|
101 | };
|
---|
102 |
|
---|
103 | #endif // Pulse_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.