StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFtpcTrackMaker.h
1 // $Id: StFtpcTrackMaker.h,v 1.25 2014/08/06 11:43:17 jeromel Exp $
2 // $Log: StFtpcTrackMaker.h,v $
3 // Revision 1.25 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.24 2009/11/25 19:50:21 jcs
7 // remove all references to StFtpcSoftwareMonitor
8 //
9 // Revision 1.23 2008/01/07 14:45:06 jcs
10 // create and fill the special set of Ftpc track histograms used to evaluate
11 // the Ftpc gain scan runs when the bfc option fgain is in the chain
12 //
13 // Revision 1.22 2007/12/11 09:36:40 jcs
14 // Remove m_nrec_track histogram (never used)
15 //
16 // Revision 1.21 2007/04/27 15:39:29 jcs
17 // Removed obsolete histogram (fpt_theta)
18 // Only create and fill FTPC vertex by sector histograms if bfc debug option is on
19 //
20 // Revision 1.20 2006/09/27 11:00:31 jcs
21 // comment out ftpc vs. tpc vertex histogram definitions, they are defined and filled in St_QA_Maker
22 //
23 // Revision 1.19 2004/09/27 14:17:02 jcs
24 // pad vs. time histograms moved to St_QA_Maker
25 //
26 // Revision 1.18 2004/08/10 12:42:10 jcs
27 // move DEBUGFILE and tracking method define statements from .h to .cxx
28 //
29 // Revision 1.17 2004/08/10 12:21:42 jcs
30 // remove histograms which are also created in St_QA_Maker
31 //
32 // Revision 1.16 2004/08/09 15:08:14 jcs
33 // remove unused histogram
34 //
35 // Revision 1.15 2004/06/18 09:07:03 jcs
36 // add code to write out a root file for calibration
37 //
38 // Revision 1.14 2004/06/04 11:04:15 jcs
39 // replaced StarDb/ftpc/fdepars/fdepar with StarDb/ftpc/ftpcdEdxPars
40 //
41 // Revision 1.13 2004/05/24 13:46:39 jcs
42 // fill StFtpcSoftwareMonitor not dst_mon_soft_ftpc
43 //
44 // Revision 1.12 2004/05/07 15:02:18 oldi
45 // Tracks are written to StEvent directly, now.
46 // Primary Vertex is read from StEvent.
47 // MonSoftDst table is filled here now (was filled in the now obsolete StFtpcGlobalMaker before).
48 //
49 // Revision 1.11 2004/03/22 16:02:04 oldi
50 // Moved destruction of the instance of StFtpcTrackingParams from Finish() to FinishRun().
51 //
52 // Revision 1.10 2003/09/10 19:47:18 perev
53 // ansi corrs
54 //
55 // Revision 1.9 2002/11/06 13:46:54 oldi
56 // Vertex handling simplifed.
57 // Global/primary fit handling simplified.
58 // Vertex estimations only calculated if a vertex was used for tracking.
59 // Code clean ups.
60 //
61 // Revision 1.8 2002/10/31 13:41:16 oldi
62 // Histograms for vertex estimation for different sectors added.
63 //
64 // Revision 1.7 2002/10/03 10:34:04 oldi
65 // Usage of gufld removed.
66 // Magnetic field is read by StMagUtilities, now.
67 //
68 // Revision 1.6 2002/04/05 16:51:07 oldi
69 // Cleanup of MomentumFit (StFtpcMomentumFit is now part of StFtpcTrack).
70 // Each Track inherits from StHelix, now.
71 // Therefore it is possible to calculate, now:
72 // - residuals
73 // - vertex estimations obtained by back extrapolations of FTPC tracks
74 // Chi2 was fixed.
75 // Many additional minor (and major) changes.
76 //
77 // Revision 1.5 2002/03/01 14:21:21 jcs
78 // add additional histograms to monitor cluster finding
79 //
80 // Revision 1.4 2001/07/12 13:05:01 oldi
81 // QA histogram of FTPC vertex estimation is generated.
82 // FTPC vertex estimation is stored as pre vertex (id = 301) in any case, now.
83 //
84 // Revision 1.3 2001/02/21 13:14:09 jcs
85 // Add CVS Id strings in correct place
86 //
87 // Revision 1.2 2000/07/03 12:45:23 jcs
88 // get (pre)Vertex coordinates directly from (pre)Vertex table instead of from
89 // fptpars
90 //
91 // Revision 1.1 2000/05/10 13:39:30 oldi
92 // Initial version of StFtpcTrackMaker
93 //
94 
96 // //
97 // StFtpcTrackMaker virtual base class for Maker //
98 // //
100 
101 #ifndef STAR_StFtpcTrackMaker
102 #define STAR_StFtpcTrackMaker
103 
104 #include "StMaker.h"
105 #include "StFtpcTracker.hh"
106 
107 class TH1F;
108 class TH2F;
109 class TProfile;
110 class StEvent;
111 class St_ftpcdEdxPars;
112 
113 class StFtpcTrackMaker : public StMaker {
114 
115  private:
116 
117  protected:
118  TH1F *m_pointFW;
119  TH1F *m_pointFE;
120  TH1F *m_ratiomFW;
121  TH1F *m_ratiomFE;
122  TH1F *m_planefF;
123  TH1F *m_psiFW;
124  TH1F *m_psiFE;
125  TH2F *m_xf_yfFW;
126  TH2F *m_xf_yfFE;
129  TH2F *m_good_trk;
130  TH1F *m_vtx_pos;
132  TH1F *m_maxadc_East;
133  TH1F *m_charge_West;
134  TH1F *m_charge_East;
135  TH1F *m_xres;
136  TH1F *m_yres;
137  TH1F *m_rres;
138  TH1F *m_phires;
143 
144 // TH2F *m_vertex_east_xy; //! vertex xy estimation east
145 // TH1F *m_vertex_east_z; //! vertex z estimation east
149 // TH2F *m_vertex_west_xy; //! vertex xy estimation west
150 // TH1F *m_vertex_west_z; //! vertex z estimation west
154 
155  public:
156  StFtpcTrackMaker(const char *name="ftpc_tracks"); // constructor
157  virtual ~StFtpcTrackMaker(); // destructor
158  virtual Int_t InitRun(Int_t run); // Initialisation per run
159  virtual Int_t Init(); // Initialisation
160  virtual Int_t Make(); // actual program
161  virtual Int_t Finish(); // final cleanup
162  virtual Int_t FinishRun(Int_t run); // cleanup after every run
163  virtual const char *GetCVS() const
164  {static const char cvs[]="Tag $Name: $ $Id: StFtpcTrackMaker.h,v 1.25 2014/08/06 11:43:17 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
165  virtual void PrintInfo(); // prints information
166  void MakeHistograms(StFtpcTracker *tracker); // makes histograms
167 
168 
169  ClassDef(StFtpcTrackMaker,0) //StAF chain virtual base class for Makers
170 };
171 
172 #endif
TH2F * m_vertex_west_x_vs_sector
vertex z estimation east vs sector
TH2F * m_phires_vs_r_west
r residuals vs. r west
TH1F * m_psiFW
plane of first hit on trk, ftpc
TH1F * m_rres
y residuals
TH2F * m_vertex_west_z_vs_sector
vertex y estimation west vs sector
TH1F * m_ratiomFW
number of points on the track - ftpc east
TH2F * m_good_trk
padlength vs timelength of hits, ftpcE
TH2F * m_phires_vs_r_east
r residuals vs. r east
TH2F * m_vertex_east_y_vs_sector
vertex x estimation east vs sector
TH1F * m_pointFE
number of points on the track - ftpc west
TH2F * m_vertex_east_x_vs_sector
phi residuals vs. r west
TH2F * m_vertex_west_y_vs_sector
vertex x estimation west vs sector
TH2F * m_pnt_padtimeFE
padlength vs timelength of hits, ftpcW
TH1F * m_psiFE
psi reconstructed, ftpc west
TH1F * m_planefF
ratio of n fit pnts over max n pnts - ftpc east
StFtpcTrackMaker(const char *name="ftpc_tracks")
vertex z estimation west vs sector
virtual Int_t Finish()
TH1F * m_vtx_pos
tot # tracks ftpcW vs. ftpcE
TH2F * m_xf_yfFW
psi reconstructed, ftpc east
TH2F * m_vertex_east_z_vs_sector
vertex y estimation east vs sector
TH2F * m_rres_vs_r_east
phi residuals
TH2F * m_rres_vs_r_west
phi residuals vs. r east
TH1F * m_yres
x residuals
TH2F * m_xf_yfFE
Y vs X of first hit on trk, ftpc west.
TH1F * m_maxadc_West
vertex position
TH2F * m_pnt_padtimeFW
Y vs X of first hit on trk, ftpc east.
TH1F * m_ratiomFE
ratio of n fit pnts over max n pnts - ftpc west
TH1F * m_phires
r residuals
virtual Int_t Make()