00001 /*************************************************************************** 00002 * 00003 * $Id: StTpcDbMaker.h,v 1.22 2011/01/18 14:39:43 fisyak Exp $ 00004 * 00005 * Author: David Hardtke 00006 *************************************************************************** 00007 * 00008 * Description: This maker creates StTpcDb. 00009 * 00010 *************************************************************************** 00011 * 00012 * $Log: StTpcDbMaker.h,v $ 00013 * Revision 1.22 2011/01/18 14:39:43 fisyak 00014 * Clean up TpcDb interfaces and Tpc coordinate transformation 00015 * 00016 * Revision 1.21 2009/12/07 23:44:58 fisyak 00017 * Drop coordinate transformation for fortran, remove TpcHitErr 00018 * 00019 * Revision 1.20 2007/12/25 17:39:31 fine 00020 * Add the TPC coordinate transformation global function to the Root/Cint dictionary 00021 * 00022 * Revision 1.19 2007/08/04 00:38:04 jeromel 00023 * SL4 issue: Removal of the inline func, moved to class implementation. 00024 * Symbols may otherwise be hidden. 00025 * 00026 * Revision 1.18 2007/03/21 17:27:02 fisyak 00027 * use TGeoHMatrix, change mode for switching drift velocities 00028 * 00029 * Revision 1.17 2004/01/14 22:54:31 fisyak 00030 * Add hooks for Pedestal and tpcGain 00031 * 00032 * Revision 1.16 2003/09/10 19:47:39 perev 00033 * ansi corrs 00034 * 00035 * Revision 1.15 2002/04/02 00:16:31 hardtke 00036 * New class that gets hit errors from database 00037 * 00038 * Revision 1.14 2002/02/05 22:21:08 hardtke 00039 * Move Init code to InitRun 00040 * 00041 * Revision 1.13 2002/01/03 00:01:09 hardtke 00042 * Add switches for type of drift velocity data (i.e. laser vs. t0 analysis). Default to use either. 00043 * 00044 * Revision 1.12 2001/10/25 22:59:36 hardtke 00045 * Add function tpc_localsector_to_local 00046 * 00047 * Revision 1.11 2001/06/21 16:27:52 perev 00048 * two error matrix transformation methods added 00049 * 00050 * Revision 1.10 2001/04/19 19:52:48 hardtke 00051 * add tpc_pad_time_offset function and add ifdef for static arrays 00052 * 00053 * Revision 1.9 2000/08/09 14:54:54 hardtke 00054 * Add Clear option, set trigger table pointer to 0 after each event 00055 * 00056 * Revision 1.8 2000/04/11 16:06:26 hardtke 00057 * improve speed of tpc_row_par and tpc_global_to_sector 00058 * 00059 * Revision 1.7 2000/02/23 22:21:09 hardtke 00060 * add tpc_global_to_local_p 00061 * 00062 * Revision 1.6 2000/02/23 15:09:58 hardtke 00063 * move tpg_detector and tpg_pad_plane from .const to .data 00064 * 00065 * Revision 1.5 2000/02/17 19:43:21 hardtke 00066 * fixes to tpc functions 00067 * 00068 * Revision 1.4 2000/02/10 00:29:09 hardtke 00069 * Add tpg functions to StTpcDbMaker, fix a few bugs 00070 * 00071 * Revision 1.3 1999/12/16 22:00:53 hardtke 00072 * add CVS tags 00073 * 00074 **************************************************************************/ 00075 #ifndef STAR_StTpcDbMaker 00076 #define STAR_StTpcDbMaker 00077 00079 // // 00080 // StTpcDbMaker virtual base class for Maker // 00081 // // 00082 // 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 00083 // 00085 #ifndef StMaker_H 00086 #include "StMaker.h" 00087 #endif 00088 #include "StTpcDb.h" 00089 #ifdef StTpc_STATIC_ARRAYS 00090 static float aline[24][45]; //hold parameterization 00091 static float bline[24][45]; //ax+by=0 00092 #endif 00093 00094 class StTpcDbMaker : public StMaker { 00095 public: 00096 StTpcDbMaker(const char *name="TpcDb") : StMaker(name) {} 00097 virtual ~StTpcDbMaker() {} 00098 virtual Int_t InitRun(int runnumber); 00099 virtual Int_t Make(); 00100 virtual void UseOnlyLaserDriftVelocity() {m_Mode = m_Mode%1000000 + 2000000;} 00101 virtual void UseOnlyCathodeDriftVelocity() {m_Mode = m_Mode%1000000 + 1000000;} 00102 virtual void UseAnyDriftVelocity() {m_Mode = m_Mode%1000000;} 00103 virtual StTpcDb* tpcDbInterface() const {return StTpcDb::instance();} 00104 virtual const char *GetCVS() const 00105 {static const char cvs[]="Tag $Name: $ $Id: StTpcDbMaker.h,v 1.22 2011/01/18 14:39:43 fisyak Exp $ built "__DATE__" "__TIME__ ; return cvs;} 00106 ClassDef(StTpcDbMaker,0) //StAF chain virtual base class for Makers 00107 }; 00108 #endif 00109 00110 00111 00112
1.5.9