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
StEStructPool
AnalysisMaker
StEStructEStructReader.h
1
/**********************************************************************
2
*
3
* $Id: StEStructEStructReader.h,v 1.1 2013/05/04 23:45:44 prindle Exp $
4
*
5
* Author: Jeff Porter
6
*
7
**********************************************************************
8
*
9
* Description: event reader class for EStruct format files.
10
* Real reading is done in macro.
11
*
12
***********************************************************************/
13
#ifndef __STESTRUCTESTRUCTEVENTREADER__H
14
#define __STESTRUCTESTRUCTEVENTREADER__H
15
16
#include "TH1F.h"
17
#include "TH2F.h"
18
#include "TH3F.h"
19
#include "StBTofHeader.h"
20
#include "StEStructEventReader.h"
21
#include "StEStructPool/Pileup/Pileup.h"
22
23
class
StEStructEventCuts
;
24
class
StEStructTrackCuts
;
25
class
StEStructTrack
;
26
27
28
class
StEStructEStructReader
:
public
StEStructEventReader
{
29
30
public
:
31
32
bool
mInChain;
33
bool
mAmDone;
34
bool
mUseGlobalTracks;
35
TFile *mFile;
36
int
miEvent;
37
TList *mkeyList;
38
int
mnEvents;
39
StEStructEvent
*mEventIn;
40
int
mPrimaryVertexId;
41
int
mNumGoodTracks;
42
int
mhasdEdxCuts;
43
int
mhasToFCuts;
44
int
mhasPrimaryCuts;
45
int
mhasVertexRadiusCuts;
46
TH3F* dEdxBetaBefore;
47
TH3F* dEdxBetaAfter;
48
TH2F* dEdxBefore;
49
TH2F* dEdxAfter;
50
TH2F* ToFBefore;
51
TH2F* ToFAfter;
52
TH2F* PrimaryBefore;
53
TH2F* PrimaryAfter;
54
TH2F* VRadiusBefore;
55
TH2F* VRadiusAfter;
56
57
Float_t mEta;
58
Float_t mPhi;
59
60
Pileup
*mPileup;
61
62
StEStructEStructReader
();
63
StEStructEStructReader
(
char
* estructFileName,
64
StEStructEventCuts
* ecuts,
65
StEStructTrackCuts
* tcuts);
66
virtual
~
StEStructEStructReader
();
67
68
virtual
StEStructEvent
* next();
69
virtual
bool
done();
70
71
void
setEventCuts(
StEStructEventCuts
* cuts);
72
void
setTrackCuts(
StEStructTrackCuts
* cuts);
73
StEStructEvent
* fillEvent();
74
bool
fillTracks(
StEStructEvent
* estructEvent);
75
bool
isTrackGood(
StEStructTrack
*
track
);
76
bool
isTrackGoodToUse(
StEStructTrack
* track);
77
int
countGoodTracks(
int
*ndEdx,
int
*nToF);
78
void
fillEStructTrack(
StEStructTrack
* destTrack,
StEStructTrack
* srcTrack);
79
80
ClassDef(
StEStructEStructReader
,1)
81
82
};
83
84
inline
bool
StEStructEStructReader::done(){
return
mAmDone; };
85
86
#endif
87
88
/***********************************************************************
89
*
90
* $Log: StEStructEStructReader.h,v $
91
* Revision 1.1 2013/05/04 23:45:44 prindle
92
* Code to read EStruct format files. Modified from StEStructMuDstReader.
93
*
94
*
95
* Revision 1.0 2013/05/02 18:20:32 prindle
96
* Copy of StEStructMuDstReader specialized for reading EStruct format files..
97
*
98
*********************************************************************/
StEStructEvent
Definition:
StEStructEvent.h:25
StEStructTrack
Definition:
StEStructTrack.h:26
track
Definition:
MapTableTest.C:38
StEStructTrackCuts
Definition:
StEStructTrackCuts.h:21
StEStructEventReader
Definition:
StEStructEventReader.h:24
StEStructEventCuts
Definition:
StEStructEventCuts.h:26
StEStructEStructReader
Definition:
StEStructEStructReader.h:28
Pileup
Definition:
Pileup.h:79
Generated by
1.8.5