StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEStructDstReader.h
1 /**********************************************************************
2  *
3  * $Id: StEStructDstReader.h,v 1.3 2012/11/16 21:19:06 prindle Exp $
4  *
5  * Author: Jeff Porter
6  *
7  **********************************************************************
8  *
9  * Description: Reader class using the StEStructEventMaker
10  *
11  ***********************************************************************/
12 #ifndef __STESTRUCTDSTREADER__H
13 #define __STESTRUCTDSTREADER__H
14 
15 #include "StEStructEventReader.h"
16 
18 class StEStructEventCuts;
19 class StEStructTrackCuts;
20 
22 
23  StEStructEventMaker* mMaker;
24 
25  bool mInChain;
26  bool mAmDone;
27  int mnumTracks;
28 
29  bool checkEvent(StEStructEvent* e);
30  int getNumberOfTracks(StEStructEvent* e);
31 
32 public:
33 
35  StEStructDstReader(StEStructEventMaker* maker, StEStructEventCuts* ecuts, StEStructTrackCuts* tcuts, bool inChain=true);
36  virtual ~StEStructDstReader();
37 
38 
39  void setEventMaker(StEStructEventMaker* eventMaker, bool inChain=true);
40  bool hasMaker();
41 
42  virtual StEStructEvent* next();
43  virtual bool done();
44 
45  ClassDef(StEStructDstReader,1)
46 
47 };
48 
49 inline bool StEStructDstReader::done(){ return mAmDone; };
50 
51 #endif
52 
53 /***********************************************************************
54  *
55  * $Log: StEStructDstReader.h,v $
56  * Revision 1.3 2012/11/16 21:19:06 prindle
57  * Moved EventCuts, TrackCuts to EventReader. Affects most readers.
58  * Added support to write and read EStructEvents.
59  * Cuts: 3D histo support, switch to control filling of histogram for reading EStructEvents
60  * EventCuts: A few new cuts
61  * MuDstReader: Add 2D to some histograms, treat ToFCut, PrimaryCuts, VertexRadius histograms like other cut histograms.
62  * QAHists: Add refMult
63  * TrackCuts: Add some hijing cuts.
64  *
65  * Revision 1.2 2006/02/22 22:03:15 prindle
66  * Removed all references to multRef
67  *
68  * Revision 1.1 2003/10/15 18:20:32 porter
69  * initial check in of Estruct Analysis maker codes.
70  *
71  *
72  *********************************************************************/
73 
74 
75 
76