1 R__LOAD_LIBRARY(libActsDD4hepPlugin.so)
2 R__LOAD_LIBRARY(libDDG4IO.so)
3 R__LOAD_LIBRARY(libGenDetectors.so)
4 #include "DD4hep/Detector.h"
5 #include "DDG4/Geant4Data.h"
6 #include "DDRec/CellIDPositionConverter.h"
7 #include "DDRec/SurfaceManager.h"
8 #include "DDRec/Surface.h"
9 #include "ROOT/RDataFrame.hxx"
14 #include "Acts/Geometry/TrackingGeometry.hpp"
15 #include "Acts/Geometry/TrackingVolume.hpp"
16 #include "Acts/Plugins/DD4hep/ConvertDD4hepDetector.hpp"
24 using namespace ROOT::Math;
26 ROOT::EnableImplicitMT(4);
27 TChain* t =
new TChain(
"EVENT");
30 ROOT::RDataFrame d0(*t, {
"GEMTrackerHits",
"MCParticles"});
40 detector.fromCompact(
"GEM_sidis.xml");
41 dd4hep::rec::CellIDPositionConverter cellid_converter(detector);
45 dd4hep::rec::SurfaceManager& surfMan = *detector.extension<dd4hep::rec::SurfaceManager>() ;
46 auto surfMap = surfMan.map(
"world" ) ;
50 auto acts_tracking_geometry =
51 Acts::convertDD4hepDetector(detector.world(), Acts::Logging::Level::VERBOSE);
58 if(acts_tracking_geometry.get()) {
59 std::cout <<
" yooooooo\n";
60 if(acts_tracking_geometry->highestTrackingVolume()) {
61 std::cout <<
"\n volume name \n ";
62 std::cout << acts_tracking_geometry->highestTrackingVolume()->volumeName() << std::endl;
64 std::cout <<
"\nderp\n";
68 std::cout <<
" \n\nDONE ! \n";