Always initialize DD4hep geometry in your Marlin analysis #15
Labels
ILDProdIssues
Known issues related to ILD MC mass production
Reconstruction
Issues related to reconstruction
Description
If you try to run your analysis processor without initializing the geometry before any processor, you won't get any exception with ILCSoft v02-00-01. But it doesn't mean that everything ran correctly. Some processors may need information from the detector geometry, such as the B field. If you try to run the same processors with ILCSoft > v02-00-01, you will get exceptions if you try to access geometry information. Example message when trying to access the B field in this case:
This is due to a change in the DD4hep (version > v01-07-02) and MarlinUtil (version > v01-15) versions, where exceptions are now thrown if the you try to access geometry information but have not initialized it.
Known fix / solution
In order to avoid/fix this problem, always initialize the DD4hep geometry before running any other processor. In your Marlin steering file add this:
and replace
compact.xml
by the compact geometry file. You can find the detector model in your slcio file by using thedumpevent
command on any event like:dumpevent some_file.slcio 1 | less
and get it from the head:
The corresponding compact file can be thus found in
$lcgeo_DIR/ILD/compact/ILD_l5_v02/ILD_l5_v02.xml
in this case.See also
The text was updated successfully, but these errors were encountered: