StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St2eemcFeeRawMaker.h
1 // $Id: St2eemcFeeRawMaker.h,v 1.5 2014/08/06 11:43:04 jeromel Exp $
2 // $Log: St2eemcFeeRawMaker.h,v $
3 // Revision 1.5 2014/08/06 11:43:04 jeromel
4 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
5 //
6 // Revision 1.4 2009/02/04 20:33:28 ogrebeny
7 // Moved the EEMC database functionality from StEEmcDbMaker to StEEmcUtil/database. See ticket http://www.star.bnl.gov/rt2/Ticket/Display.html?id=1388
8 //
9 // Revision 1.3 2003/11/17 15:47:04 balewski
10 // fix of bug
11 //
12 // Revision 1.2 2003/09/10 19:47:09 perev
13 // ansi corrs
14 //
15 // Revision 1.1 2003/01/28 23:15:25 balewski
16 // start
17 //
18 // Revision 1.1 2002/12/17 19:41:35 balewski
19 
20 /* \class St2eemcFeeRawMaker
21 \author Jan Balewski
22 
23 Reads EEMC hits from StEvent and converts them back to the DAQ raw data format using inverse crate/channel mapping from DB.
24 Resulting TTree is stored as a ROOT file.<br>
25 
26 Example how to use this maker:
27 www.star.bnl.gov/STAR/eemc -->How To
28 
29 */
30 
31 #ifndef STAR_St2eemcFeeRawMaker
32 #define STAR_St2eemcFeeRawMaker
33 
34 
35 #ifndef StMaker_H
36 #include "StMaker.h"
37 #endif
38 
39 class TTree;
40 class StEEmcDb;
41 class EEfeeDataBlock;
42 class EEfeeRawEvent;
43 class EEmcEventHeader;
44 
45 class St2eemcFeeRawMaker : public StMaker {
46  private:
47  // static Char_t m_VersionCVS = "$Id: St2eemcFeeRawMaker.h,v 1.5 2014/08/06 11:43:04 jeromel Exp $";
48  TTree *moutTTree;
49  StEEmcDb *meeDb;
50  EEfeeRawEvent *meveTT;
51  EEmcEventHeader *mrunTT;
52  int mNFeeCrate;
53  EEfeeDataBlock *mcrateData;
54 
55  protected:
56  public:
57  St2eemcFeeRawMaker(const char *name="St2eemcFeeRaw");
58  virtual ~St2eemcFeeRawMaker();
59  void setOutTTree(TTree *t ) {moutTTree=t;}
60 // void setDb(StEEmcDb *aa){meeDb=aa;} ///< DB-reader must exist
61  virtual Int_t Init();
62  virtual Int_t InitRun (int runumber);
63  virtual Int_t Make();
64  virtual const char *GetCVS() const {
65  static const char cvs[]="Tag $Name: $ $Id: St2eemcFeeRawMaker.h,v 1.5 2014/08/06 11:43:04 jeromel Exp $ built " __DATE__ " " __TIME__ ;
66  return cvs;
67  }
68 
69  ClassDef(St2eemcFeeRawMaker,0)
70 };
71 
72 #endif
73 
void setOutTTree(TTree *t)
TTree must be initialized externaly.
virtual Int_t InitRun(int runumber)
to change time stamp in TTree