Skip to content

Commit 646dce5

Browse files
committed
update slice selection (ignore clear cosmics), and add scaling factor
1 parent a028ad4 commit 646dce5

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

sbndcode/OpT0Finder/SBNDOpT0Finder_module.cc

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,8 @@ bool SBNDOpT0Finder::ConstructLightClusters(art::Event& e, unsigned int tpc) {
631631
art::FindManyP<recob::SpacePoint> shw_to_spacepoints(shw_h, e, _shw_producer);
632632
art::FindManyP<recob::Hit> spacepoint_to_hits (spacepoint_h, e, _slice_producer);
633633

634+
art::FindOneP<larpandoraobj::PFParticleMetadata> pfp_to_metadata(pfp_h, e, _slice_producer);
635+
634636
// Loop over the Slices
635637
for (size_t n_slice = 0; n_slice < slice_h->size(); n_slice++) {
636638
flashmatch::QCluster_t light_cluster;
@@ -653,15 +655,17 @@ bool SBNDOpT0Finder::ConstructLightClusters(art::Event& e, unsigned int tpc) {
653655
std::vector<art::Ptr<recob::PFParticle>> pfp_v = slice_to_pfps.at(n_slice);
654656

655657
if (_select_nus){
656-
bool nu_pfp = false;
658+
bool found_clear_cosmic = false;
657659
for (size_t n_pfp = 0; n_pfp < pfp_v.size(); n_pfp++) {
658660
auto pfp = pfp_v[n_pfp];
659-
unsigned pfpPDGC = std::abs(pfp->PdgCode());
660-
if ((pfpPDGC == 12) || (pfpPDGC == 14) || (pfpPDGC == 16))
661-
nu_pfp = true;
661+
const auto meta = pfp_to_metadata.at(pfp.key());
662+
const auto props = meta->GetPropertiesMap();
663+
if (props.count("IsClearCosmic")){
664+
found_clear_cosmic = true;
665+
break;
666+
}
662667
}
663-
if (nu_pfp == false)
664-
break;
668+
if (found_clear_cosmic) continue;
665669
}
666670

667671
for (size_t n_pfp = 0; n_pfp < pfp_v.size(); n_pfp++) {

sbndcode/OpT0Finder/job/opt0finder_sbnd_data.fcl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ BEGIN_PROLOG
55
sbnd_opt0_finder_data: @local::sbnd_opt0_finder_one_to_many
66

77
sbnd_opt0_finder_data.CaloProducer: "pandoraCaloData"
8-
sbnd_opt0_finder_data.SelectNeutrino: false # for data, unsure about trusting pandora to select neutrinos
8+
sbnd_opt0_finder_data.SelectNeutrino: true
99
sbnd_opt0_finder_data.CalAreaConstants: [ 0.0204 , 0.0210, 0.0193 ]
10-
sbnd_opt0_finder_data.OpChannelsToSkip: [39, 66, 67, 69, 71, 85, 86, 87, 92, 115, 138, 141, 170, 197, 217, 218, 221, 222, 223, 226, 245, 248, 249, 302, # OFF/uncalibrated PMTs
11-
134,135,150,151,152,153,154,155,156,157,158,159,160,161,176,177] # APSIA channels
10+
sbnd_opt0_finder_data.OpChannelsToSkip: [39, 66, 67, 69, 71, 85, 86, 87, 92, 115, 138, 141, 170, 197, 217, 218, 221, 222, 223, 226, 245, 248, 249, 302]
11+
# since the flash time is w.r.t the TDC ETRIG, this may move with light arrival; need to extend the flash window
1212
sbnd_opt0_finder_data.FlashVetoTimeStart: -1
1313
sbnd_opt0_finder_data.FlashVetoTimeEnd: 5
1414

15-
# set to arbitrary high value to ignore saturation correction until we know it better
15+
sbnd_opt0_finder_data.FlashMatchConfig.QLLMatch.ChiErrorWidth: 0.25 # increase the error width from 0.1
16+
sbnd_opt0_finder_data.FlashMatchConfig.PhotonLibHypothesis.GlobalQE: 0.25 # effectively a global scaling factor
17+
sbnd_opt0_finder_data.FlashMatchConfig.PhotonLibHypothesis.GlobalQERefl: 0.25 # effectively a global scaling factor
18+
19+
# set to arbitrary high value to ignore non-linearity correction until we know it better
1620
sbnd_opt0_finder_data.FlashMatchConfig.QLLMatch.SaturatedThreshold: 1e9
1721

1822
END_PROLOG

0 commit comments

Comments
 (0)