Skip to content

Commit

Permalink
Merge pull request #191 from soleti/rpcfix
Browse files Browse the repository at this point in the history
Fixing RPC scripts
  • Loading branch information
brownd1978 authored Jun 17, 2022
2 parents 234cef8 + 695f27d commit 2c8f19f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
6 changes: 2 additions & 4 deletions JobConfig/primary/RPC.fcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# RPC photon spectrum, based on on Bistrilich spectrum
# RPC photon spectrum, based on on Bistrilich spectrum
# Option of Internal or External to be set in driving FCL instance
# original author: S Middleton
#
Expand All @@ -21,6 +21,4 @@ physics.producers.generate : {
doHistograms : true
}

physics.producers.FindMCPrimary.PrimaryProcess : @nil


physics.producers.FindMCPrimary.PrimaryProcess : @nil
9 changes: 9 additions & 0 deletions JobConfig/primary/RPCExternal.fcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# RPC External
#

#include "Production/JobConfig/primary/RPC.fcl"

physics.producers.generate.RPCType : "mu2eExternalRPC"
physics.producers.FindMCPrimary.PrimaryProcess : "mu2eExternalRPC"
outputs.PrimaryOutput.fileName: "dts.owner.RPCExternal.version.sequencer.art"
9 changes: 9 additions & 0 deletions JobConfig/primary/RPCInternal.fcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# RPC Internal
#

#include "Production/JobConfig/primary/RPC.fcl"

physics.producers.generate.RPCType : "mu2eInternalRPC"
physics.producers.FindMCPrimary.PrimaryProcess : "mu2eInternalRPC"
outputs.PrimaryOutput.fileName: "dts.owner.RPCInternal.version.sequencer.art"
8 changes: 5 additions & 3 deletions Scripts/gen_Primary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# $2 is the production (ie MDC2020)
# $3 is the stops production version
# $4 is the output primary production version
# $5 is the kind of input stops (Muminus, Muplus, IPAMuminus, IPAMuplus, or Cosmic)
# $5 is the kind of input stops (Muminus, Muplus, IPAMuminus, IPAMuplus, Piminus, Piplus, or Cosmic)
# $6 is the number of jobs
# $7 is the number of events/job
if [[ $# -lt 7 ]]; then
Expand All @@ -21,14 +21,16 @@ stype=$5
njobs=$6
eventsperjob=$7

dataset=sim.mu2e.${stype}StopsCat.${stopsconf}.art

if [[ "${stype}" == "Muminus" ]] || [[ "${stype}" == "Muplus" ]]; then
dataset=sim.mu2e.${stype}StopsCat.${stopsconf}.art
resampler=TargetStopResampler
elif [[ "${stype}" == "Piminus" ]] || [[ "${stype}" == "Piplus" ]]; then
resampler=TargetPiStopResampler
elif [[ "${stype}" == "Cosmic" ]]; then
dataset=sim.mu2e.${stype}DSStops${primary}.${stopsconf}.art # should have Cat FIXME!
resampler=${stype}Resampler
else
dataset=sim.mu2e.${stype}StopsCat.${stopsconf}.art
resampler=${stype}StopResampler
fi

Expand Down

0 comments on commit 2c8f19f

Please sign in to comment.