1 #ifndef MACRO_G4TRACKING_C
2 #define MACRO_G4TRACKING_C
4 R__LOAD_LIBRARY(libg4eval.so)
5 R__LOAD_LIBRARY(libtrack_reco.so)
6 R__LOAD_LIBRARY(libtpccalib.so)
7 R__LOAD_LIBRARY(libqa_modules.so)
8 R__LOAD_LIBRARY(libtrackeralign.so)
10 #include <GlobalVariables.C>
14 #include <G4_Micromegas.C>
21 #include <g4eval/TrackSeedTrackMapConverter.h>
46 #include <trackermillepedealignment/MakeMilleFiles.h>
47 #include <trackermillepedealignment/HelicalFitter.h>
49 #include <qa_modules/QAG4SimulationTracking.h>
50 #include <qa_modules/QAG4SimulationUpsilon.h>
51 #include <qa_modules/QAG4SimulationVertex.h>
52 #include <qa_modules/QAG4SimulationDistortions.h>
59 std::cout <<
"G4_Tracking is now obsolete as of macros PR612. "
60 << std::endl <<
"Please switch to the new scheme for tracking, which is demosntrated in the PR at the following link: www.github.com/sPHENIX-Collaboration/macros/pull/612"
62 <<
"The switch is not difficult and just requires updating your macros repo and adding the new relevant tracking includes into your main Fun4All macro instead of G4_Tracking."
74 se->registerSubsystem(tpcLoadDistortionCorrection);
109 pat_rec->Verbosity(verbosity);
110 pat_rec->set_track_map_name(
"SiliconTrackSeedContainer");
111 pat_rec->set_min_layer(0);
113 se->registerSubsystem(pat_rec);
117 std::cout <<
"SETTING SI SEED CV" << std::endl;
118 silicon_Seeding->set_cluster_version(G4TRACKING::cluster_version);
119 se->registerSubsystem(silicon_Seeding);
123 se->registerSubsystem(merger);
132 pat_rec->Verbosity(verbosity);
133 pat_rec->set_track_map_name(
"TpcTrackSeedContainer");
136 se->registerSubsystem(pat_rec);
146 seeder->Verbosity(verbosity);
147 seeder->SetLayerRange(7, 55);
148 seeder->SetSearchWindow(1.5, 0.05);
149 seeder->SetMinHitsPerCluster(0);
150 seeder->SetMinClustersPerTrack(3);
151 seeder->useConstBField(
false);
152 seeder->useFixedClusterError(
true);
153 se->registerSubsystem(
seeder);
162 cprop->useConstBField(
false);
163 cprop->useFixedClusterError(
true);
164 cprop->set_max_window(5.);
165 cprop->set_cluster_version(G4TRACKING::cluster_version);
166 cprop->Verbosity(verbosity);
167 se->registerSubsystem(cprop);
173 std::cout <<
"Tracking_Reco_TrackSeed - Using truth Si matching " << std::endl;
177 se->registerSubsystem(silicon_assoc);
179 std::cout <<
"Tracking_Reco_TrackSeed - Using stub matching for Si matching " << std::endl;
185 std::cout <<
"PHSiliconTpcTrackMatching pp_mode set to " <<
TRACKING::pp_mode << std::endl;
190 silicon_match->set_phi_search_window(0.04);
191 silicon_match->set_eta_search_window(0.008);
194 silicon_match->set_phi_search_window(0.03);
195 silicon_match->set_eta_search_window(0.005);
197 silicon_match->set_test_windows_printout(
false);
198 se->registerSubsystem(silicon_match);
204 std::cout <<
"Tracking_Reco_TrackSeed - Using Micromegas matching " << std::endl;
212 mm_match->set_rphi_search_window_lyr1(0.2);
213 mm_match->set_rphi_search_window_lyr2(13.0);
214 mm_match->set_z_search_window_lyr1(26.0);
215 mm_match->set_z_search_window_lyr2(0.2);
218 mm_match->set_rphi_search_window_lyr1(0.2);
219 mm_match->set_rphi_search_window_lyr2(13.0);
220 mm_match->set_z_search_window_lyr1(26.0);
221 mm_match->set_z_search_window_lyr2(0.2);
223 mm_match->set_min_tpc_layer(38);
224 mm_match->set_test_windows_printout(
false);
225 se->registerSubsystem(mm_match);
231 std::cout <<
"Tracking_Reco_TrackSeed - Using full truth track seeding" << std::endl;
237 pat_rec->Verbosity(verbosity);
238 pat_rec->set_track_map_name(
"SvtxTrackSeedContainer");
239 se->registerSubsystem(pat_rec);
264 vtxing->set_track_map_name(trackmapnamef);
281 se->registerSubsystem(deltazcorr);
288 actsFit->set_cluster_version(G4TRACKING::cluster_version);
292 se->registerSubsystem(actsFit);
302 residuals->setClusterVersion(G4TRACKING::cluster_version);
305 residuals->Verbosity(verbosity);
306 se->registerSubsystem(residuals);
321 se->registerSubsystem(cleaner);
329 se->registerSubsystem(vtxProp);
334 se->registerSubsystem(projection);
351 silicon_Seeding->set_cluster_version(G4TRACKING::cluster_version);
352 silicon_Seeding->sigmaScattering(50.);
353 silicon_Seeding->setRPhiSearchWindow(0.4);
354 se->registerSubsystem(silicon_Seeding);
358 se->registerSubsystem(merger);
367 seeder->Verbosity(verbosity);
368 seeder->SetLayerRange(7, 55);
369 seeder->SetSearchWindow(1.5, 0.05);
370 seeder->SetMinHitsPerCluster(0);
371 seeder->SetMinClustersPerTrack(3);
372 seeder->useConstBField(
false);
373 seeder->useFixedClusterError(
true);
374 se->registerSubsystem(
seeder);
383 cprop->useConstBField(
false);
384 cprop->useFixedClusterError(
true);
385 cprop->set_max_window(5.);
386 cprop->set_cluster_version(G4TRACKING::cluster_version);
387 cprop->Verbosity(verbosity);
388 se->registerSubsystem(cprop);
399 silicon_match->set_phi_search_window(0.2);
400 silicon_match->set_eta_search_window(0.015);
401 silicon_match->set_x_search_window(std::numeric_limits<double>::max());
402 silicon_match->set_y_search_window(std::numeric_limits<double>::max());
403 silicon_match->set_z_search_window(std::numeric_limits<double>::max());
405 silicon_match->set_test_windows_printout(
false);
406 se->registerSubsystem(silicon_match);
416 mm_match->set_rphi_search_window_lyr1(0.4);
417 mm_match->set_rphi_search_window_lyr2(13.0);
418 mm_match->set_z_search_window_lyr1(26.0);
419 mm_match->set_z_search_window_lyr2(0.2);
421 mm_match->set_min_tpc_layer(38);
422 mm_match->set_test_windows_printout(
false);
423 se->registerSubsystem(mm_match);
441 mille->set_datafile_name(datafilename +
".bin");
442 mille->set_steeringfile_name(steeringfilename +
".txt");
443 mille->set_cluster_version(G4TRACKING::cluster_version);
448 helical->set_datafile_name(datafilename +
"_helical.bin");
449 helical->set_steeringfile_name(steeringfilename +
"_helical.txt");
450 helical->set_cluster_version(G4TRACKING::cluster_version);
458 std::cout <<
"G4_Tracking is now obsolete as of macros PR612. "
459 << std::endl <<
"Please switch to the new scheme for tracking, which is demosntrated in the PR at the following link: www.github.com/sPHENIX-Collaboration/macros/pull/612"
461 <<
"The switch is not difficult and just requires updating your macros repo and adding the new relevant tracking includes into your main Fun4All macro instead of G4_Tracking."
497 std::cout <<
"G4_Tracking is now obsolete as of macros PR612. "
498 << std::endl <<
"Please switch to the new scheme for tracking, which is demosntrated in the PR at the following link: www.github.com/sPHENIX-Collaboration/macros/pull/612"
500 <<
"The switch is not difficult and just requires updating your macros repo and adding the new relevant tracking includes into your main Fun4All macro instead of G4_Tracking."
532 std::cout <<
"G4_Tracking is now obsolete as of macros PR612. "
533 << std::endl <<
"Please switch to the new scheme for tracking, which is demosntrated in the PR at the following link: www.github.com/sPHENIX-Collaboration/macros/pull/612"
535 <<
"The switch is not difficult and just requires updating your macros repo and adding the new relevant tracking includes into your main Fun4All macro instead of G4_Tracking."
552 eval =
new SvtxEvaluator(
"SVTXEVALUATOR", outputfile,
"SvtxTrackMap",
564 bool embed_scan =
true;
568 std::cout <<
"SvtxEvaluator: pp_mode set to " <<
TRACKING::pp_mode <<
" and scan_for_embedded set to " << embed_scan << std::endl;
570 eval->set_cluster_version(G4TRACKING::cluster_version);
580 std::cout <<
"G4_Tracking is now obsolete as of macros PR612. "
581 << std::endl <<
"Please switch to the new scheme for tracking, which is demosntrated in the PR at the following link: www.github.com/sPHENIX-Collaboration/macros/pull/612"
583 <<
"The switch is not difficult and just requires updating your macros repo and adding the new relevant tracking includes into your main Fun4All macro instead of G4_Tracking."
638 qa->Verbosity(verbosity);