StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFtpcSlowSimMaker.h
1 // $Id: StFtpcSlowSimMaker.h,v 1.15 2014/08/06 11:43:17 jeromel Exp $
2 // $Log: StFtpcSlowSimMaker.h,v $
3 // Revision 1.15 2014/08/06 11:43:17 jeromel
4 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
5 //
6 // Revision 1.14 2005/10/26 14:07:32 jcs
7 // Calculate microsecondsPerTimebin from RHIC clock frequency if available,
8 // otherwise use default from database
9 //
10 // Revision 1.13 2005/03/23 14:33:18 jcs
11 // changes to use body + extra temperature readings starting with y2005
12 // (necessary for embedding)
13 //
14 // Revision 1.12 2003/09/10 19:47:17 perev
15 // ansi corrs
16 //
17 // Revision 1.11 2003/07/03 13:25:50 fsimon
18 // Added database access for cathode offset information.
19 //
20 // Revision 1.10 2003/02/28 13:00:27 jcs
21 // for embedding, calculate temperature,pressure corrections using values from offline database
22 //
23 // Revision 1.9 2003/02/14 16:53:49 fsimon
24 // Add functionality that allows for different temperature corrections
25 // in west and east, important for embedding.
26 //
27 // Revision 1.8 2003/01/14 12:58:25 jcs
28 // use Geometry_ftpc/ftpcAsicMap to control corrections for error in Y2001-2002
29 // FTPC asic mapping
30 //
31 // Revision 1.7 2002/10/16 12:29:18 fsimon
32 // Include ftpcAmpSlope, ftpcAmpOffset and ftpcTimeOffset in Database access
33 // permits usage of gain factors and time offset in the simulator
34 //
35 // Revision 1.6 2001/10/29 12:56:55 jcs
36 // select FTPC drift maps according to flavor of magnetic field
37 //
38 // Revision 1.5 2001/10/19 09:42:34 jcs
39 // tZero now in data base in ftpcElectronics
40 //
41 // Revision 1.4 2001/04/02 12:04:36 jcs
42 // get FTPC calibrations,geometry from MySQL database and code parameters from StarDb/ftpc
43 //
44 // Revision 1.3 2001/03/19 15:53:10 jcs
45 // use ftpcDimensions from database
46 //
47 // Revision 1.2 2001/03/06 23:36:12 jcs
48 // use database instead of params
49 //
50 // Revision 1.1 2000/11/23 10:16:43 hummler
51 // New FTPC slow simulator in pure maker form
52 //
53 //
54 #ifndef STAR_StFtpcSlowSimMaker
55 #define STAR_StFtpcSlowSimMaker
56 
58 // //
59 // StFtpcSlowSimMaker class //
60 // //
62 #ifndef StMaker_H
63 #include "StMaker.h"
64 #endif
65 
66 #ifndef __CINT__
67 #include "StDaqLib/GENERIC/EventReader.hh"
68 #include "StDaqLib/RICH/RICH_Reader.hh"
69 #endif /*__CINT__*/
70 
71 class St_db_Maker;
72 class St_ftpcClusterPars;
73 class St_ftpcFastSimGas;
74 class St_ftpcFastSimPars;
75 class St_ftpcDimensions;
76 class St_ftpcAsicMap;
77 class St_ftpcEField;
78 class St_ftpcVDrift;
79 class St_ftpcDeflection;
80 class St_ftpcdVDriftdP;
81 class St_ftpcdDeflectiondP;
82 class St_ftpcAmpSlope;
83 class St_ftpcAmpOffset;
84 class St_ftpcTimeOffset;
85 class St_ftpcDriftField;
86 class St_ftpcGas;
87 class St_ftpcElectronics;
88 class St_ftpcSlowSimGas;
89 class St_ftpcSlowSimPars;
90 class St_ftpcInnerCathode;
91 class St_ftpcTemps;
92 
93 class TH1F;
94 class TH2F;
95 
96 class StFtpcSlowSimMaker : public StMaker {
97  private:
98  // static Char_t m_VersionCVS = "$Id: StFtpcSlowSimMaker.h,v 1.15 2014/08/06 11:43:17 jeromel Exp $";
99  // Int_t m_mode; // mode 1 = primaries;
100  St_db_Maker *mDbMaker;
101  St_ftpcClusterPars *m_clusterpars;
102  //St_ftpcFastSimGas *m_fastsimgas; //!
103  //St_ftpcFastSimPars *m_fastsimpars; //!
104  St_ftpcSlowSimGas *m_slowsimgas;
105  St_ftpcSlowSimPars *m_slowsimpars;
106  St_ftpcDimensions *m_dimensions;
107  St_ftpcAsicMap *m_asicmap;
108  St_ftpcEField *m_efield;
109  St_ftpcVDrift *m_vdrift;
110  St_ftpcDeflection *m_deflection;
111  St_ftpcdVDriftdP *m_dvdriftdp;
112  St_ftpcdDeflectiondP *m_ddeflectiondp;
113  St_ftpcAmpSlope *m_ampslope;
114  St_ftpcAmpOffset *m_ampoffset;
115  St_ftpcTimeOffset *m_timeoffset;
116  St_ftpcDriftField *m_driftfield;
117  St_ftpcGas *m_gas;
118  St_ftpcElectronics *m_electronics;
119  St_ftpcInnerCathode *m_cathode;
120  St_ftpcTemps *m_temps;
121 
122  void MakeHistograms();// Histograms for FTPC slow simulator
123 
124  protected:
125  TH1F *m_nadc;
126  TH1F *m_nsqndx;
128 
130 
131  public:
132  StFtpcSlowSimMaker(const char *name="ftpc_raw");
133  virtual ~StFtpcSlowSimMaker();
134  virtual Int_t InitRun(int);
135  virtual Int_t Init();
136  virtual Int_t Make();
137  // virtual void Set_mode (Int_t m = 2){m_mode = m;} // *MENU*
138  virtual const char *GetCVS() const
139  {static const char cvs[]="Tag $Name: $ $Id: StFtpcSlowSimMaker.h,v 1.15 2014/08/06 11:43:17 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
140 
141  ClassDef(StFtpcSlowSimMaker,0) //StAF chain virtual base class for Makers
142 };
143 
144 #endif
145 
TH2F * m_nadc_index1
FTPC raw data sequence index.
TH1F * m_nsqndx
FTPC raw data adc output.
Float_t microsecondsPerTimebin
FTPC # of total adcs vs. # in FTPC East.