StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFgtRawMaker.h
1 // \class StFgtRawMaker
2 // \author Anselm Vossen (avossen@indiana.edu)
3 //
4 // $Id: StFgtRawMaker.h,v 1.23 2013/02/19 20:57:01 akio Exp $
5 // $Log: StFgtRawMaker.h,v $
6 // Revision 1.23 2013/02/19 20:57:01 akio
7 // Added getting timebin from meta data, and also support for zero suppresed data
8 //
9 // Revision 1.22 2012/07/31 18:25:53 jeromel
10 // Remove virtual + add InitRun to get Db point (previous method implied passing from outside a pointer to a maker (sigh!) not appropriate)
11 //
12 // Revision 1.21 2012/03/07 03:57:23 avossen
13 // various updates
14 //
15 // Revision 1.20 2012/02/21 19:44:45 avossen
16 // implementing reviewers comments take 2
17 //
18 // Revision 1.19 2012/02/21 04:41:57 avossen
19 // *** empty log message ***
20 //
21 // Revision 1.18 2012/02/20 23:56:39 avossen
22 // addressing reviewers comments take 1
23 //
24 // Revision 1.17 2012/01/18 03:10:51 avossen
25 // added db access to the raw maker
26 //
27 // Revision 1.16 2011/11/01 18:45:32 sgliske
28 // Updated to correspond with StEvent containers, take 2.
29 // Note: new FGT containers (and StEvent access) no longer
30 // motivate the use of a common base class
31 //
32 // Revision 1.15 2011/10/26 20:57:49 avossen
33 // hopefully made cosmic and raw maker compatible with bfc (again), added clear in make. Unnecessary if member fkt clear() is called after every event
34 //
35 // Revision 1.14 2011/09/21 17:49:34 sgliske
36 // alternate base class with more
37 // functionality and not an StMaker
38 //
39 // Revision 1.11 2011/09/20 15:53:09 sgliske
40 // Update so that everything compiles nicely
41 // and so that one can execute the macro/simpleTestStandTest.C file
42 //
43 //
44 //
45 //
46 #ifndef STAR_StFgtRawMaker_HH
47 #define STAR_StFgtRawMaker_HH
48 
49 #include <math.h>
50 #include "StRoot/StChain/StRTSBaseMaker.h"
51 
52 class StFgtCollection;
53 class StFgtDb;
54 
60 {
61  public:
62  StFgtRawMaker(const Char_t* name="FgtRaw");
63  ~StFgtRawMaker();
67  Int_t Init();
68  Int_t InitRun(Int_t runNumber);
69 
73  Int_t Make();
74  void Clear( Option_t *opts = "" );
75 
79  void setFgtDb(StFgtDb *x) {mFgtDb=x;}
80 
81  void setAlldata() {mDataType=0;};
82  void setNoneZSdataOnly(){mDataType=1;};
83  void setZSdataOnly() {mDataType=2;};
84 
85  protected:
86 
90  Int_t fillHits();
94  Int_t prepareEnvironment();
95  StFgtCollection *mFgtCollectionPtr;
96 
97  private:
99 
101  // StFgtRawMaker(const StFgtRawMaker &source);
102 
106  // StFgtRawMaker& operator=(const StFgtRawMaker &source);
107  StFgtDb *mFgtDb;
108  int mEvent;
109  int mDataType;
110 
111  ClassDef(StFgtRawMaker,2);
112 };
113 
114 #endif
Class StRTSBaseMaker - is an abstract StMaker to define the interface to access the DAQ data from the...
Int_t InitRun(Int_t runNumber)
InitRun will be called after FgtDb due to chain dependencies.
StFgtRawMaker(const Char_t *name="FgtRaw")
void Clear(Option_t *opts="")
User defined functions.
Int_t prepareEnvironment()
void setFgtDb(StFgtDb *x)
Definition: StFgtRawMaker.h:79