5 return (t > 0.) & (t < 1.800)
8 return (t > 0.) & (t < 2.200)
11 return (t > 0.) & (t < 1.596)
21 return (x > xmin) & (x < xmax) & (y > ymin) & (y < ymax) & (z > zmin) & (z < zmax)
26 from_slice = data[
"slc.reco.trk.atslc"] & data[
"slc.reco.trk.parent_is_primary"]
28 maybe_muon_exiting = np.invert(data[
"slc.reco.trk.contained"]) & (data[
"slc.reco.trk.len"] > 100)
29 maybe_muon_contained = data[
"slc.reco.trk.contained"] & (data[
"slc.reco.trk.bestplane.chi2_proton"] > 60) & (data[
"slc.reco.trk.bestplane.chi2_muon"] < 30) & (data[
"slc.reco.trk.len"] > 50)
31 maybe_muon = from_slice & (maybe_muon_contained | maybe_muon_exiting)
32 has_maybe_muon = maybe_muon.any()
35 ret = (data[
"slc.reco.trk.len"]*maybe_muon).argmax().max()
38 ret[np.invert(has_maybe_muon)] = -1
43 ret = ((np.abs(data[
"slc.reco.trk.truth.p.pdg"]) == 13) & \
44 (data[
"slc.reco.trk.truth.bestmatch.energy"] / data[
"slc.reco.trk.truth.p.planeVisE"] > 0.5)).argmax().max()
45 is_numu_cc = (data[
"slc.truth.index"] >= 0) & data[
"slc.truth.iscc"] & (np.abs(data[
"slc.truth.pdg"]) == 14)
47 ret[np.invert(is_numu_cc)] = -1
57 return np.invert(
InBeamVeto(data[
"crt_tracks.time"]).any())
62 return np.invert((
InBeamVeto(data[
"crt_tracks.time"]) & (data[
"crt_tracks.hita.position.y"] > -357.) & (data[
"crt_tracks.hitb.position.y"] > -357.)).any())
67 return InFV(data[
"slc.vertex.x"], data[
"slc.vertex.y"], data[
"slc.vertex.z"])
69 return (data[
"slc.nu_score"] > 0.4) & np.invert(data[
"slc.is_clear_cosmic"])
71 return InBeam(data[
"slc.fmatch.time"])
73 return data[
"slc.fmatch.score"] < 7
75 return data[
"slc.has_ptrk"] & np.invert(np.isnan(data[
"slc.ptrk.recop"])) & (data[
"slc.ptrk.recop"] < 7.5) & (data[
"slc.ptrk.recop"] > 0.)
77 return np.isnan(data[
"slc.ptrk.crttrack.angle"]) | (data[
"slc.ptrk.crttrack.angle"] > 0.05)
79 return np.isnan(data[
"slc.ptrk.crthit.distance"]) | (data[
"slc.ptrk.crthit.distance"] > 5) |
InBeam(data[
"slc.ptrk.crthit.hit.time"])
def get_true_primary_track
def crttrackveto_nobottom
def crttrackveto_nobottom_perevt