4#include "GaudiKernel/Algorithm.h"
5#include "GaudiKernel/NTuple.h"
6#include "GaudiKernel/INTupleSvc.h"
7#include "MdcGeomSvc/IMdcGeomSvc.h"
8#include "MdcGeomSvc/MdcGeoWire.h"
9#include "MdcGeomSvc/MdcGeoLayer.h"
10#include "RawDataProviderSvc/IRawDataProviderSvc.h"
11#include "RawDataProviderSvc/RawDataProviderSvc.h"
12#include "MagneticField/IMagneticFieldSvc.h"
21#include "CLHEP/Alist/AList.h"
22#include "MdcGeom/MdcDetector.h"
23#include "BField/BField.h"
24#include "MdcCalibFunSvc/MdcCalibFunSvc.h"
25#include "MdcUtilitySvc/MdcUtilitySvc.h"
26#include "MdcPrintSvc/MdcPrintSvc.h"
29#include "MdcHoughFinder/HoughHit.h"
30#include "MdcHoughFinder/HoughHitList.h"
31#include "MdcHoughFinder/HoughGlobal.h"
32#include "MdcHoughFinder/HoughMap.h"
34#include "MdcRecEvent/RecMdcTrack.h"
35#include "MdcRecEvent/RecMdcHit.h"
36#include "HepPDT/ParticleDataTable.hh"
37#include "MdcTrkRecon/MdcTrack.h"
38#include "MdcTrkRecon/MdcTrackParams.h"
39#include "MdcTrkRecon/MdcTrackList.h"
40#include "TrkBase/TrkRecoTrk.h"
41#include "TrkFitter/TrkContextEv.h"
60 void Leastfit(vector<double>, vector<double>,
double&,
double&);
67 int judgeHit(
MdcTrackList& list , vector<MdcTrack*>& tracklist);
71 std::string m_pdtFile;
72 std::string m_sigmaFile;
73 HepPDT::ParticleDataTable* m_particleTable;
74 std::map< int, const HepVector > g_tkParTruth;
84 std::string m_evtFile;
98 bool m_combineTracking;
100 double m_dropTrkDrCut;
101 double m_dropTrkDzCut;
102 double m_dropTrkPtCut;
103 double m_dropTrkChi2Cut;
123 double m_z0Cut_compareHough;
141 NTuple::Tuple* ntuple_evt;
142 NTuple::Item<int> m_eventNum;
143 NTuple::Item<int> m_runNum;
144 NTuple::Item<int> m_nHit;
145 NTuple::Item<int> m_nSig_Axial;
146 NTuple::Array<int> m_layer;
147 NTuple::Array<int> m_cell;
148 NTuple::Array<double> m_x;
149 NTuple::Array<double> m_y;
150 NTuple::Array<double> m_z;
151 NTuple::Array<double> m_u;
152 NTuple::Array<double> m_v;
153 NTuple::Array<double> m_r;
154 NTuple::Array<double> m_uTruth;
155 NTuple::Array<double> m_vTruth;
156 NTuple::Array<double> m_rTruth;
157 NTuple::Array<double> m_xTruth;
158 NTuple::Array<double> m_yTruth;
159 NTuple::Array<double> m_type;
161 NTuple::Array<double> m_deltaD;
162 NTuple::Array<double> m_flt;
163 NTuple::Array<double> m_drift;
164 NTuple::Array<double> m_driftTruth;
165 NTuple::Array<int> m_slant;
167 NTuple::Item<int> m_xybinNum;
168 NTuple::Item<double> m_xybinMax;
169 NTuple::Array<double> m_xybinNL;
170 NTuple::Array<double> m_xybinRL;
171 NTuple::Array<double> m_xybinS;
173 NTuple::Item<double> m_theta_left;
174 NTuple::Item<double> m_theta_right;
175 NTuple::Item<double> m_rho_down;
176 NTuple::Item<double> m_rho_up;
177 NTuple::Item<double> m_rho;
178 NTuple::Item<double> m_theta;
179 NTuple::Item<double> m_rho_line;
180 NTuple::Item<double> m_theta_line;
181 NTuple::Item<double> m_height;
182 NTuple::Item<double> m_aver;
183 NTuple::Item<double> m_sigma;
185 NTuple::Item<int> m_exit_multiturn;
187 NTuple::Item<int> m_nMap1Pk;
188 NTuple::Item<int> m_nMap1Tk;
189 NTuple::Item<int> m_nMap2Pk;
190 NTuple::Item<int> m_nMap2Tk;
191 NTuple::Array<double> m_PkRho1;
192 NTuple::Array<double> m_PkRho2;
193 NTuple::Array<double> m_PkTheta1;
194 NTuple::Array<double> m_PkTheta2;
195 NTuple::Array<double> m_TkRho1;
196 NTuple::Array<double> m_TkRho2;
197 NTuple::Array<double> m_TkTheta1;
198 NTuple::Array<double> m_TkTheta2;
200 NTuple::Item<int> m_nMaxLayerSlant;
201 NTuple::Array<double> m_MaxLayerSlant;
202 NTuple::Array<double> m_MaxLayer;
203 NTuple::Item<int> m_nNoMaxLayerSlant;
204 NTuple::Array<double> m_NoMaxLayerSlant;
205 NTuple::Array<int> m_NoMaxLayerid;
207 NTuple::Item<int> m_MapMax;
208 NTuple::Item<int> m_nMapPk;
209 NTuple::Array<int> m_PeakOrder;
210 NTuple::Array<double> m_PeakRho;
211 NTuple::Array<double> m_PeakTheta;
212 NTuple::Array<double> m_PeakHeight;
213 NTuple::Array<double> m_PeakHit;
214 NTuple::Array<double> m_PeakHitA;
215 NTuple::Item<int> m_nMapTrk;
216 NTuple::Array<double> m_TrackRho;
217 NTuple::Array<double> m_TrackTheta;
218 NTuple::Array<double> m_TrackHitA;
221 NTuple::Item<int> m_nTrk2D_neg;
222 NTuple::Array<double> m_pt2D_neg;
223 NTuple::Array<double> m_nHit2D_neg;
224 NTuple::Array<double> m_chi2_2D_neg;
226 NTuple::Item<int> m_nTrk3D_neg;
227 NTuple::Array<double> m_tanl_neg;
228 NTuple::Array<double> m_tanl3D_neg;
229 NTuple::Array<double> m_z0_neg;
230 NTuple::Array<double> m_z0_3D_neg;
231 NTuple::Array<double> m_pro_neg;
232 NTuple::Array<double> m_pt3D_neg;
233 NTuple::Array<double> m_nHit3D_neg;
234 NTuple::Array<double> m_chi2_3D_neg;
239 NTuple::Item<double> m_pidTruth;
240 NTuple::Item<double> m_costaTruth;
241 NTuple::Item<double> m_ptTruth;
242 NTuple::Item<double> m_pzTruth;
243 NTuple::Item<double> m_pTruth;
244 NTuple::Item<double> m_qTruth;
245 NTuple::Item<double> m_drTruth;
246 NTuple::Item<double> m_phi0Truth;
247 NTuple::Item<double> m_omegaTruth;
248 NTuple::Item<double> m_dzTruth;
249 NTuple::Item<double> m_tanl_mc;
250 NTuple::Item<double> m_rho_mc;
251 NTuple::Item<double> m_theta_mc;
253 NTuple::Item<double> m_time;
255 NTuple::Tuple* ntuplehit;
256 NTuple::Item<int> m_evt_stereo;
257 NTuple::Item<int> m_run_stereo;
258 NTuple::Item<double> m_cos_stereo;
259 NTuple::Item<double> m_tanlTruth_stereo;
260 NTuple::Item<double> m_ncir_stereo;
261 NTuple::Item<double> m_npair_stereo;
262 NTuple::Item<double> m_tanl_stereo;
263 NTuple::Item<double> m_tanl3D_stereo;
264 NTuple::Item<double> m_z0_stereo;
265 NTuple::Item<double> m_z03D_stereo;
266 NTuple::Item<int> m_nHit_axial;
267 NTuple::Array<int> m_axial_layer;
268 NTuple::Array<int> m_axial_wire;
269 NTuple::Array<double> m_axial_deltaD;
270 NTuple::Array<double> m_axial_flt;
271 NTuple::Item<int> m_nHit_stereo;
272 NTuple::Array<int> m_stereo_layer;
273 NTuple::Array<int> m_stereo_wire;
274 NTuple::Array<int> m_stereo_style;
275 NTuple::Array<double> m_stereo_z0;
276 NTuple::Array<double> m_stereo_z1;
277 NTuple::Array<double> m_stereo_s0;
278 NTuple::Array<double> m_stereo_s1;
279 NTuple::Array<double> m_stereo_z;
280 NTuple::Array<double> m_stereo_s;
281 NTuple::Array<double> m_stereo_sTruth;
282 NTuple::Array<double> m_stereo_zTruth;
283 NTuple::Array<double> m_stereo_deltaZ;
284 NTuple::Array<int> m_stereo_nsol;
285 NTuple::Array<double> m_stereo_disToCir;
286 NTuple::Array<int> m_stereo_cirlist;
287 NTuple::Array<int> m_stereo_ambig;
288 NTuple::Array<int> m_stereo_ambig_truth;
std::vector< MdcDigi * > MdcDigiVec
bool more_pt(const HoughTrack *tracka, const HoughTrack *trackb)
ObjectVector< RecMdcHit > RecMdcHitCol
ObjectVector< RecMdcTrack > RecMdcTrackCol