Namespaces | Functions | Variables
OverlayCuts.cxx File Reference
#include "3FlavorAna/Cuts/OverlayCuts.h"
#include "StandardRecord/Proxy/SRProxy.h"

Go to the source code of this file.

Namespaces

 ana
 Cuts and Vars for the 2020 FD DiF Study.
 

Functions

Cut ana::OverlayCutFromNuTruthCut (const NuTruthCut stc)
 
const TVector3 ana::ovtxmin (-180,-180, 25)
 
const TVector3 ana::ovtxmax (180, 180, 1150)
 
const TVector3 ana::ovtxminLoose (-220,-220, 0)
 
const TVector3 ana::ovtxmaxLoose (220, 220, 1150)
 

Variables

const NuTruthCut ana::kNoCut_NT ([](const caf::SRNeutrinoProxy *nu){return true;})
 
const NuTruthCut ana::kOverlaidMC_Nu ([](const caf::SRNeutrinoProxy *nu){return(nu->mode > 9999);})
 
const NuTruthCut ana::kOverlaidData_Nu ([](const caf::SRNeutrinoProxy *nu){return true;})
 
const NuTruthCut ana::kTrueOFiducial_Nu ([](const caf::SRNeutrinoProxy *nu){return(nu->vtx.X()< ovtxmax.X()&& nu->vtx.X() > ovtxmin.X()&& nu->vtx.Y() > ovtxmin.Y()&& nu->vtx.Y()< ovtxmax.Y()&& nu->vtx.Z() > ovtxmin.Z()&& nu->vtx.Z()< ovtxmax.Z());})
 
const Cut ana::kTrueOFiducial = OverlayCutFromNuTruthCut(kTrueOFiducial_Nu)
 
const NuTruthCut ana::kTrueOFiducialLoose_Nu ([](const caf::SRNeutrinoProxy *nu){return(nu->vtx.X()< ovtxmaxLoose.X()&& nu->vtx.X() > ovtxminLoose.X()&& nu->vtx.Y() > ovtxminLoose.Y()&& nu->vtx.Y()< ovtxmaxLoose.Y()&& nu->vtx.Z() > ovtxminLoose.Z()&& nu->vtx.Z()< ovtxmaxLoose.Z());})
 
const Cut ana::kTrueOFiducialLoose = OverlayCutFromNuTruthCut(kTrueOFiducial_Nu)
 
const NuTruthCut ana::kTrueE250MeV_Nu ([](const caf::SRNeutrinoProxy *nu){return nu->E > 0.25;})
 
const Cut ana::kTrueE250MeV = OverlayCutFromNuTruthCut(kTrueE250MeV_Nu)
 
const Cut ana::kTrueNumuCC = OverlayCutFromNuTruthCut(kTrueNumuCC_Nu)
 
const NuTruthCut ana::kTrueNumuCC_Nu ([](const caf::SRNeutrinoProxy *truth){return( truth->iscc && abs(truth->pdg)==14 );})
 
const Cut ana::kTrueNueCC = OverlayCutFromNuTruthCut(kTrueNueCC_Nu)
 
const NuTruthCut ana::kTrueNueCC_Nu ([](const caf::SRNeutrinoProxy *truth){return( truth->iscc && abs(truth->pdg)==12 );})
 
const NuTruthCut ana::kAnaTrueECut_Nu_Numu ([](const caf::SRNeutrinoProxy *nu){return(nu->E >=0.&&nu->E< 7.);})
 
const Cut ana::kAnaTrueECut_Numu = OverlayCutFromNuTruthCut(kAnaTrueECut_Nu_Numu)
 
const NuTruthCut ana::kAnaTrueECut_Nu_Nue ([](const caf::SRNeutrinoProxy *nu){return(nu->E >=0.&&nu->E< 6.0);})
 
const Cut ana::kAnaTrueECut_Nue = OverlayCutFromNuTruthCut(kAnaTrueECut_Nu_Nue)
 
const Cut ana::kOverlaidEff51 ([](const caf::SRProxy *sr){if(sr->mc.nallnus==0) return false;for(int j=0;j< sr->mc.nallnus;j++) if((sr->mc.allnus[j].mode > 9999 ||!sr->spill.ismc) &&sr->mc.allnus[j].eff > 0.51) return true;return false;})
 
const Cut ana::kOverlaidNoEffCut ([](const caf::SRProxy *sr){if(sr->mc.nallnus==0) return false;for(int j=0;j< sr->mc.nallnus;j++) if((sr->mc.allnus[j].mode > 9999 ||!sr->spill.ismc)) return true;return false;})
 
const Cut ana::kNotOverlaidData ([](const caf::SRProxy *sr){if(sr->mc.nallnus==0) return true;return false;})
 
const SpillCut ana::kNoCut_Sp ([](const caf::SRSpillProxy *sp){return true;})