All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions | Variables
demo.h File Reference
#include "sbnana/CAFAna/Core/Binning.h"
#include "sbnanaobj/StandardRecord/Proxy/SRProxy.h"
#include "SBNAna/Vars/NumuVars.h"
#include "SBNAna/Cuts/TruthCuts.h"

Go to the source code of this file.

Classes

struct  PlotDef
 
struct  SelDef
 

Functions

const Var kCounting ([](const caf::SRSliceProxy *slc){return 1;})
 
const Var kPrimTrkCosth ([](const caf::SRSliceProxy *slc) -> double{int muIdx=kPrimMuonIdx(slc);if(muIdx< 0) return-5.;return(double) slc->reco.trk[muIdx].costh;})
 
const Var kSlcVtxX ([](const caf::SRSliceProxy *slc) -> double{return slc->slc.vertex.x;})
 
const Var kSlcVtxY ([](const caf::SRSliceProxy *slc) -> double{return slc->slc.vertex.y;})
 
const Var kSlcVtxZ ([](const caf::SRSliceProxy *slc) -> double{return slc->slc.vertex.z;})
 

Variables

std::vector< PlotDefplots
 
const Cut kSig = kIsNumu && !kIsNC
 
std::vector< SelDefsels
 

Function Documentation

const Var kCounting ( [] (const caf::SRSliceProxy *slc){return 1;}  )
const Var kPrimTrkCosth ( [] (const caf::SRSliceProxy *slc) -> double{int muIdx=kPrimMuonIdx(slc);if(muIdx< 0) return-5.;return(double) slc->reco.trk[muIdx].costh;}  )
const Var kSlcVtxX ( [] (const caf::SRSliceProxy *slc) -> double{return slc->slc.vertex.x;}  )
const Var kSlcVtxY ( [] (const caf::SRSliceProxy *slc) -> double{return slc->slc.vertex.y;}  )
const Var kSlcVtxZ ( [] (const caf::SRSliceProxy *slc) -> double{return slc->slc.vertex.z;}  )

Variable Documentation

const Cut kSig = kIsNumu && !kIsNC

Definition at line 73 of file demo.h.

std::vector<PlotDef> plots
Initial value:
=
{{"count", "", Binning::Simple(3,0,3), kCounting},
{"mucosth", "cos#theta", Binning::Simple(10,-1,1), kPrimTrkCosth},
{"vtxx", "X (cm)", Binning::Simple(10,-200,200), kSlcVtxX},
{"vtxy", "Y (cm)", Binning::Simple(10,-200,200), kSlcVtxY},
{"vtxz", "Z (cm)", Binning::Simple(10,0,500), kSlcVtxZ},
}
const Var kPrimTrkCosth([](const caf::SRSliceProxy *slc) -> double{int muIdx=kPrimMuonIdx(slc);if(muIdx< 0) return-5.;return(double) slc->reco.trk[muIdx].costh;})
const Var kSlcVtxX([](const caf::SRSliceProxy *slc) -> double{return slc->slc.vertex.x;})
const Var kCounting
Definition: Vars.cxx:19
const Var kSlcVtxZ([](const caf::SRSliceProxy *slc) -> double{return slc->slc.vertex.z;})
const Var kSlcVtxY([](const caf::SRSliceProxy *slc) -> double{return slc->slc.vertex.y;})

Definition at line 54 of file demo.h.

std::vector<SelDef> sels
Initial value:
=
{{"nocut", "All Slices", kNoCut, kBlack},
{"sig", "True NumuCC", kSig, kRed+1},
{"bkg", "Not NumuCC", !kSig, kAzure+2},
}
const Cut kNoCut([](const caf::SRSliceProxy *){return true;})
The simplest possible cut: pass everything, used as a default.
const Cut kSig
Definition: demo.h:73

Definition at line 77 of file demo.h.