-
Notifications
You must be signed in to change notification settings - Fork 115
Description
Check duplicate issues.
- Checked for duplicates
Goal
Hi all!
I am working with genfit to write a gaudi functional that can fit the tracks from the IDEA reconstruction pipeline. In order to test its functionalities, I have also a local version of genfit.
Genfit has to be initialized with the geometry of the detector and I have tried two different approaches:
- in my local genfit I am initializing it with the root file of geometry. After creating the root file with
dd4hep2root, I initialize genfit as follows:
new TGeoManager("Geometry", "IDEA geometry");
TGeoManager::Import("/eos/user/a/adevita/saveSpace/testingRoom/testROOTvsXML/TGeoIDEA.root");
genfit::MaterialEffects::getInstance()->init(new genfit::TGeoMaterialInterface());
- in the version where I am trying to include genfit within a gaudi functional, I retrieve the geometry from the GeoSvc that I have initialized in the steering file with the xml file. I can do that because I verified that GeoSvc is initializing a TGeoManager.
materialEffects = genfit::MaterialEffects::getInstance();
materialEffects->init(new genfit::TGeoMaterialInterface());
The xml file that I am using to initialize the GeoSvc and the one that I used to create the root file are the same.
In principle I should get the same results, but I get different outputs. Since the inputs to the genfit are the same in both my local version and the gaudi functional, I think that there is something different at the level of the initialization of the geometry.
I assume that the TGeoManager instances created in the previous two examples are the same, but maybe it is not true. Moreover I am using the same initialization for genfit.
Thank you in advance for all the suggestions.
Andrea
Operating System and Version
Alma Linux 9.5
compiler
GCC 14.2.0
ROOT Version
ROOT Version: 6.32.04
DD4hep Version
current
Reproducer
.
Additional context
No response