Make refactored gdml work with detector simulation
Dear larsoft simulation experts,
ProtoDUNE-SP simulation has moved to use the refactored larg4 simulation. One of the issues is that the gdml used for larg4 simulation cannot be used for detector simulation.
Here is an example. In the larg4 wiki page
there is a simple geometry: lArDet.gdml
I am able to run refactored larg4 using this gdml, but I cannot run detector simulation with it. I copied lArDet.gdml to lArDet_nowires.gdml and used the attached fcl file:
lar -c testdetsim.fcl /dune/data/users/tjyang/Testingout.root
I got the following error:
%MSG-s ArtException: PostEndJob 18-May-2020 22:02:06 CDT ModuleEndJob ---- EventProcessorFailure BEGIN EventProcessor: an exception occurred during current event processing ---- ScheduleExecutionFailure BEGIN Path: ProcessingStopped. ---- OtherArt BEGIN ---- GeometryCore BEGIN Cryostat #0 does not exist The above exception was thrown while processing module DriftElectronstoPlane/elecDrift run: 1 subRun: 0 event: 1 ---- GeometryCore END ---- OtherArt END Exception going through path simulate ---- ScheduleExecutionFailure END ---- EventProcessorFailure END ---- FatalRootError BEGIN Fatal Root Error: TTree::SetEntries Tree branches have different numbers of entries, eg art::TriggerResults_TriggerResults__Detsim. has 0 entries while EventAuxiliary has 1 entries. ROOT severity: 2000 ---- FatalRootError END %MSG
Is it possible to modify lArDet.gdml to be compatible with the larsoft conventions?
#1 Updated by Kyle Knoepfel about 1 month ago
- Assignee set to Hans-Joachim Wenzel
- Status changed from New to Assigned
Hans, can you take a look at this issue?
sure will do. But I think there are a few misleading issues with the request:
- protoDune is using the new larg4 and therefore it is possible to do detector simulation.
- there is an example for the dual phase protoDune that Bill Seligman put together and is documented in redmine.
I think what Tingjun wants is a general examples that's completely independent from any existing experimental setup so it can be used for general studies so that when one wants to publish results one doesn't have to run it by any experiment first.
So what I can do is I can make a simple geometry, do the elecron propagation to a surfcae but probably will need some help feeding this info into the sim-channels. May be we can get David Riveras help with this.