Skip to content
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
19 changes: 15 additions & 4 deletions JobConfig/pileup/MuBeamResampler.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ physics: {
}
# setup paths
targetStopPath : [ @sequence::Pileup.beamResamplerSequence, @sequence::Common.g4Sequence, TargetStopPrescaleFilter, TargetMuonFinder, TargetStopFilter, compressPVTargetStops]
polyStopPath : [ @sequence::Pileup.beamResamplerSequence, @sequence::Common.g4Sequence, PolyStopPrescaleFilter, PolyMuonFinder, PolyStopFilter, compressPVPolyStops]
IPAStopPath : [ @sequence::Pileup.beamResamplerSequence, @sequence::Common.g4Sequence, IPAMuonFinder, IPAStopFilter, compressPVIPAStops]
flashPath : [ @sequence::Pileup.beamResamplerSequence, @sequence::Common.g4Sequence, @sequence::Pileup.flashSequence, @sequence::Pileup.DetStepSequence ]
earlyFlashPath : [ @sequence::Pileup.beamResamplerSequence, @sequence::Common.g4Sequence, @sequence::Pileup.flashSequence, @sequence::Pileup.EarlyDetStepSequence ]
trigger_paths: [ flashPath, earlyFlashPath, targetStopPath, IPAStopPath ]
outPath : [ FlashOutput, EarlyFlashOutput, TargetStopOutput, IPAStopOutput ]
trigger_paths: [ flashPath, earlyFlashPath, targetStopPath, polyStopPath, IPAStopPath ]
outPath : [ FlashOutput, EarlyFlashOutput, TargetStopOutput, PolyStopOutput, IPAStopOutput ]
end_paths: [outPath]
}

Expand All @@ -51,6 +52,15 @@ outputs: {
fileName : "sim.owner.TargetStops.version.sequencer.art"
}

PolyStopOutput : {
module_type: RootOutput
outputCommands: [ "drop *_*_*_*",
@sequence::Pileup.SimKeptProducts
]
SelectEvents: [polyStopPath]
fileName : "sim.owner.PolyStops.version.sequencer.art"
}

IPAStopOutput : {
module_type: RootOutput
outputCommands: [ "drop *_*_*_*",
Expand Down Expand Up @@ -79,8 +89,9 @@ outputs: {
}
}
# set prescale factors
physics.filters.TargetStopPrescaleFilter.nPrescale : @local::Pileup.MuminusTargetStopPrescale
physics.filters.EarlyPrescaleFilter.nPrescale : @local::Pileup.EarlyMuBeamFlashPrescale
physics.filters.TargetStopPrescaleFilter.nPrescale : @local::Pileup.MuminusTargetStopPrescale
physics.filters.PolyStopPrescaleFilter.nPrescale : @local::Pileup.PolyStopPrescale
physics.filters.EarlyPrescaleFilter.nPrescale : @local::Pileup.EarlyMuBeamFlashPrescale

# Point Mu2eG4 to the pre-simulated data
physics.producers.g4run.inputs: {
Expand Down
32 changes: 32 additions & 0 deletions JobConfig/pileup/prolog.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ Pileup: {
stoppingMaterial: "StoppingTarget_Al"
verbosityLevel: 1
}
PolyMuonFinder: {
module_type: "StoppedParticlesFinder"
particleInput: "g4run"
particleTypes: [ 13, -13 ]
physVolInfoInput: "g4run:eventlevel"
useEventLevelVolumeInfo: true
stoppingMaterial: "COL5Poly"
verbosityLevel: 1
}
WireGammaFinder: {
module_type: "StoppedParticlesFinder"
particleInput: "g4run"
Expand Down Expand Up @@ -81,12 +90,25 @@ Pileup: {
processes: [ "DIO", "NuclearCapture" ] //TODO
}

stoppedPolyMuonDaughters: {
module_type: SimParticleDaughterSelector
particleInput: "PolyMuonFinder"
# EMCascade should not be vetoed because we do not re-simulate it
processes: [ "DIO", "NuclearCapture" ] //TODO
}

compressPVTargetStops: {
module_type: CompressPhysicalVolumes
volumesInput : "g4run"
hitInputs : []
particleInputs : [ "TargetStopFilter" ]
}
compressPVPolyStops: {
module_type: CompressPhysicalVolumes
volumesInput : "g4run"
hitInputs : []
particleInputs : [ "PolyStopFilter" ]
}
compressPVWireStops: {
module_type: CompressPhysicalVolumes
volumesInput : "g4run"
Expand Down Expand Up @@ -135,6 +157,12 @@ Pileup: {
extraHitInputs: [ "g4run:virtualdetector" ]
mainSPPtrInputs: [ "TargetMuonFinder" ]
}
PolyStopFilter: {
module_type: FilterG4Out
mainHitInputs: []
extraHitInputs: [ "g4run:virtualdetector" ]
mainSPPtrInputs: [ "PolyMuonFinder" ]
}
WireStopFilter: {
module_type: FilterG4Out
mainHitInputs: []
Expand Down Expand Up @@ -166,6 +194,9 @@ Pileup: {
TargetStopPrescaleFilter : {
module_type : RandomPrescaleFilter
}
PolyStopPrescaleFilter : {
module_type : RandomPrescaleFilter
}
EarlyPrescaleFilter : {
module_type : RandomPrescaleFilter
}
Expand Down Expand Up @@ -333,6 +364,7 @@ Pileup: {
EarlyMuBeamFlashPrescale : 30
EarlyNeutralsFlashPrescale : 20
MuminusTargetStopPrescale : 1000
PolyStopPrescale : 1000
}
# DetctorStepFilter instance to select DetSteps outside the flash
Pileup.filters.DetStepFilter : {
Expand Down