All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SBNAna/Cuts/Cuts.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Definition of the generic Cut object
5 
6 namespace ana{
7 
8  // Select beam mode
9  // extern const SpillCut kIsRHC;
10  extern const SpillCut kFirstEvents;
11  extern const SpillCut kFlashTrigger;
12 
13  extern const SpillCut kCRTHitVetoND;
14  extern const SpillCut kCRTHitVetoFD;
15 
16  extern const Cut kActiveVolumeND;
17  extern const Cut kFiducialVolumeND;
18 
19  extern const Cut kActiveVolumeFDCryo1;
20  extern const Cut kActiveVolumeFDCryo2;
23 
24  extern const Cut kSlcIsRecoNu;
25  extern const Cut kSlcNuScoreCut;
26 
27  extern const Cut kSlcHasFlashMatch;
28  extern const Cut kSlcFlashMatchCut;
29 
31 
32 } // namespace
const Cut kFiducialVolumeFDCryo2([](const caf::SRSliceProxy *slc){return PtInVol(slc->vertex, fvfd_cryo2);})
const SpillCut kFirstEvents
Definition: Cuts.cxx:14
const Cut kSlcFlashMatchCut([](const caf::SRSliceProxy *slc){return(kSlcHasFlashMatch(slc)&&slc->fmatch.score >0 &&slc->fmatch.score< 6);})
const Cut kFiducialVolumeFDCryo1([](const caf::SRSliceProxy *slc){return PtInVol(slc->vertex, fvfd_cryo1);})
process_name opflashCryoW ana
const SpillCut kCRTHitVetoND([](const caf::SRSpillProxy *sr){for(auto const &crtHit:sr->crt_hits){return false;}return true;})
const Cut kContainedFD
const Cut kFiducialVolumeND([](const caf::SRSliceProxy *slc){return PtInVolAbsX(slc->vertex, fvndAbs);})
const Cut kActiveVolumeFDCryo2([](const caf::SRSliceProxy *slc){return PtInVol(slc->vertex, avfd_cryo2);})
const Cut kSlcIsRecoNu([](const caf::SRSliceProxy *slc){return!slc->is_clear_cosmic;})
const Cut kSlcNuScoreCut([](const caf::SRSliceProxy *slc){return(kSlcIsRecoNu(slc)&&slc->nu_score >0.4);})
const SpillCut kFlashTrigger([](const caf::SRSpillProxy *sr){return(sr->pass_flashtrig);})
_Cut< caf::SRSpillProxy > SpillCut
Equivalent of Cut acting on caf::SRSpill. For use in spill-by-spill data quality cuts.
Definition: Cut.h:99
const Cut kActiveVolumeND([](const caf::SRSliceProxy *slc){return PtInVolAbsX(slc->vertex, avnd);})
const Cut kActiveVolumeFDCryo1([](const caf::SRSliceProxy *slc){return PtInVol(slc->vertex, avfd_cryo1);})
const SpillCut kCRTHitVetoFD([](const caf::SRSpillProxy *sr){for(auto const &crtHit:sr->crt_hits){auto thistime=crtHit.time-1600.;return false;}return true;})
const Cut kSlcHasFlashMatch([](const caf::SRSliceProxy *slc){return slc->fmatch.present;})