Open ggrenier opened 3 months ago
https://github.com/key4hep/k4geo/blob/9e9c87f54addd5149616c5ad1e6974dac2b2ca60/detector/calorimeter/Hcal_Barrel_SD_v02.cpp seems to be missing DetElements at the right levels of the hierarchy.
Something like https://github.com/key4hep/k4geo/blob/9e9c87f54addd5149616c5ad1e6974dac2b2ca60/detector/calorimeter/SHcalSc04_Barrel_v04.cpp#L699-L701
I'm running PFA within ILCsoft using ILD detector and the standard ILDConfig Marlin reconstruction. I'm using the ilcsoft build v02-02-03 available on DESY cvmfs. I run on centOS ( more exactly on x86_64_gcc82_centos7 configuration)
I have an issue to get the correct element between dd4hep, lcgeo/k4geo and DDMarlinPandora depending on the used ILD detector.
The DDMarlinPandora CaloHitCreator code has the following debug statement : see https://github.com/iLCSoft/DDMarlinPandora/blob/master/src/DDCaloHitCreator.cc#L696
I'm producing single klong simulation using ddsim.
When running Marlin the code above produces the following kind of output (hit position dependent) :
When using ILD geometry ILD_l5_v02
When using ILD geometry ILD_l2_v02
For both geometry, for the YokeBarrel hits
So, volumeManager.lookupDetElement( pCaloHit->getCellID0() ) returns stave detector element for detector/calorimeter/Yoke05_Barrel.cpp and for detector/calorimeter/SHcalSc04_Barrel_v04.cpp but returns the parent detector instead of the stave for detector/calorimeter/Hcal_Barrel_SD_v02.cpp
Looking at the 3 codes, I'm not enough familiar with dd4hep syntax to spot how to fix detector/calorimeter/Hcal_Barrel_SD_v02.cpp