StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Stl3RawReaderMaker.h
1 //
2 // $Id: Stl3RawReaderMaker.h,v 1.10 2014/08/06 11:44:00 jeromel Exp $
3 //
4 // $Log: Stl3RawReaderMaker.h,v $
5 // Revision 1.10 2014/08/06 11:44:00 jeromel
6 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
7 //
8 // Revision 1.9 2002/05/16 02:39:25 struck
9 // switch reco/embedding mode (m_Mode=0/1).
10 // Embedding mode skips L3 biased events (return kStErr).
11 // Reco mode fills StEvent as before.
12 //
13 // Revision 1.8 2002/02/13 22:36:32 struck
14 // major code clean-up for Stl3RawReaderMaker, first version of Stl3CounterMaker
15 //
16 // Revision 1.7 2001/11/14 23:30:56 struck
17 // major update: set 'unbiased'-flag, correct bugs in StGlobalTrack-filling
18 //
19 // Revision 1.6 2001/09/27 03:49:53 struck
20 // actual no. of gl3s handled flexible, max no. of gl3s and algorithms now global define-statements
21 //
22 // Revision 1.5 2001/08/29 20:24:49 struck
23 // makes Solaris compiler happy
24 //
25 // Revision 1.4 2001/08/20 22:32:00 struck
26 // first version filling L3 counters and algorithm info into StEvent
27 //
28 //
29 
30 
31 #ifndef STAR_Stl3RawReaderMaker
32 #define STAR_Stl3RawReaderMaker
33 
35 // //
36 // Stl3RawReaderMaker //
37 // //
39 #ifndef StMaker_H
40 #include "StMaker.h"
41 #endif
42 
43 #include "StDAQMaker/StDAQReader.h"
44 #include "Stl3CounterMaker.h"
45 
46 
47 // some foreward declaration since includes don't work
48 // in these cases
49 class globalTrack;
50 class StEvent;
51 class StL3Trigger;
52 class StPrimaryVertex;
53 
54 
55 class Stl3RawReaderMaker : public StMaker {
56 
57  private:
58  // General stuff
59  TDataSet* DAQReaderSet;
60  StL3Reader* ml3reader;
61 
62  // StEvent
63  StEvent* mStEvent;
64  StL3Trigger* myStL3Trigger;
65 
66  // Database
67  TDataSet* mDbSet;
68 
69  // test switch
70  bool mL3On;
71 
72  // counter
73  GlobalCounter mGlobalCounter[MaxNumberOfGl3Nodes];
74  AlgorithmCounter mAlgorithmCounter[MaxNumberOfGl3Nodes][MaxNumberOfAlgorithms];
75 
76  int mNumberOfGl3Nodes;
77  int mNumberOfAlgorithms;
78  int mEventCounter;
79 
80  public:
81  Stl3RawReaderMaker(const char *name="l3RawReader");
82  virtual ~Stl3RawReaderMaker();
83  virtual Int_t Init();
84  virtual Int_t Make();
85 
86  // StEvent:
87  Int_t fillStEvent();
88  Int_t fillStEventWithL3GlobalTracks();
89  Int_t fillStEventWithi960Hits();
90 
91  // embedding mode:
92  Int_t checkL3Bias();
93 
94  virtual const char *GetCVS() const
95  {static const char cvs[]="Tag $Name: $ $Id: Stl3RawReaderMaker.h,v 1.10 2014/08/06 11:44:00 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
96 
97  ClassDef(Stl3RawReaderMaker, 2) //StAF chain virtual base class for Makers
98 };
99 
100 #endif