StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StFgtPool
StFgtTimeShapeMaker
StFgtTimeShapeMaker.h
1
6
/***************************************************************************
7
*
8
* Author: Len K. Eun, Jan 2012
9
*
10
***************************************************************************
11
*
12
* Description:
13
*
14
***************************************************************************
15
*
16
*
17
*
18
**************************************************************************/
19
20
#ifndef _ST_FGT_TIMESHAPE_MAKER_
21
#define _ST_FGT_TIMESHAPE_MAKER_
22
23
#include <string>
24
#include <TF1.h>
25
#include <TH1F.h>
26
#include <TH2F.h>
27
#include <TFile.h>
28
#include <TTree.h>
29
#include <TCanvas.h>
30
#include "StMaker.h"
31
32
class
StFgtDbMaker
;
33
class
StFgtDb
;
34
class
StFgtCollection
;
35
36
class
StFgtTimeShapeMaker
:
public
StMaker
{
37
public
:
38
// constructors
39
StFgtTimeShapeMaker
(
const
Char_t* name =
"FgtTimeShapeMaker"
,
const
Char_t* dbMkrName =
""
);
40
41
// default OK
42
// StFgtTimeShapeMaker(const StFgtTimeShapeMaker&);
43
44
// equals operator -- default OK
45
// StFgtTimeShapeMaker& operator=(const StFgtTimeShapeMaker&);
46
47
// deconstructor
48
virtual
~
StFgtTimeShapeMaker
();
49
50
Int_t Init();
51
Int_t
Make
();
52
Int_t
Finish
();
53
54
Int_t InitTree();
55
void
FitFunc();
56
void
InitFX();
57
void
InitFX(Float_t tau);
58
59
TString fname;
60
Int_t fitThresh;
61
Int_t plotThresh;
62
Bool_t fixTau;
63
Int_t Ntimebin;
64
Int_t pedSelect;
65
66
protected
:
67
struct
MyFunc
;
68
69
private
:
70
friend
class
StFgtStatusMaker
;
71
72
std::string mDbMkrName;
73
StFgtDbMaker
* mFgtDbMkr;;
74
StFgtCollection
* mFgtCollectionPtr;
75
76
TH1F* hh;
77
78
TFile* fFgt;
79
TTree* tFgt;
80
81
Int_t iEvt;
82
Int_t rdo;
83
Int_t arm;
84
Int_t apv;
85
Int_t chn;
86
Short_t disk;
87
Short_t quad;
88
Short_t strip;
89
Short_t stat;
90
Double_t ordinate;
91
Double_t lowerSpan;
92
Double_t upperSpan;
93
Char_t layer;
94
Double_t ped;
95
Double_t pedSig;
96
Int_t adc[7];
97
Int_t adcmax;
98
Int_t mmax;
99
Int_t mmin;
100
Float_t chi2;
101
Float_t fmax;
102
Float_t norm;
103
Float_t tau;
104
Float_t t0;
105
Float_t beta;
106
Float_t offset;
107
Int_t errCode;
108
109
TF1* FX;
110
TF1* fs;
111
112
TH1F* hGood[120];
113
TH1F* hBad[120];
114
TF1* fGood[120];
115
TF1* fBad[120];
116
Int_t igoodCnt;
117
Int_t ibadCnt;
118
119
TH1F* htau;
120
121
ClassDef(
StFgtTimeShapeMaker
,1);
122
123
};
124
125
126
#endif
StFgtDb
Definition:
StFgtDb.h:22
StFgtTimeShapeMaker::MyFunc
Definition:
StFgtTimeShapeMaker.cxx:359
StMaker
Definition:
StMaker.h:57
StFgtCollection
Definition:
StFgtCollection.h:31
StFgtTimeShapeMaker::Make
Int_t Make()
Definition:
StFgtTimeShapeMaker.cxx:134
StFgtDbMaker
Definition:
StFgtDbMaker.h:18
StFgtStatusMaker
Definition:
StFgtStatusMaker.h:50
StFgtTimeShapeMaker::Finish
Int_t Finish()
Definition:
StFgtTimeShapeMaker.cxx:311
StFgtTimeShapeMaker
Definition:
StFgtTimeShapeMaker.h:36
Generated by
1.8.5