diff --git a/scripts/example_hit_recon.cxx b/scripts/example_hit_recon.cxx index 9798a15900cf04084b31ae05bedc8d5f0a1cb0e4..70f865a6a90650e90442072c0d92e3724ec607b3 100644 --- a/scripts/example_hit_recon.cxx +++ b/scripts/example_hit_recon.cxx @@ -47,7 +47,7 @@ void example_hit_recon(const char* fname = "gem_tracker_digi.root"){ auto nhits = [] (const std::vector<dd4hep::sim::Geant4Tracker::Hit*>& hits){ return hits.size(); }; dd4hep::Detector& detector = dd4hep::Detector::getInstance(); - detector.fromCompact("gem_tracker_disc.xml"); + detector.fromCompact("gem_tracker.xml"); dd4hep::rec::CellIDPositionConverter cellid_converter(detector); dd4hep::rec::SurfaceManager& surfMan = *detector.extension<dd4hep::rec::SurfaceManager>() ; diff --git a/scripts/example_tracking.cxx b/scripts/example_tracking.cxx index 460fe58288a63da6884d8e7be00bb063e000ea52..0871b8b6ecf9544ff4954c37b3c53ffb88a74030 100644 --- a/scripts/example_tracking.cxx +++ b/scripts/example_tracking.cxx @@ -1,5 +1,6 @@ R__LOAD_LIBRARY(libGenFind) R__LOAD_LIBRARY(libgenfit2) +R__LOAD_LIBRARY(libDDG4IO.so) #include "ConstField.h" #include "Exception.h" @@ -76,7 +77,8 @@ R__LOAD_LIBRARY(libgenfit2) void example_tracking(const char* fname = "gem_tracker_recon.root"){ - ROOT::EnableImplicitMT(1); + //ROOT::EnableImplicitMT(0); + ROOT::DisableImplicitMT(); // Tell ROOT you want to go parallel using namespace ROOT::Math; using namespace genfind; @@ -98,7 +100,7 @@ void example_tracking(const char* fname = "gem_tracker_recon.root"){ auto nhits = [] (const std::vector<dd4hep::sim::Geant4Tracker::Hit*>& hits){ return hits.size(); }; dd4hep::Detector& detector = dd4hep::Detector::getInstance(); - detector.fromCompact("gem_tracker_disc.xml"); + detector.fromCompact("gem_tracker.xml"); dd4hep::rec::CellIDPositionConverter cellid_converter(detector); ROOT::Math::XYZVector position = {0,0,0}; // position to calculate magnetic field at (the origin in this case) @@ -236,7 +238,7 @@ void example_tracking(const char* fname = "gem_tracker_recon.root"){ } display->addEvent(all_tracks); //std::cout << " |P| = " << (*mc_particles)[0]->psx << ", " << (*mc_particles)[0]->psy << ", " << (*mc_particles)[0]->psz << std::endl ; - //display->open(); + display->open(); //std::string dummy; //std::cout << "Enter to continue..." << std::endl; //std::getline(std::cin, dummy);