1 #ifndef MACRO_TRKRTRUTHRECO_C
2 #define MACRO_TRKRTRUTHRECO_C
10 #include <trackingdiagnostics/TrackSeedTrackMapConverter.h>
35 #include <trackermillepedealignment/MakeMilleFiles.h>
36 #include <trackermillepedealignment/HelicalFitter.h>
40 R__LOAD_LIBRARY(libTrackingDiagnostics.so)
41 R__LOAD_LIBRARY(libtrack_reco.so)
42 R__LOAD_LIBRARY(libtpccalib.so)
43 R__LOAD_LIBRARY(libtrackeralign.so)
44 R__LOAD_LIBRARY(libg4eval.so)
75 pat_rec->Verbosity(verbosity);
76 pat_rec->set_track_map_name(
"SiliconTrackSeedContainer");
77 pat_rec->set_min_layer(0);
79 se->registerSubsystem(pat_rec);
83 std::cout <<
"SETTING SI SEED CV" << std::endl;
84 se->registerSubsystem(silicon_Seeding);
88 se->registerSubsystem(merger);
97 pat_rec->Verbosity(verbosity);
98 pat_rec->set_track_map_name(
"TpcTrackSeedContainer");
101 se->registerSubsystem(pat_rec);
111 seeder->Verbosity(verbosity);
112 seeder->SetLayerRange(7, 55);
113 seeder->SetSearchWindow(1.5, 0.05);
114 seeder->SetMinHitsPerCluster(0);
115 seeder->SetMinClustersPerTrack(3);
116 seeder->useConstBField(
false);
117 seeder->useFixedClusterError(
true);
118 se->registerSubsystem(
seeder);
127 cprop->useConstBField(
false);
128 cprop->useFixedClusterError(
true);
129 cprop->set_max_window(5.);
130 cprop->Verbosity(verbosity);
131 se->registerSubsystem(cprop);
137 std::cout <<
"Tracking_Reco_TrackSeed - Using truth Si matching " << std::endl;
141 se->registerSubsystem(silicon_assoc);
143 std::cout <<
"Tracking_Reco_TrackSeed - Using stub matching for Si matching " << std::endl;
149 std::cout <<
"PHSiliconTpcTrackMatching pp_mode set to " <<
TRACKING::pp_mode << std::endl;
154 silicon_match->set_phi_search_window(0.04);
155 silicon_match->set_eta_search_window(0.008);
158 silicon_match->set_phi_search_window(0.03);
159 silicon_match->set_eta_search_window(0.005);
161 silicon_match->set_test_windows_printout(
false);
162 se->registerSubsystem(silicon_match);
168 std::cout <<
"Tracking_Reco_TrackSeed - Using Micromegas matching " << std::endl;
176 mm_match->set_rphi_search_window_lyr1(0.2);
177 mm_match->set_rphi_search_window_lyr2(13.0);
178 mm_match->set_z_search_window_lyr1(26.0);
179 mm_match->set_z_search_window_lyr2(0.2);
182 mm_match->set_rphi_search_window_lyr1(0.2);
183 mm_match->set_rphi_search_window_lyr2(13.0);
184 mm_match->set_z_search_window_lyr1(26.0);
185 mm_match->set_z_search_window_lyr2(0.2);
187 mm_match->set_min_tpc_layer(38);
188 mm_match->set_test_windows_printout(
false);
189 se->registerSubsystem(mm_match);
195 std::cout <<
"Tracking_Reco_TrackSeed - Using full truth track seeding" << std::endl;
201 pat_rec->Verbosity(verbosity);
202 pat_rec->set_track_map_name(
"SvtxTrackSeedContainer");
203 se->registerSubsystem(pat_rec);
228 vtxing->set_track_map_name(trackmapnamef);
246 se->registerSubsystem(deltazcorr);
257 se->registerSubsystem(actsFit);
269 residuals->Verbosity(verbosity);
270 se->registerSubsystem(residuals);
285 se->registerSubsystem(cleaner);
293 se->registerSubsystem(vtxProp);
298 se->registerSubsystem(projection);
313 silicon_Seeding->sigmaScattering(50.);
314 silicon_Seeding->setRPhiSearchWindow(0.4);
315 se->registerSubsystem(silicon_Seeding);
319 se->registerSubsystem(merger);
328 seeder->Verbosity(verbosity);
329 seeder->SetLayerRange(7, 55);
330 seeder->SetSearchWindow(1.5, 0.05);
331 seeder->SetMinHitsPerCluster(0);
332 seeder->SetMinClustersPerTrack(3);
333 seeder->useConstBField(
false);
334 seeder->useFixedClusterError(
true);
335 se->registerSubsystem(
seeder);
344 cprop->useConstBField(
false);
345 cprop->useFixedClusterError(
true);
346 cprop->set_max_window(5.);
347 cprop->Verbosity(verbosity);
348 se->registerSubsystem(cprop);
359 silicon_match->set_phi_search_window(0.2);
360 silicon_match->set_eta_search_window(0.015);
361 silicon_match->set_x_search_window(std::numeric_limits<double>::max());
362 silicon_match->set_y_search_window(std::numeric_limits<double>::max());
363 silicon_match->set_z_search_window(std::numeric_limits<double>::max());
365 silicon_match->set_test_windows_printout(
false);
366 se->registerSubsystem(silicon_match);
376 mm_match->set_rphi_search_window_lyr1(0.4);
377 mm_match->set_rphi_search_window_lyr2(13.0);
378 mm_match->set_z_search_window_lyr1(26.0);
379 mm_match->set_z_search_window_lyr2(0.2);
381 mm_match->set_min_tpc_layer(38);
382 mm_match->set_test_windows_printout(
false);
383 se->registerSubsystem(mm_match);
401 mille->set_datafile_name(datafilename +
".bin");
402 mille->set_steeringfile_name(steeringfilename +
".txt");
407 helical->set_datafile_name(datafilename +
"_helical.bin");
408 helical->set_steeringfile_name(steeringfilename +
"_helical.txt");