StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEmcAsciiDbMaker.h
1 // $Id: StEmcAsciiDbMaker.h,v 1.2 2009/02/04 20:33:06 ogrebeny Exp $
2 // export snapshot of E+B-EMC STAR DB in ASCII format
3 // \author Jan Balewski, IUCF, 2006
4 // Interface to online/L2jetAlgo/
5 
6 #ifndef EMCASCIIDBMAKER_H
7 #define EMCASCIIDBMAKER_H
8 
9 
10 #include "StMaker.h"
11 
12 class StEEmcDb;
13 class StEmcGeom;
14 class StEmcDecoder;
15 
16 class StEmcAsciiDbMaker : public StMaker {
17  public:
20 
21  Int_t Init();
22  virtual Int_t InitRun(int runNo);
23  Int_t Make();
24  Int_t Finish();
25  virtual void Clear(const Option_t* = "");
26 
27  //Histogram
28  void SetHList(TObjArray * x){mHList=x;}
29  void SetGain60Et() { mgain60Et=true; }
30 
31  private:
32 
33  StEEmcDb *mEeDb;
34  StEmcGeom *mGeomB;
35  StEmcDecoder *mMappB;
36  bool mgain60Et;
37 
38  void exportBtowDb(TString fname, int runNo, int yyyymmdd,int hhmmss);
39  void exportEtowDb(TString fname, int runNo, int yyyymmdd,int hhmmss);
40 
41  TObjArray *mHList;
42  enum {mxH=4};
43  TH1 * hA[mxH];
44 
45  void initAuxHisto();
46  ClassDef(StEmcAsciiDbMaker,0)
47 };
48 
49 #endif
50 
51 // $Log: StEmcAsciiDbMaker.h,v $
52 // Revision 1.2 2009/02/04 20:33:06 ogrebeny
53 // Moved the EEMC database functionality from StEEmcDbMaker to StEEmcUtil/database. See ticket http://www.star.bnl.gov/rt2/Ticket/Display.html?id=1388
54 //
55 // Revision 1.1 2008/07/29 14:43:11 balewski
56 // start
57 //
58 // Revision 1.1 2006/03/09 01:33:11 balewski
59 // start
60 //
61