4#include "GaudiKernel/Algorithm.h"
5#include "GaudiKernel/NTuple.h"
6#include "GaudiKernel/INTupleSvc.h"
12#include "MagneticField/IMagneticFieldSvc.h"
21#include "CLHEP/Alist/AList.h"
36#include "HepPDT/ParticleDataTable.hh"
60 void Leastfit(vector<double>, vector<double>,
double&,
double&);
67 int judgeHit(
MdcTrackList& list , vector<MdcTrack*>& tracklist);
71 std::string m_pdtFile;
72 HepPDT::ParticleDataTable* m_particleTable;
73 std::map< int, const HepVector > g_tkParTruth;
83 std::string m_evtFile;
97 bool m_combineTracking;
99 double m_dropTrkDrCut;
100 double m_dropTrkDzCut;
101 double m_dropTrkPtCut;
102 double m_dropTrkChi2Cut;
120 double m_z0Cut_compareHough;
138 NTuple::Tuple* ntuple_evt;
139 NTuple::Item<int> m_eventNum;
140 NTuple::Item<int> m_runNum;
141 NTuple::Item<int> m_nHit;
142 NTuple::Item<int> m_nSig_Axial;
143 NTuple::Array<int> m_layer;
144 NTuple::Array<int> m_cell;
145 NTuple::Array<double> m_x;
146 NTuple::Array<double> m_y;
147 NTuple::Array<double> m_z;
148 NTuple::Array<double> m_u;
149 NTuple::Array<double> m_v;
150 NTuple::Array<double> m_r;
151 NTuple::Array<double> m_uTruth;
152 NTuple::Array<double> m_vTruth;
153 NTuple::Array<double> m_rTruth;
154 NTuple::Array<double> m_xTruth;
155 NTuple::Array<double> m_yTruth;
156 NTuple::Array<double> m_type;
158 NTuple::Array<double> m_deltaD;
159 NTuple::Array<double> m_flt;
160 NTuple::Array<double> m_drift;
161 NTuple::Array<double> m_driftTruth;
162 NTuple::Array<int> m_slant;
164 NTuple::Item<int> m_xybinNum;
165 NTuple::Item<double> m_xybinMax;
166 NTuple::Array<double> m_xybinNL;
167 NTuple::Array<double> m_xybinRL;
168 NTuple::Array<double> m_xybinS;
170 NTuple::Item<double> m_theta_left;
171 NTuple::Item<double> m_theta_right;
172 NTuple::Item<double> m_rho_down;
173 NTuple::Item<double> m_rho_up;
174 NTuple::Item<double> m_rho;
175 NTuple::Item<double> m_theta;
176 NTuple::Item<double> m_rho_line;
177 NTuple::Item<double> m_theta_line;
178 NTuple::Item<double> m_height;
179 NTuple::Item<double> m_aver;
180 NTuple::Item<double> m_sigma;
182 NTuple::Item<int> m_exit_multiturn;
184 NTuple::Item<int> m_nMap1Pk;
185 NTuple::Item<int> m_nMap1Tk;
186 NTuple::Item<int> m_nMap2Pk;
187 NTuple::Item<int> m_nMap2Tk;
188 NTuple::Array<double> m_PkRho1;
189 NTuple::Array<double> m_PkRho2;
190 NTuple::Array<double> m_PkTheta1;
191 NTuple::Array<double> m_PkTheta2;
192 NTuple::Array<double> m_TkRho1;
193 NTuple::Array<double> m_TkRho2;
194 NTuple::Array<double> m_TkTheta1;
195 NTuple::Array<double> m_TkTheta2;
197 NTuple::Item<int> m_nMaxLayerSlant;
198 NTuple::Array<double> m_MaxLayerSlant;
199 NTuple::Array<double> m_MaxLayer;
200 NTuple::Item<int> m_nNoMaxLayerSlant;
201 NTuple::Array<double> m_NoMaxLayerSlant;
202 NTuple::Array<int> m_NoMaxLayerid;
204 NTuple::Item<int> m_MapMax;
205 NTuple::Item<int> m_nMapPk;
206 NTuple::Array<int> m_PeakOrder;
207 NTuple::Array<double> m_PeakRho;
208 NTuple::Array<double> m_PeakTheta;
209 NTuple::Array<double> m_PeakHeight;
210 NTuple::Array<double> m_PeakHit;
211 NTuple::Array<double> m_PeakHitA;
212 NTuple::Item<int> m_nMapTrk;
213 NTuple::Array<double> m_TrackRho;
214 NTuple::Array<double> m_TrackTheta;
215 NTuple::Array<double> m_TrackHitA;
218 NTuple::Item<int> m_nTrk2D_neg;
219 NTuple::Array<double> m_pt2D_neg;
220 NTuple::Array<double> m_nHit2D_neg;
221 NTuple::Array<double> m_chi2_2D_neg;
223 NTuple::Item<int> m_nTrk3D_neg;
224 NTuple::Array<double> m_tanl_neg;
225 NTuple::Array<double> m_tanl3D_neg;
226 NTuple::Array<double> m_z0_neg;
227 NTuple::Array<double> m_z0_3D_neg;
228 NTuple::Array<double> m_pro_neg;
229 NTuple::Array<double> m_pt3D_neg;
230 NTuple::Array<double> m_nHit3D_neg;
231 NTuple::Array<double> m_chi2_3D_neg;
236 NTuple::Item<double> m_pidTruth;
237 NTuple::Item<double> m_costaTruth;
238 NTuple::Item<double> m_ptTruth;
239 NTuple::Item<double> m_pzTruth;
240 NTuple::Item<double> m_pTruth;
241 NTuple::Item<double> m_qTruth;
242 NTuple::Item<double> m_drTruth;
243 NTuple::Item<double> m_phi0Truth;
244 NTuple::Item<double> m_omegaTruth;
245 NTuple::Item<double> m_dzTruth;
246 NTuple::Item<double> m_tanl_mc;
247 NTuple::Item<double> m_rho_mc;
248 NTuple::Item<double> m_theta_mc;
250 NTuple::Item<double> m_time;
252 NTuple::Tuple* ntuplehit;
253 NTuple::Item<int> m_evt_stereo;
254 NTuple::Item<int> m_run_stereo;
255 NTuple::Item<double> m_cos_stereo;
256 NTuple::Item<double> m_tanlTruth_stereo;
257 NTuple::Item<double> m_ncir_stereo;
258 NTuple::Item<double> m_npair_stereo;
259 NTuple::Item<double> m_tanl_stereo;
260 NTuple::Item<double> m_tanl3D_stereo;
261 NTuple::Item<double> m_z0_stereo;
262 NTuple::Item<double> m_z03D_stereo;
263 NTuple::Item<int> m_nHit_axial;
264 NTuple::Array<int> m_axial_layer;
265 NTuple::Array<int> m_axial_wire;
266 NTuple::Array<double> m_axial_deltaD;
267 NTuple::Array<double> m_axial_flt;
268 NTuple::Item<int> m_nHit_stereo;
269 NTuple::Array<int> m_stereo_layer;
270 NTuple::Array<int> m_stereo_wire;
271 NTuple::Array<int> m_stereo_style;
272 NTuple::Array<double> m_stereo_z0;
273 NTuple::Array<double> m_stereo_z1;
274 NTuple::Array<double> m_stereo_s0;
275 NTuple::Array<double> m_stereo_s1;
276 NTuple::Array<double> m_stereo_z;
277 NTuple::Array<double> m_stereo_s;
278 NTuple::Array<double> m_stereo_sTruth;
279 NTuple::Array<double> m_stereo_zTruth;
280 NTuple::Array<double> m_stereo_deltaZ;
281 NTuple::Array<int> m_stereo_nsol;
282 NTuple::Array<double> m_stereo_disToCir;
283 NTuple::Array<int> m_stereo_cirlist;
284 NTuple::Array<int> m_stereo_ambig;
285 NTuple::Array<int> m_stereo_ambig_truth;
bool more_pt(const HoughTrack *tracka, const HoughTrack *trackb)
std::vector< MdcDigi * > MdcDigiVec
ObjectVector< RecMdcHit > RecMdcHitCol
ObjectVector< RecMdcTrack > RecMdcTrackCol