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
7 changes: 6 additions & 1 deletion sbndcode/Filters/TrueSignalFilter_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ TrueSignalFilter::TrueSignalFilter(const Parameters& pset) :
}
}

std::vector<int> ignored_pdgs;
if (cfg.IgnoredPDGs(ignored_pdgs)) {
block.ignored_pdgs = ignored_pdgs;
}

std::vector<int> disallowed_pdgs;
if (cfg.DisallowedPDGs(disallowed_pdgs)) {
block.disallowed_pdgs = disallowed_pdgs;
Expand Down Expand Up @@ -355,7 +360,7 @@ bool TrueSignalFilter::PassBlock(const art::Ptr<simb::MCTruth>& mc, const simb::
const auto& part(mc->GetParticle(i));
debug_log << kSpace << "MC particle list " << i << " " << part.PdgCode() << " STATUS=" << part.StatusCode() << ", E=" << part.E() << "\n";
// only consider primaries
if (part.StatusCode() != 1 && !block.keep_bad_status) continue;
if (part.StatusCode() != 1 && !block.keep_bad_status.value_or(false)) continue;

// don't count particles in the ignored list
int pdg = part.PdgCode();
Expand Down
36 changes: 9 additions & 27 deletions sbndcode/Filters/fcls/run_sbnd_gen2_rare_signal_filter.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ physics: {
filters: {
ccpi0filter: @local::sbnd_ccpi0_filter
ncpi0filter: @local::sbnd_ncpi0_filter
etafilter: @local::sbnd_eta_nopi0_filter
etafilter: @local::sbnd_eta_filter
nueccfilter: @local::sbnd_ccnue_filter
kaonfilter: @local::sbnd_kaon_filter
qehyperonfilter: @local::sbnd_qe_hyperon_filter
numuhyperonfilter: @local::sbnd_numu_hyperon_filter
antinumuhyperonfilter: @local::sbnd_antinumu_hyperon_filter
hyperonfilter: @local::sbnd_numu_antinumu_hyperon_filter
CCDeltaRadFilter: {
module_type: "CCDeltaRadiative"
}
Expand All @@ -41,11 +39,9 @@ physics: {
kaon: [ "kaonfilter" ]
ccdeltarad: [ "CCDeltaRadFilter" ]
ncdeltarad: [ "NCDeltaRadFilter" ]
qehyperon: [ "qehyperonfilter" ]
numuhyperon: [ "numuhyperonfilter" ]
antinumuhyperon: [ "antinumuhyperonfilter" ]
hyperon: [ "hyperonfilter" ]

trigger_paths: [ "ccpi0", "ncpi0", "eta", "nuecc", "kaon", "ccdeltarad", "ncdeltarad", "numuhyperon", "antinumuhyperon", "qehyperon" ]
trigger_paths: [ "ccpi0", "ncpi0", "eta", "nuecc", "kaon", "ccdeltarad", "ncdeltarad", "hyperon" ]

streamccpi0: [ outccpi0 ]
streamncpi0: [ outncpi0 ]
Expand All @@ -54,11 +50,9 @@ physics: {
streamkaon: [ outkaon ]
streamccdeltarad: [ outccdeltarad ]
streamncdeltarad: [ outncdeltarad ]
streamqehyperon: [ outqehyperon ]
streamnumuhyperon: [ outnumuhyperon ]
streamantinumuhyperon: [ outantinumuhyperon ]
streamhyperon: [ outhyperon ]

end_paths: [ streamccpi0, streamncpi0, streameta, streamnuecc, streamkaon, streamnumuhyperon, streamantinumuhyperon, streamqehyperon, streamccdeltarad, streamncdeltarad ]
end_paths: [ streamccpi0, streamncpi0, streameta, streamnuecc, streamkaon, streamhyperon, streamccdeltarad, streamncdeltarad ]

}

Expand Down Expand Up @@ -106,21 +100,9 @@ outputs: {
SelectEvents: [ "ncdeltarad" ]
}

outnumuhyperon: {
outhyperon: {
module_type: "RootOutput"
fileName: "output_numuhyperon.root"
SelectEvents: [ "numuhyperon" ]
}

outantinumuhyperon: {
module_type: "RootOutput"
fileName: "output_antinumuhyperon.root"
SelectEvents: [ "antinumuhyperon" ]
}

outqehyperon: {
module_type: "RootOutput"
fileName: "output_qehyperon.root"
SelectEvents: [ "qehyperon" ]
fileName: "output_hyperon.root"
SelectEvents: [ "hyperon" ]
}
}
31 changes: 31 additions & 0 deletions sbndcode/Filters/fcls/signal_filters_sbnd.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,37 @@ sbnd_antinumu_hyperon_filter:
]
}

# Any hyperon (Lambda or Sigma) + anything, produced by numu or anti-numu.
# Union of sbnd_numu_hyperon_filter and sbnd_antinumu_hyperon_filter (which
# also contains every event of sbnd_qe_hyperon_filter)
sbnd_numu_antinumu_hyperon_filter:
{
module_type: TrueSignalFilter
GENIELabel: "generator"
Filters: [
{
NuPDGs: [ 14, -14 ]
RequiredPDGs: [ 3122 ]
InTPC: true
},
{
NuPDGs: [ 14, -14 ]
RequiredPDGs: [ 3212 ]
InTPC: true
},
{
NuPDGs: [ 14, -14 ]
RequiredPDGs: [ 3112 ]
InTPC: true
},
{
NuPDGs: [ 14, -14 ]
RequiredPDGs: [ 3222 ]
InTPC: true
}
]
}

# DIS with GENIE hadronic W > 2.3 GeV, any flavor, CC or NC.
# GENIE (AGKY) starts hadronizing DIS events with PYTHIA8 above W = 2.3 GeV,
# so these are the events affected by the PYTHIA8 seeding bug fixed in
Expand Down