Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "services_icarus_simulation.fcl"
#include "largeantmodules_icarus.fcl"
#include "mcreco.fcl"

process_name: G4
Expand Down
146 changes: 146 additions & 0 deletions fcl/configurations/larg4_icarus_defs.fcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
# File: icarus_larg4_defs.fcl
# Purpose: definitions for standard LArG4 jobs
#
# This collection of presets can be used as building blocks for a full LArG4
# job configuration. Essential parts are:
#
# services: {
# @table::icarus_larg4_services
#
# # ... additional services as needed
# }
#
# physics.producers: {
# @table::icarus_larg4_standard_producers
#
# # ... additional services as needed
# }
#
# physics.simulate: [
# @sequence::icarus_larg4_standard_path
# # , additional labels as needed
# ]
#
# Note that `icarus_larg4_services` only provides service specific to LArG4;
# for a full, and possibly overfull, set of services, use `icarus_all_larg4_services`.
#
# A complete example can be found in `larg4_icarus.fcl`.
#

#include "services_icarus_simulation.fcl"
#include "larg4_services_icarus.fcl"

#include "LArG4.fcl"
#include "ionandscint_icarus.fcl"
#include "PDFastSim_icarus.fcl"
#include "simdrift_icarus.fcl"
#include "g4inforeducer.fcl"
#include "icarus_genericCRT.fcl"
#include "simplemerge_icarus.fcl"

BEGIN_PROLOG


# ------------------------------------------------------------------------------
# --- ICARUS "standard" configuration
# ---
#
# (note overrides at the bottom)
#
# The service sets include:
# - `icarus_larg4_services`: only the services needed only by LArG4
# - `icarus_all_larg4_services`: all services needed for a job including LArG4
#
# Note that currently `icarus_g4_services` is directly taken from `larg4_services_icarus.fcl`.
Comment thread
jas1005 marked this conversation as resolved.
#

# ---
# --- services
# ---
icarus_g4_services: {

@table::icarus_g4_services # from `larg4_services_icarus.fcl` (FHiCL will not recourse)

# icarus_g4_services.ParticleListAction.KeepDroppedParticlesInVolumes: ["volDetEnclosure"]
}

icarus_all_larg4_services: {
@table::icarus_g4_services
@table::icarus_larg4_services
}

# avoid huge log files
icarus_all_larg4_services.message.destinations.LogErrorFile.categories.SimDriftElectrons: { limit: 0 }
icarus_all_larg4_services.message.destinations.LogStandardOut.categories.SimDriftElectrons: { limit: 0 }

# Setup hack for 2D
icarus_all_larg4_services.SpaceChargeService.is2DdriftSimHack: true


# ---
# --- modules
# ---
icarus_larg4_standard_producers: {

# A dummy module that forces the G4 physics list to be loaded
loader: { module_type: "PhysListLoader" }

# The geant4 step
largeant: {

@table::standard_larg4 # from `LArG4.fcl` (in LArSoft/larg4)

# Store MCParticleLite in G4 to store dropped particles from KeepEMShowerDaughters: false
StoreDroppedMCParticles: false

}

# Creation of ionization electrons and scintillation photons (keep ionization name for compatibility)
ionization: @local::icarus_ionandscint

# Light propogation
pdfastsim: @local::icarus_pdfastsim_pvs

# Electron propogation
simdrift: @local::icarus_simdrift

# needs to run right after largeant
sedlite: {
@table::sbn_largeant_info_reducer # from `g4inforeducer.fcl` (in LArSoft/larg4!!)

SimEnergyDepositLabel: "largeant:LArG4DetectorServicevolTPCActive"
useOrigTrackID: true # needed since origTrackID not filled for sedlite in SBND

}

# Generic CRT
genericcrt: @local::icarus_genericCRT

# simplemerge for ML
simplemerge: @local::simplemerge

}

# Store MCParticleLite in G4 to store dropped particles from KeepEMShowerDaughters: false
icarus_larg4_standard_producers.largeant.StoreDroppedMCParticles: false


# ---
# --- paths
# ---
icarus_larg4_standard_path: [
loader
, largeant
, ionization
, pdfastsim
, simdrift
, sedlite
, genericcrt
, simplemerge
]


# ------------------------------------------------------------------------------

END_PROLOG

64 changes: 6 additions & 58 deletions fcl/g4/larg4_icarus.fcl
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
#include "LArG4.fcl"
#include "larg4_icarus_defs.fcl"
#include "services_icarus_simulation.fcl"
#include "larg4_services_icarus.fcl"
#include "rootoutput_icarus.fcl"

#include "ionandscint_icarus.fcl"
#include "simdrift_icarus.fcl"
#include "PDFastSim_icarus.fcl"
#include "icarus_genericCRT.fcl"
#include "g4inforeducer.fcl"
#include "simplemerge_icarus.fcl"

process_name: G4

services: {
@table::icarus_g4_services
@table::icarus_larg4_services
}
services: @local::icarus_all_larg4_services

source:
{
Expand All @@ -30,69 +19,28 @@ physics:
{
rns: { module_type: "RandomNumberSaver" }

# A dummy module that forces the G4 physics list to be loaded
loader: { module_type: "PhysListLoader" }

# The geant4 step
largeant: @local::standard_larg4

# Creation of ionization electrons and scintillation photons (keep ionization name for compatibility)
ionization: @local::icarus_ionandscint

# Light propogation
pdfastsim: @local::icarus_pdfastsim_pvs

# Electron propogation
simdrift: @local::icarus_simdrift

# needs to run right after largeant
sedlite: @local::sbn_largeant_info_reducer


# Generic CRT
genericcrt: @local::icarus_genericCRT

# simplemerge for ML
simplemerge: @local::simplemerge
@table::icarus_larg4_standard_producers # from larg4_icarus_defs.fcl

}

# All producers and filters modules for this path, order matters
simulate: [ rns
Comment thread
jas1005 marked this conversation as resolved.
, loader
, largeant
, ionization
, pdfastsim
, simdrift
, sedlite
, genericcrt
, simplemerge
, @sequence::icarus_larg4_standard_path # from larg4_icarus_defs.fcl
]

# The output stream, there could be more than one if using filters
stream1: [ rootoutput ]

# Contains the paths that modify the art::event
# Contains the paths that modify the art::Event
trigger_paths: [ simulate ]

# Contains the paths that do not modify the art::Event
end_paths: [ stream1 ]
}

# Store MCParticleLite in G4 to store dropped particles from KeepEMShowerDaughters: false
physics.producers.largeant.StoreDroppedMCParticles: false
#services.ParticleListAction.KeepDroppedParticlesInVolumes: ["volDetEnclosure"]

# ------------------------------------------------------------------------------
# Setup hack for 2D
services.SpaceChargeService.is2DdriftSimHack: true

#info reducer
physics.producers.sedlite.SimEnergyDepositLabel: "largeant:LArG4DetectorServicevolTPCActive"
physics.producers.sedlite.useOrigTrackID: true #needed since origTrackID not filled for sedlite in SBND

# avoid huge log files
services.message.destinations.LogErrorFile.categories.SimDriftElectrons: { limit: 0 }
services.message.destinations.LogStandardOut.categories.SimDriftElectrons: { limit: 0 }
outputs.rootoutput: @local::icarus_rootoutput # from rootoutput_icarus.fcl

outputs.rootoutput: @local::icarus_rootoutput
1 change: 0 additions & 1 deletion fcl/gen/cosmics/simulation_cosmics_icarus_common.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "cry.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
1 change: 0 additions & 1 deletion fcl/gen/genie/prodcorsika_genie_icarus_Jun2021.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "corsika_icarus.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "corsika_icarus.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "corsika_icarus.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "corsika_icarus.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
1 change: 0 additions & 1 deletion fcl/gen/genie/prodcorsika_overlay_protononly_icarus.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "corsika_icarus.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
1 change: 0 additions & 1 deletion fcl/gen/genie/simulation_genie_icarus_Aug2018_nue.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "genie_icarus.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
1 change: 0 additions & 1 deletion fcl/gen/genie/simulation_genie_icarus_Aug2018_numu.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "genie_icarus.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
1 change: 0 additions & 1 deletion fcl/gen/genie/simulation_genie_icarus_Mar2019.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "genie_icarus.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
1 change: 0 additions & 1 deletion fcl/gen/genie/simulation_genie_icarus_Mar2019_nue.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "genie_icarus.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "genie_icarus.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
1 change: 0 additions & 1 deletion fcl/gen/genie/simulation_genie_icarus_simple.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "genie_icarus_bnb.fcl"
#include "beamgates_icarus.fcl"
#include "mcreco.fcl"
Expand Down
1 change: 0 additions & 1 deletion fcl/gen/genie/simulation_genie_icarus_simple_workshop.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "genie_icarus.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
1 change: 0 additions & 1 deletion fcl/gen/genie/simulation_genie_icarus_workshopMar2018.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "genie_icarus.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "genie_icarus.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"

#include "largeantmodules.fcl"
#include "genie_icarus.fcl"
#include "mcreco.fcl"
#include "services_common_icarus.fcl"
Expand Down
1 change: 0 additions & 1 deletion fcl/gen/numi/simulation_numi.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "singles.fcl"
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"
#include "largeantmodules.fcl"
#include "genie_icarus_numioffaxis.fcl"
#include "beamgates_icarus.fcl"
#include "mcreco.fcl"
Expand Down
1 change: 0 additions & 1 deletion fcl/gen/numi/simulation_numi_nue.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "singles.fcl"
#include "larproperties.fcl"
#include "magfield_larsoft.fcl"
#include "largeantmodules.fcl"
#include "genie_icarus_numioffaxis.fcl"
#include "beamgates_icarus.fcl"
#include "mcreco.fcl"
Expand Down
Loading