5 #include "sbnanaobj/StandardRecord/Proxy/SRProxy.h"
18 return ( sr->pass_flashtrig );
24 for (
auto const& crtHit: sr->crt_hits){
25 if (crtHit.time > -0.1 && crtHit.time < 1.8 && crtHit.position.y>-350 && crtHit.pe>100)
34 for (
auto const& crtHit: sr->crt_hits){
35 auto thistime = crtHit.time - 1600.;
36 if (thistime > -0.1 && thistime < 1.8 && crtHit.pe > 100)
81 return !slc->is_clear_cosmic;
91 return slc->fmatch.present;
const Cut kFiducialVolumeFDCryo2([](const caf::SRSliceProxy *slc){return PtInVol(slc->vertex, fvfd_cryo2);})
then if[["$THISISATEST"==1]]
const SpillCut kFirstEvents
bool PtInVolAbsX(const caf::SRVector3DProxy &pt, const FidVol &vol)
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
caf::Proxy< caf::SRSlice > SRSliceProxy
const SpillCut kCRTHitVetoND([](const caf::SRSpillProxy *sr){for(auto const &crtHit:sr->crt_hits){return false;}return true;})
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;})
_Cut< caf::SRSliceProxy > Cut
caf::Proxy< caf::StandardRecord > SRSpillProxy
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.
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;})
bool PtInVol(const caf::SRVector3DProxy &pt, const FidVol &vol)
const Cut kSlcHasFlashMatch([](const caf::SRSliceProxy *slc){return slc->fmatch.present;})