StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFgtDbMaker.h
1 // $Id: StFgtDbMaker.h,v 1.19 2014/08/06 11:43:09 jeromel Exp $
2 /* \class StFgtDbMaker
3 \author Stephen Gliske
4 
5 */
6 
7 #ifndef STFGTDBMAKER_H
8 #define STFGTDBMAKER_H
9 
10 
11 #include "StMaker.h"
12 #include "StFgtDb.h"
13 #include "StFgtUtil/geometry/StFgtGeom.h"
14 
15 class fgtElosCutoff_st;
16 class fgtSimuParams_st;
17 
18 class StFgtDbMaker : public StMaker {
19 
20  public:
21  StFgtDbMaker(const char *name="fgtDb");
22  ~StFgtDbMaker();
23  Int_t Init();
24  Int_t InitRun(Int_t runNumber);
25  Int_t Make();
26  Int_t Finish();
27  StFgtDb * getDbTables() { return m_tables; }
28  void Clear(const char *opt);
29  void printFgtDumpCSV1(TString fname) { m_tables->printFgtDumpCSV1(fname,GetDate(), GetTime()); }
30 
31  map<string, pair<string, string> > mValidRanges;
32  void displayBeginEndTime(TTable* table);
33 
34  // You should call getDbTables after calling this with "ideal". If you do
35  // not, then your StFgtDb object will be out of date.
36  void setFlavor( const char *flav, const char *tabname );
37 
38  Float_t eLossTab(int bin); // built from BichselELossProbHighBG.dat used to reject very high and unrealistic loss value
39  Double_t simuParams(int bin); // initialization of fgt-slow-simulator
40 
41  StFgtGeom *getFgtGeom(){ return m_geom;}
42 
43 private:
44 
45  fgtElosCutoff_st *m_LossTab;
46  fgtSimuParams_st *m_simuParTab;
47  StFgtGeom *m_geom;
48  StFgtDb *m_tables;
49  fgtMapping_st *m_rmap;
50  fgtAlignment_st *m_alignment;
51 
52  public:
53 
54  virtual const char *GetCVS() const
55  {static const char cvs[]="Tag $Name: $ $Id: StFgtDbMaker.h,v 1.19 2014/08/06 11:43:09 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
56  ClassDef(StFgtDbMaker,0) //StAF chain virtual base class for Makers
57 };
58 
59 #endif
60 
61 // $Log: StFgtDbMaker.h,v $
62 // Revision 1.19 2014/08/06 11:43:09 jeromel
63 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
64 //
65 // Revision 1.18 2013/01/31 15:42:19 akio
66 // Adding Alignment table and getStarXYZ()
67 //
68 // Revision 1.17 2012/07/31 18:24:30 jeromel
69 // Removed virtual + fixed name
70 //
71 // Revision 1.16 2012/06/03 16:52:18 balewski
72 // added access to fgtSimuParam table, all I/O .C code is saved in macros
73 //
74 // Revision 1.15 2012/03/19 01:19:20 rfatemi
75 // modified for removal of StFgtDbImpl and StFgtIdealDbImpl
76 //
77 // Revision 1.14 2012/03/12 16:21:16 rfatemi
78 // make sure getCVS() is public
79 //
80 // Revision 1.13 2012/03/10 01:59:29 rfatemi
81 // Review comments
82 //
83 // Revision 1.12 2012/02/24 16:20:31 rfatemi
84 // Correct mistype in printFgtDumpCSV1
85 //
86 // Revision 1.11 2012/02/22 20:07:44 rfatemi
87 // Changed name from updateValidity to displayBeginEndTime
88 //
89 // Revision 1.10 2012/02/22 04:04:29 rfatemi
90 // Added beginTimes for each table
91 //
92 // Revision 1.9 2012/01/31 21:07:53 rfatemi
93 // changes for StFgtDbIdealImpl.h
94 //
95 // Revision 1.8 2012/01/25 03:56:56 balewski
96 // printing out DB dump
97 //
98 // Revision 1.7 2011/12/01 23:09:15 avossen
99 // moved StFgtUtil/database to StFgtDbMaker
100 //
101 // Revision 1.6 2011/11/13 23:51:49 wwitzke
102 // Modified StFgtDbMaker to pull calibration data from the database.
103 //
104 // Revision 1.5 2011/10/26 19:32:34 balewski
105 // now fgt-geom is owned by fgtDb-maker
106 //
107 // Revision 1.4 2011/10/06 19:03:58 balewski
108 // access Elos table from STAR DB
109 //
110 // Revision 1.2 2011/10/04 02:59:34 balewski
111 // added guestimates of gains, grid absorption, charge sharing
112 //
Int_t InitRun(Int_t runNumber)
Definition: TTable.h:48