Skip to content

Commit

Permalink
Merge pull request #366 from SBNSoftware/isafa/detvar
Browse files Browse the repository at this point in the history
added sbnd recomb and diffusion fcls
  • Loading branch information
fjnicolas authored Jul 13, 2023
2 parents abf3689 + 954dfa0 commit c2d9272
Show file tree
Hide file tree
Showing 31 changed files with 169 additions and 13 deletions.
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
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_*_*_*"
]
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

0 comments on commit c2d9272

Please sign in to comment.