StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEmcMicroUtil.h
1 
7 #ifndef StEmcMicroUtil_h
8 #define StEmcMicroUtil_h
9 #include "TObject.h"
10 
11 #define MAXV0TRACKS 1000
12 
13 class StEvent;
14 class StTrack;
15 class StEmcMicroEvent;
16 class StEmcMicroTrack;
17 class StEmcGeom;
18 class StEmcFilter;
19 
20 class StEmcMicroUtil : public TObject
21 {
22  protected:
23  StEvent *mStEvent;
24  StEmcMicroEvent *mMicroEvent;
25  StEmcGeom *mGeo[4];
26  StEmcFilter *mPFilter;
27  StEmcFilter *mGFilter;
28  StTrack *mV0Tracks[MAXV0TRACKS];
29  Int_t mNV0Tracks;
30 
31  Bool_t mDoSavePrimaries;
32  Bool_t mDoSaveGlobals;
33  Bool_t mDoSaveEmc;
34  Bool_t mDoSaveFpd;
35  Bool_t mDoSaveV0;
36 
37  void clearGarbage();
38 
39 
40  public:
42  ~StEmcMicroUtil();
43 
44  void processStEvent();
45  void processMicroEvent();
46 
47  void processStEventInfo();
48  void processStEventTracks();
49  void processStEventV0();
50  void processStEventEMC();
51  void processStEventFPD();
52 
53  Float_t calcDcaSigned(StTrack*);
54 
55  void processMicroEventInfo();
57  void processMicroEventV0();
58  void processMicroEventEMC();
59 
62 
65 
66  void setPrimaryFilter(StEmcFilter *f) { mPFilter = f; }
67  void setGlobalFilter(StEmcFilter *f) { mGFilter = f; }
68 
69  void setSavePrimaries(Bool_t a) { mDoSavePrimaries = a; }
70  void setSaveGlobals(Bool_t a) { mDoSaveGlobals = a; }
71  void setSaveEmc(Bool_t a) { mDoSaveEmc = a; }
72  void setSaveFpd(Bool_t a) { mDoSaveFpd = a; }
73  void setSaveV0(Bool_t a) { mDoSaveV0 = a; }
74 
75 
76 
77  ClassDef(StEmcMicroUtil,1)
78 };
79 
80 #endif
void setSavePrimaries(Bool_t a)
Save or don't primary tracks. Default is kTRUE. Track selection is done by PrimaryFilter.
void processMicroEvent()
Process StEmcMicroEvent and convert it on StEvent.
void setSaveEmc(Bool_t a)
Save or don't EMC data. Default is kTRUE.
void processMicroEventInfo()
Process StEmcMicroEvent general info.
void processMicroEventEMC()
Process StEmcMicroEvent EMC collection.
void processStEventEMC()
Process StEvent EMC collection.
void processStEventTracks()
Process StEvent tracks.
void processMicroEventV0()
Process StEmcMicroEvent V0.
void setSaveV0(Bool_t a)
Save or don't V0 data. Default is kFALSE.
StEvent * getStEvent(StEmcMicroEvent *)
Returns StEvent.
void processMicroEventTracks()
Process StEmcMicroEvent tracks.
void setSaveGlobals(Bool_t a)
Save or don't global tracks. Default is kTRUE. Track selection is done by GlobalFilter.
void processStEventV0()
Process StEvent V0.
void processStEventFPD()
Process StEvent FPD collection.
void setSaveFpd(Bool_t a)
Save or don't FPD data. Default is kFALSE.
StEmcMicroEvent * getMicroEvent(StEvent *)
Returns StEmcMicroEvent.
void processStEventInfo()
Process StEvent general info.
void createTrack(StTrack *, StEmcMicroTrack *)
Creates StEmcMicroTrack from StTrack.
Float_t calcDcaSigned(StTrack *)
Calcs DCA signed.
void processStEvent()
Process StEvent and convert it on StEmcMicroEvent.