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

added sbnd recomb and diffusion fcls #366

Merged
merged 16 commits into from
Jul 13, 2023
Merged
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
3 changes: 1 addition & 2 deletions sbndcode/JobConfigurations/base/g4_drops.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@

BEGIN_PROLOG

g4_drops: [ "drop sim::SimEnergyDeposits_*_*_*",
"drop sim::OpDetBacktrackerRecords_*_*_*" ]
g4_drops: [ "drop sim::OpDetBacktrackerRecords_*_*_*" ]

END_PROLOG

1 change: 1 addition & 0 deletions sbndcode/JobConfigurations/standard/detsim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ install_fhicl()
FILE(GLOB fcl_files *.fcl)
install_source(EXTRAS ${fcl_files} )

add_subdirectory(diffusion_variations)
add_subdirectory(legacy)

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# File: detsim_sce_lite_wc.fcl
# Purpose: Simulates readout response to induced and collected charge
# ****DROPS 1D TPC SIM, includes optical+crt simulation ONLY ****
#

#include "detsim_sce_lite.fcl"

physics.simulate: [rns, crtsim, crt, opdaq] # removes the "daq" producer
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
install_fhicl()
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "wirecell_sim_sp_sbnd.fcl"

physics.producers.simtpc2d.wcls_main.structs.DL: 3.6
physics.producers.simtpc2d.wcls_main.structs.DT: 8.8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "wirecell_sim_sp_sbnd.fcl"

physics.producers.simtpc2d.wcls_main.structs.DL: 4.4
physics.producers.simtpc2d.wcls_main.structs.DT: 8.8
2 changes: 1 addition & 1 deletion sbndcode/JobConfigurations/standard/g4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ install_fhicl()
FILE(GLOB fcl_files *.fcl)
install_source(EXTRAS ${fcl_files} )

add_subdirectory(recomb_variations)
add_subdirectory(legacy)

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
install_fhicl()
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.91
services.LArG4Parameters.ModBoxB: 0.21
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.91
services.LArG4Parameters.ModBoxB: 0.212
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.91
services.LArG4Parameters.ModBoxB: 0.214
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.87
services.LArG4Parameters.ModBoxB: 0.205
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.87
services.LArG4Parameters.ModBoxB: 0.212
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.86
services.LArG4Parameters.ModBoxB: 0.218
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.93
services.LArG4Parameters.ModBoxB: 0.21
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.93
services.LArG4Parameters.ModBoxB: 0.206
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.93
services.LArG4Parameters.ModBoxB: 0.214
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.93
services.LArG4Parameters.ModBoxB: 0.218
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.95
services.LArG4Parameters.ModBoxB: 0.21
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.95
services.LArG4Parameters.ModBoxB: 0.212
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.95
services.LArG4Parameters.ModBoxB: 0.214
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.999
services.LArG4Parameters.ModBoxB: 0.206
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.999
services.LArG4Parameters.ModBoxB: 0.212
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include "g4_sce_dirt_filter_lite_wc.fcl"

services.LArG4Parameters.ModBoxA: 0.999
services.LArG4Parameters.ModBoxB: 0.222
15 changes: 15 additions & 0 deletions sbndcode/JobConfigurations/standard/reco/reco1_sce_lite_wc1d.fcl
lynnt20 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#-------------------------------------------------------------------
#
# Name: reco1_sce_lite_wc1d.fcl
#
# Purpose: Lite version of reco1_sce.fcl,
# *** takes wirecell 2DSIM as input, performs 1D deconvolution ***
#
#
#-------------------------------------------------------------------

#include "reco1_sce_lite.fcl"

physics.producers.caldata.DigitModuleLabel: "simtpc2d:daq"
physics.producers.fasthit.DigitModuleLabel: "simtpc2d:daq"
physics.producers.gaushit.CalDataModuleLabel: "caldata:daq"
33 changes: 33 additions & 0 deletions sbndcode/JobConfigurations/standard/reco/reco1_sce_lite_wc2d.fcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#-------------------------------------------------------------------
#
# Name: reco1_sce_lite_wc2d.fcl
#
# Purpose: Lite version of reco1_sce.fcl,
# *** takes wirecell 2DSIM as input, 2d sim + 2D deconvolution ***
# *** DOES NOT RUN fasthit MODULE ***
#
#
#-------------------------------------------------------------------

#include "reco1_sce_lite.fcl"

physics.reco1: [ rns
, opdecopmt
, opdecoxarapuca
, ophitpmt
, ophitxarapuca
, opflashtpc0
, opflashtpc1
, opflashtpc0xarapuca
, opflashtpc1xarapuca
# , caldata
, gaushit
# , fasthit
# , linecluster
, gaushitTruthMatch
# , rffhit
# , corner
# , fuzzycluster
]

physics.producers.gaushit.CalDataModuleLabel: "simtpc2d:gauss"
1 change: 1 addition & 0 deletions sbndcode/JobConfigurations/standard/scrubs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
install_fhicl()
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This fcl purely removes products made in the G4, WCLS, DetSim & Reco1 processes.
# This allows for keeping the identical simulated event on the file and running
# a variation of the downstream detector simulation / reconstruction.
#
# Author Henry Lay ([email protected])

#include "rootoutput_sbnd.fcl"

source:
{
module_type: RootInput
inputCommands: [ "keep *_*_*_*",
"drop *_*_*_G4",
"drop *_*_*_WCLS",
"drop *_*_*_DetSim",
"drop *_*_*_Reco1" ]
}

outputs:
{
out1:
{
@table::sbnd_rootoutput
dataTier: "simulated"
}
}

physics:
{
stream1: [ out1 ]
end_paths: [ stream1 ]
}
9 changes: 1 addition & 8 deletions sbndcode/JobConfigurations/standard/standard_g4_sbnd.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,7 @@ outputs:
{
@table::sbnd_rootoutput
dataTier: "simulated"
outputCommands: [ "keep *_*_*_*"
# Drop the SimEnergyDeposits made by LArG4
, "drop sim::SimEnergyDeposits_largeant_*_*"
# Drop the IonAndScint w/ SCE offsets applied
, "drop *_ionandscint__*"
# Drop LArG4 AuxDetHits, now replaced by AuxDetSimChannels
, "drop sim::AuxDetHits_*_*_*"
]
Comment on lines -126 to -133
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Sorry I saw this PR was merged already, but I just noticed that this PR changes the standard g4 fcl. Is this intentional? This way, it's keeping all data products, with many copies of SimEnergyDeposits. @fjnicolas @lynnt-uchicago @henrylay97

Copy link
Contributor Author

@ibsafa ibsafa Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi! yes, the reason is that g4_drops.fcl was created for the lite version. it was decided that sim energy deposits would be dropped as part of the lite workflow but should be available by default since a few people have needed those sim energy deposits recently

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for clarifying @ibsafa! LArG4 makes three copies of SimEnergyDeposits, two of them can be dropped without loss (but people can correct me!). The reason why all three were dropped was a mistake, and was fixed by @fjnicolas with PR #368. My suggestion would be to keep that block above in the standard fcl, and add more drops commands in the g4_drops.fcl for production purposes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcodeltutto thanks for the suggestion! A conservative solution was finally adopted prioritizing having a working tag for the workshop production. I also agree we are probably keeping "to much" with the current solution and we will revisit it after the workshop. In any case, we think a major refactoring of the fhicls is really needed at this point. I'm opening a issue to keep track of it! #374

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good @fjnicolas, thanks! I agree a refactoring is really needed

outputCommands: [ "keep *_*_*_*" ]
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ local wcls_output = {
frame_tags: ['gauss', 'wiener'],

// this may be needed to convert the decon charge [units:e-] to be consistent with the LArSoft default ?unit? e.g. decon charge * 0.005 --> "charge value" to GaussHitFinder
frame_scale: [1.0, 1.0],
frame_scale: [0.02, 0.02],
nticks: params.daq.nticks,
chanmaskmaps: [],
//nticks: ,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ local wcls_output_sp = {
frame_tags: ['gauss', 'wiener'],

// this may be needed to convert the decon charge [units:e-] to be consistent with the LArSoft default ?unit? e.g. decon charge * 0.005 --> "charge value" to GaussHitFinder
frame_scale: [1.0, 1.0],
frame_scale: [0.02, 0.02],
nticks: params.daq.nticks,
chanmaskmaps: [],
//nticks: -1,
Expand Down