StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StIstDbMaker.h
1 /* $Id: StIstDbMaker.h,v 1.23 2015/02/04 07:56:20 smirnovd Exp $ */
2 
3 #ifndef StIstDbMaker_hh
4 #define StIstDbMaker_hh
5 
6 #include "StMaker.h"
7 
8 class StIstDb;
9 
10 
17 class StIstDbMaker : public StMaker
18 {
19 public:
20  StIstDbMaker(const char *name = "istDb");
21  virtual Int_t Init();
22  Int_t InitRun(Int_t runNumber);
23  Int_t Make();
24 
25  virtual const char *GetCVS() const
26  {static const char cvs[] = "Tag $Name: $ $Id: StIstDbMaker.h,v 1.23 2015/02/04 07:56:20 smirnovd Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
27 
28 private:
31  StIstDb *mIstDb;
32  Int_t mReady;
33 
34  ClassDef(StIstDbMaker, 0)
35 };
36 
37 #endif
38 
39 
40 /***************************************************************************
41 *
42 * $Log: StIstDbMaker.h,v $
43 * Revision 1.23 2015/02/04 07:56:20 smirnovd
44 * Create StIstDb object in constructor and pass it to the framework in Init()
45 *
46 * It makes perfect sense to do it this way because the StIstDb obect is created
47 * once by the maker and later reused/updated only at every new run.
48 *
49 * Revision 1.22 2014/11/19 18:29:47 genevb
50 * Use flags to indicate DbMaker readiness
51 *
52 * Revision 1.21 2014/11/19 04:17:34 genevb
53 * Return fatal if database tables are not found
54 *
55 * Revision 1.20 2014/11/18 23:11:50 smirnovd
56 * Set class version to 0 in order to avoid IO dictionary generation by ROOT's CINT. STAR makers are not persistent
57 *
58 * Revision 1.19 2014/11/18 23:11:35 smirnovd
59 * [Minor] Coding style clean-up. Removed unconstructive comments
60 *
61 * Revision 1.18 2014/11/18 23:10:27 smirnovd
62 * Do not destruct StIstDb object as the ownership is passed to the framework
63 *
64 * Revision 1.17 2014/11/18 23:08:37 smirnovd
65 * Moved CVS log to the end of file and updated doxygen-style comments
66 *
67 * Revision 1.16 2014/08/06 11:43:22 jeromel
68 * Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
69 *
70 * Revision 1.15 2014/08/01 22:15:04 ypwang
71 * mIstDb geometry matrices print out when Debug2 enabled
72 *
73 * Revision 1.14 2014/07/31 21:01:29 smirnovd
74 * Set class version to 1 as version 0 has a special meaning in root cint world
75 *
76 * Revision 1.13 2014/07/31 21:00:36 ypwang
77 * c++ format style improvements; virtual keyword added for destructor
78 *
79 * Revision 1.12 2014/07/31 18:24:03 ypwang
80 * add destructor and deallocate the mIstDb; c++ formatting style improvements and formatted with astyle -s3 -p -H -A3 -k3 -O -o -y -Y -f
81 *
82 * Revision 1.11 2014/07/29 19:50:25 ypwang
83 * IST DB dataset in order to separate from IST Db maker
84 *
85 * Revision 1.10 2014/07/15 23:17:52 smirnovd
86 * Improved doxygen documentation
87 *
88 * Revision 1.9 2014/03/27 22:46:55 smirnovd
89 * Remove unnecessary protection
90 *
91 * Revision 1.8 2014/03/27 22:46:38 smirnovd
92 * Renamed static data member according to mixed star/root convention
93 *
94 * Revision 1.7 2014/03/25 03:01:57 ypwang
95 * get rid of GetIstPedNoise(), GetIstGain(), GetIstMapping() and GetIstControl() functions; use TDataSet instead of Db table structure
96 *
97 * Revision 1.6 2014/03/24 15:49:48 ypwang
98 * checks added and const pointers returned for GetIstPedNoise, GetIstGain, GetIstMapping and GetIstControl functions
99 *
100 * Revision 1.5 2014/02/08 03:34:16 ypwang
101 * updating scripts
102 *
103 *
104 ****************************************************************************
105 * StIstDbMaker.h,v 1.0
106 * Revision 1.0 2013/11/04 16:15:30 Yaping
107 * Initial version
108 ****************************************************************************/
StIstDbMaker(const char *name="istDb")