StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofMaker.h
1 /***************************************************************************
2  *
3  * $Id: StTofMaker.h,v 1.12 2014/08/06 11:43:47 jeromel Exp $
4  *
5  * Author: Wei-Ming Zhang / Frank Geurts
6  *
7  ***************************************************************************
8  *
9  * Description: TOF offline software
10  * StTofMaker.h - ROOT/STAR Maker for offline chain.
11  ***************************************************************************
12  *
13  * $Log: StTofMaker.h,v $
14  * Revision 1.12 2014/08/06 11:43:47 jeromel
15  * Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
16  *
17  * Revision 1.11 2005/04/12 17:33:18 dongx
18  * update for year 5 new data format. Store into TofRawData from now on.
19  *
20  * Revision 1.10 2004/01/27 23:17:01 dongx
21  * change for year4 run (pVPD+TOFp+TOFr')
22  * - Additional TOFr' ADC and TDC channels put in
23  * - Add TOTs of TOFr' in
24  *
25  *
26  * Revision 1.8 2003/09/10 19:47:37 perev
27  * ansi corrs
28  *
29  * Revision 1.7 2003/02/06 05:02:05 geurts
30  * Added TOFr and extra pVPD-ADC channels to the datastream:
31  * StTofMaker is now aware of year2 (TOFp+pVPD) and year3 (TOFp+pVPD+TOFr) raw data.
32  *
33  * Revision 1.6 2002/01/22 16:47:08 geurts
34  * minor change in ClassDef
35  *
36  * Revision 1.5 2002/01/22 06:50:51 geurts
37  * modifications for STAR dBase access
38  *
39  * Revision 1.4 2001/10/09 03:06:39 geurts
40  * TofTag introduced
41  *
42  * Revision 1.3 2001/09/28 18:40:03 llope
43  * first release
44  *
45  *
46  **************************************************************************/
47 #ifndef STAR_StTofMaker
48 #define STAR_StTofMaker
49 #include "StMaker.h"
50 
51 
52 // forward declarations
53 class StTofCollection;
54 class StTofSlat;
55 class StTofHit;
56 class StTofData;
57 class StTofRawData; // RunV
58 class TH1F;
59 class StEvent;
61 class StTofHitCollection;
63 class StTofRawDataCollection; // RunV
64 class StTofPidTraits;
65 class StTofGeometry;
66 class StDAQReader;
68 class TOF_Reader;
69 
70 class StTofMaker : public StMaker {
71  private:
72  StDAQReader* mTheDataReader;
73  // StTofReaderInterface* mTheTofReader; //!
74  TOF_Reader* mTheTofReader;
75  St_DataSet* mTheTofData;
76  Bool_t drawinit;
77  StEvent* mEvent;
78  StTofGeometry* mTofGeom;
79  StTofCollection* mTheTofCollection;
80  StTofSlatCollection* mSlatCollection;
81  StTofHitCollection* mHitCollection;
82  StTofDataCollection* mDataCollection;
83  Int_t tofTag;
84  StTofRawDataCollection* mRawDataCollection; // RunV
85 
86  // flags
87  short mTofCollectionPresent;
88  short mSlatCollectionPresent;
89  short mHitCollectionPresent;
90  short mDataCollectionPresent;
91  short mRawDataCollectionPresent; // RunV
92 
93  void fillStEvent();
94  void storeTag();
95  void fillPidTraits();
96 
97 protected:
98  TH1S *nAdcHitHisto;
99  TH1S *nTdcHitHisto;
100 
101 public:
102  StTofMaker(const char *name="tof");
103  virtual ~StTofMaker();
104  virtual Int_t Init();
105  Int_t InitRun(int);
106  Int_t FinishRun(int);
107  virtual Int_t Make();
108  virtual Int_t Finish();
109 
110  virtual const char *GetCVS() const
111  {static const char cvs[]="Tag $Name: $ $Id: StTofMaker.h,v 1.12 2014/08/06 11:43:47 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
112 
113  ClassDef(StTofMaker,0)
114 
115 };
116 #endif
virtual Int_t Make()
Make method, check for collections; create and fill them according to m_Mode.
Definition: StTofMaker.cxx:96
TH1S * nAdcHitHisto
method for testing classes of StTofPidMaker
Definition: StTofMaker.h:98
virtual Int_t Finish()
default Finish method (empty)
Definition: StTofMaker.cxx:402
virtual ~StTofMaker()
default empty destructor
Definition: StTofMaker.cxx:61
Int_t InitRun(int)
InitRun method, (re)initialize TOFp data from STAR dBase.
Definition: StTofMaker.cxx:75
Int_t FinishRun(int)
FinishRun method, clean up TOFp dBase entries.
Definition: StTofMaker.cxx:85
Time-of-Flight Raw Data Maker.
Definition: StTofMaker.h:70
Time-of-Flight Geometry Utilities.
StTofMaker(const char *name="tof")
default constructor
Definition: StTofMaker.cxx:55
virtual Int_t Init()
Init method, book histograms.
Definition: StTofMaker.cxx:66