StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEStructGevsim.h
1 /**********************************************************************
2  * Author: Mike Daugherity
3  *
4  **********************************************************************
5  *
6  * Description: EStructEventReader wrapper for Gevsim event generator
7  *
8  **********************************************************************/
9 #ifndef __STESTRUCTGEVSIM__H
10 #define __STESTRUCTGEVSIM__H
11 
12 #include "StEStructPool/AnalysisMaker/StEStructEventReader.h"
13 
14 #include "TROOT.h"
15 #include "StEStructPool/Gevsim/TGeVSim.h"
16 
17 class StEStructEventCuts;
18 class StEStructTrackCuts;
19 
21 
22  TGeVSim *mgevsim;
23  int meventCount;
24  int meventsToDo;
25  bool mAmDone;
26  int mrefMult;
27 
28  TClonesArray *mtrackArray;
29 
30  void fillTracks(StEStructEvent* estructEvent);
31 
32  public:
33 
35  StEStructGevsim(int nevents, TGeVSim* gevsim, StEStructEventCuts* ecuts, StEStructTrackCuts* tcuts);
36 
37  virtual ~StEStructGevsim(){};
38  bool hasGenerator();
39 
40  virtual StEStructEvent* next();
41  virtual bool done();
42  virtual StEStructEvent* generateEvent();
43 
44  ClassDef(StEStructGevsim,1)
45 };
46 
47 
48 inline bool StEStructGevsim::done(){ return mAmDone; };
49 
50 
51 #endif
52