StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSvtHitMaker.h
1 // $Id: StSvtHitMaker.h,v 1.21 2014/08/06 11:43:45 jeromel Exp $
2 // $Log: StSvtHitMaker.h,v $
3 // Revision 1.21 2014/08/06 11:43:45 jeromel
4 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
5 //
6 // Revision 1.20 2009/11/23 16:44:55 fisyak
7 // Remove references to tables
8 //
9 // Revision 1.19 2004/07/29 01:36:59 caines
10 // Changes for using the drift curves
11 //
12 // Revision 1.18 2004/07/07 18:09:24 caines
13 // Save out fraction drfi5 velocity scaler to StEvent
14 //
15 // Revision 1.17 2004/06/14 21:27:46 caines
16 // Fine tuning of drift velocity using laser spots from Jana Bielcikova
17 //
18 // Revision 1.16 2004/03/18 04:02:56 caines
19 // Remove from global scope variables used in debug mode as they shouldnt be there and caused erratic behaviour
20 //
21 // Revision 1.15 2004/01/27 02:34:55 perev
22 // LeakOff
23 //
24 // Revision 1.14 2003/09/10 19:47:35 perev
25 // ansi corrs
26 //
27 // Revision 1.13 2003/04/14 18:33:54 munhoz
28 // reading t0 from DB
29 //
30 // Revision 1.12 2003/01/28 20:29:02 munhoz
31 // new filters for clusters
32 //
33 // Revision 1.10 2002/02/22 18:43:43 caines
34 // Add SetFileNames function
35 //
36 // Revision 1.9 2002/02/16 22:05:06 jeromel
37 // Marcelo's recen changes to StSvtClusterMaker (needed to be in sync with
38 // StDbUtilities changes)
39 //
40 // Revision 1.8 2002/01/28 23:42:14 caines
41 // Move to SVT database with StSvtDbMaker
42 //
43 // Revision 1.7 2001/09/22 01:07:09 caines
44 // Fixes now that AddData() is cleared everyevent
45 //
46 // Revision 1.6 2001/08/07 20:52:16 caines
47 // Implement better packing of svt hardware and charge values
48 //
49 // Revision 1.5 2001/03/22 20:46:54 caines
50 // Comment out some of the QA histograms
51 //
52 // Revision 1.4 2000/11/30 20:42:08 caines
53 // Some more evaluation and use dataase
54 //
55 // Revision 1.3 2000/08/26 20:36:28 caines
56 // Adjustments for StSvtCoordinateTransform calls
57 //
58 // Revision 1.2 2000/08/24 04:26:56 caines
59 // Printout for debugging
60 //
61 // Revision 1.1 2000/08/21 13:03:40 caines
62 // First version of cluster->STAR hit maker
63 //
64 //
65 #ifndef STAR_StSvtHit
66 #define STAR_StSvtHit
67 // //
69 // StSvtHit base class //
70 // //
72 #ifndef StMaker_H
73 #include "StMaker.h"
74 #endif
75 #include "TH2.h"
76 
77 //class ofstream;
78 
79 class TFile;
80 class TNtuple;
81 class StSvtGeometry;
84 class StSvtData;
85 class StSvtGeantHits;
86 class StSvtT0;
87 
88 class StSvtHitMaker : public StMaker
89 {
90  public:
91  StSvtHitMaker(const char *name = "SvtHit");
94 
95  virtual Int_t Init();
96  virtual Int_t InitRun(int runumber);
97  virtual Int_t Make();
98  virtual Int_t Finish();
99  Int_t FillHistograms();
100  Int_t GetSvtRawData();
101  Int_t GetSvtClusterData();
102  Int_t GetSvtGeometry();
103  Int_t GetSvtDriftVelocity();
104  Int_t GetSvtDriftCurve();
105  Int_t GetSvtT0();
106  void TransformIntoSpacePoint();
107  void SaveIntoNtuple(int numOfCluster, int index);
108  void SetWriteNtuple(int iwrite){iWrite = iwrite;};
109  void SetFileNames(const char* name1="/dev/null", const char* name2="/dev/null");
110  Int_t Eval();
111  double LaserTemperatureCorrection();
112 
113  virtual const char *GetCVS() const
114  {static const char cvs[]="Tag $Name: $ $Id: StSvtHitMaker.h,v 1.21 2014/08/06 11:43:45 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
115 
116 
117  protected:
118 
119  int iWrite;
120  //ofstream cluInfo; //!
121 
122  StSvtGeometry *m_geom;
123  StSvtHybridCollection *mSvtCluColl;
124  StSvtHybridCollection *mSvtGeantHitColl;
125  StSvtHybridCollection *m_driftVeloc;
126  StSvtHybridCollection *m_driftCurve;
127  StSvtT0 *m_t0;
128 
129  StSvtAnalysedHybridClusters *mSvtBigHit;
130 
131  StSvtData *mSvtData;
132  StSvtGeantHits *mSvtGeantHit;
133  TH2F *m_x_vs_y;
134  int mNwaf_no;
135  TH2F **m_waf_no;
136 
137  TNtuple *m_ClusTuple;
138  TFile *m_hfile;
139 
140  // Evaluation histos
141  TH1F *mTimeHitResolution;
142  TH1F *mAnodeHitResolution;
143  TH1F *mXHitResolution;
144  TH1F *mYHitResolution;
145  TH1F *mZHitResolution;
146  TH2F *mHitResolution;
147 
148  const char* filenameN;
149  const char* filenameC;
150 
151  ClassDef(StSvtHitMaker,0) //virtual base class for Makers
152 
153 };
154 
155 
156 #endif
virtual Int_t Make()
virtual Int_t Finish()
TNtuple * m_ClusTuple
ladder no vs z of Si hit
int mNwaf_no
x vs y of Si points
TH2F ** m_waf_no
size of following array