Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rearraging of the PDHD PDS simulation worflow #140

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
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
71 changes: 71 additions & 0 deletions fcl/protodunehd/g4/compgraph_g4_protodunehd.fcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#include "services_refactored_pdune.fcl"
#include "LArG4_dune.fcl"
#include "IonAndScint_dune.fcl"
#include "PDFastSim_dune.fcl"

process_name: G4

services:
{
TFileService: { fileName: "g4_protodunehd_hist.root" }
TimeTracker: {}
MemoryTracker: {} # default is one
RandomNumberGenerator: {} #ART native random number generator
message: @local::standard_info

@table::protodunehd_refactored_simulation_services

NuRandomService: @local::dune_prod_seedservice
}



source:
{
module_type: RootInput
maxEvents: 30000
fileNames: ["gen_protodunehd.root"]
}

physics:
{

producers:
{

#retain largeant name for compatibility
largeant: @local::protodune_larg4
IonAndScint: @local::protodunehd_ionandscint_correlated
PDFastSim: @local::protodune_hd_pdfastsim_ann_ar
rns: {module_type: "RandomNumberSaver"}
}

analyzers:
{

}

simulate: [ rns, largeant, IonAndScint, PDFastSim, PDFastSimExternal ]

stream1: [ out1 ]

trigger_paths: [ simulate ]
end_paths: [ stream1 ]
}

outputs:
{
out1:
{
module_type: RootOutput
fileName: "%ifb_g4.root"
dataTier: "simulated"
#outputCommands: [ "keep *" ]
outputCommands: [ "keep *", "drop sim::SimEnergyDeposits_largeant_*_G4"]
#fastCloning: false #will fail if the split level is not the same as for the gen stage, so turn it off
compressionLevel: 1 #zlib argument (0-9)
#basketSize: 8192 #[Byte] buffer size at 8k
#splitLevel: 0 #reduces number of buffers
#treeMaxVirtualSize: 1 #[Byte] limits number of buffers/branch to 1 (default is 10)
}
}
5 changes: 5 additions & 0 deletions fcl/protodunehd/g4/compgraph_g4_protodunehd_stage2.fcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "compgraph_g4_protodunehd_stage2.fcl"

process_name: G4Stage2

simulate: [ rns, IonAndScint, PDFastSim ]
6 changes: 6 additions & 0 deletions fcl/protodunehd/g4/semianalytical_g4_protodunehd_stage2.fcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include "semianalytical_g4_protodunehd.fcl"

process_name: G4Stage2

physics.simulate: [ rns, IonAndScint, IonAndScintExternal, PDFastSim, PDFastSimExternal ]

6 changes: 2 additions & 4 deletions fcl/protodunehd/g4/standard_g4_protodunehd.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ physics:

#retain largeant name for compatibility
largeant: @local::protodune_larg4
IonAndScint: @local::protodunehd_ionandscint
IonAndScintExternal: @local::protodunehd_ionandscint_external
IonAndScint: @local::protodunehd_ionandscint_correlated
PDFastSim: @local::protodune_hd_pdfastsim_pvs
PDFastSimExternal: @local::protodune_hd_pdfastsim_pvs_external
rns: {module_type: "RandomNumberSaver"}
}

Expand All @@ -48,7 +46,7 @@ physics:

}

simulate: [ rns, largeant, IonAndScint, IonAndScintExternal, PDFastSim, PDFastSimExternal ]
simulate: [ rns, largeant, IonAndScint, PDFastSim ]

stream1: [ out1 ]

Expand Down
2 changes: 1 addition & 1 deletion fcl/protodunehd/g4/standard_g4_protodunehd_stage2.fcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "standard_g4_protodunehd.fcl"

process_name: G4Stage2
physics.simulate: [ rns, IonAndScint, IonAndScintExternal, PDFastSim, PDFastSimExternal ]
physics.simulate: [ rns, IonAndScint, PDFastSim ]
services.TFileService.fileName: "g4_protodunehd_hist.root"
outputs.out1.fileName: "%ifb_g4_stage2.root"
1 change: 0 additions & 1 deletion fcl/protodunehd/gen/prod_beam_cosmics_1GeV_protodunehd.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ physics:
ar39: @local::protodunesp_39ar
ar42: @local::protodunesp_42ar
kr85: @local::protodunesp_85kr
rn222: @local::protodunesp_222rn
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ physics:
ar39: @local::protodunesp_39ar
ar42: @local::protodunesp_42ar
kr85: @local::protodunesp_85kr
rn222: @local::protodunesp_222rn
}


Expand Down