StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTpcDbMaker.h
1 /***************************************************************************
2  *
3  * $Id: StTpcDbMaker.h,v 1.23 2014/08/06 11:43:50 jeromel Exp $
4  *
5  * Author: David Hardtke
6  ***************************************************************************
7  *
8  * Description: This maker creates StTpcDb.
9  *
10  ***************************************************************************
11  *
12  * $Log: StTpcDbMaker.h,v $
13  * Revision 1.23 2014/08/06 11:43:50 jeromel
14  * Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
15  *
16  * Revision 1.22 2011/01/18 14:39:43 fisyak
17  * Clean up TpcDb interfaces and Tpc coordinate transformation
18  *
19  * Revision 1.21 2009/12/07 23:44:58 fisyak
20  * Drop coordinate transformation for fortran, remove TpcHitErr
21  *
22  * Revision 1.20 2007/12/25 17:39:31 fine
23  * Add the TPC coordinate transformation global function to the Root/Cint dictionary
24  *
25  * Revision 1.19 2007/08/04 00:38:04 jeromel
26  * SL4 issue: Removal of the inline func, moved to class implementation.
27  * Symbols may otherwise be hidden.
28  *
29  * Revision 1.18 2007/03/21 17:27:02 fisyak
30  * use TGeoHMatrix, change mode for switching drift velocities
31  *
32  * Revision 1.17 2004/01/14 22:54:31 fisyak
33  * Add hooks for Pedestal and tpcGain
34  *
35  * Revision 1.16 2003/09/10 19:47:39 perev
36  * ansi corrs
37  *
38  * Revision 1.15 2002/04/02 00:16:31 hardtke
39  * New class that gets hit errors from database
40  *
41  * Revision 1.14 2002/02/05 22:21:08 hardtke
42  * Move Init code to InitRun
43  *
44  * Revision 1.13 2002/01/03 00:01:09 hardtke
45  * Add switches for type of drift velocity data (i.e. laser vs. t0 analysis). Default to use either.
46  *
47  * Revision 1.12 2001/10/25 22:59:36 hardtke
48  * Add function tpc_localsector_to_local
49  *
50  * Revision 1.11 2001/06/21 16:27:52 perev
51  * two error matrix transformation methods added
52  *
53  * Revision 1.10 2001/04/19 19:52:48 hardtke
54  * add tpc_pad_time_offset function and add ifdef for static arrays
55  *
56  * Revision 1.9 2000/08/09 14:54:54 hardtke
57  * Add Clear option, set trigger table pointer to 0 after each event
58  *
59  * Revision 1.8 2000/04/11 16:06:26 hardtke
60  * improve speed of tpc_row_par and tpc_global_to_sector
61  *
62  * Revision 1.7 2000/02/23 22:21:09 hardtke
63  * add tpc_global_to_local_p
64  *
65  * Revision 1.6 2000/02/23 15:09:58 hardtke
66  * move tpg_detector and tpg_pad_plane from .const to .data
67  *
68  * Revision 1.5 2000/02/17 19:43:21 hardtke
69  * fixes to tpc functions
70  *
71  * Revision 1.4 2000/02/10 00:29:09 hardtke
72  * Add tpg functions to StTpcDbMaker, fix a few bugs
73  *
74  * Revision 1.3 1999/12/16 22:00:53 hardtke
75  * add CVS tags
76  *
77  **************************************************************************/
78 #ifndef STAR_StTpcDbMaker
79 #define STAR_StTpcDbMaker
80 
82 // //
83 // StTpcDbMaker virtual base class for Maker //
84 // //
85 // Submit any problem with this code via begin_html <A HREF="http://www.rhic.bnl.gov/STAR/html/comp_l/sofi/bugs/send-pr.html"><B><I>"STAR Problem Report Form"</I></B></A> end_html
86 //
88 #ifndef StMaker_H
89 #include "StMaker.h"
90 #endif
91 #include "StTpcDb.h"
92 #ifdef StTpc_STATIC_ARRAYS
93 static float aline[24][45]; //hold parameterization
94 static float bline[24][45]; //ax+by=0
95 #endif
96 
97 class StTpcDbMaker : public StMaker {
98  public:
99  StTpcDbMaker(const char *name="TpcDb") : StMaker(name) {}
100  virtual ~StTpcDbMaker() {}
101  virtual Int_t InitRun(int runnumber);
102  virtual Int_t Make();
103  virtual void UseOnlyLaserDriftVelocity() {m_Mode = m_Mode%1000000 + 2000000;}
104  virtual void UseOnlyCathodeDriftVelocity() {m_Mode = m_Mode%1000000 + 1000000;}
105  virtual void UseAnyDriftVelocity() {m_Mode = m_Mode%1000000;}
106  virtual StTpcDb* tpcDbInterface() const {return StTpcDb::instance();}
107  virtual const char *GetCVS() const
108  {static const char cvs[]="Tag $Name: $ $Id: StTpcDbMaker.h,v 1.23 2014/08/06 11:43:50 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
109  ClassDef(StTpcDbMaker,0) //StAF chain virtual base class for Makers
110 };
111 #endif
112 
113 
114 
115 
Int_t m_Mode
counters
Definition: StMaker.h:81
virtual Int_t Make()
StMaker(const char *name="", const char *dummy=0)
Constructor &amp; Destructor.
Definition: StMaker.cxx:188