Project

General

Profile

Support #24434

Make refactored gdml work with detector simulation

Added by Tingjun Yang about 2 months ago. Updated about 2 hours ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Start date:
05/18/2020
Due date:
% Done:

100%

Estimated time:
Experiment:
-
Co-Assignees:
Duration:

Description

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
https://cdcvs.fnal.gov/redmine/projects/larg4/wiki
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?

Thanks,
Tingjun

testdetsim.fcl (2.57 KB) testdetsim.fcl Tingjun Yang, 05/18/2020 10:00 PM

History

#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?

Hi Kyle

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.

Hans

#2 Updated by Kyle Knoepfel about 1 month ago

We will set up a meeting to figure out how to proceed.

#3 Updated by Hans-Joachim Wenzel about 2 hours ago

  • Status changed from Assigned to Closed

duplicate see

https://cdcvs.fnal.gov/redmine/issues/22466

for work in progress

#4 Updated by Hans-Joachim Wenzel about 2 hours ago

  • % Done changed from 0 to 100


Also available in: Atom PDF