Functions | Variables
VarsAndCuts.h File Reference
#include "3FlavorAna/Cuts/NumuCuts2020.h"
#include "3FlavorAna/Cuts/NueCuts2020.h"
#include "3FlavorAna/Vars/NumuVars.h"

Go to the source code of this file.

Functions

const Var kSliceTime ([](const caf::SRProxy *sr){return sr->slc.meantime/1000;})
 
const Var kBoxMaxY ([](const caf::SRProxy *sr){return sr->slc.boxmax.Y()/100;})
 
const Var kDirZ ([](const caf::SRProxy *sr){if(sr->trk.kalman.ntracks< 1) return 0.f;return sr->trk.kalman.tracks[0].dir.Z();})
 
const Var kMassFracPOT ([](const caf::SRProxy *sr){return sr->spill.spillpot *(sr->hdr.diblast-sr->hdr.dibfirst+1)/14.;})
 
const Var kWOscDumbHere ([](const caf::SRProxy *sr){if(sr->mc.nu.size()==0) return 0.;return kWOscDumb(sr);})
 
const Var kNumuContPID ([](const caf::SRProxy *sr){return sr->sel.cosrej.numucontpid2020;})
 
const Cut kDQCut ([](const caf::SRProxy *sr){return sr->spill.isgoodspill &&sr->slc.nhit > 30;})
 
const Cut kBlinded ([](const caf::SRProxy *sr){return(sr->slc.calE< 0.8||sr->slc.calE > 3.0);})
 
const Cut kNumuCosmicRejBasic ([](const caf::SRProxy *sr){return(sr->sel.cosrej.numucontpid2020 > 0.53 &&sr->sel.nuecosrej.pngptp< 0.9);})
 
const Cut kNumuDecaf2018 ([](const caf::SRProxy *sr){return(sr->slc.nhit > 20);})
 

Variables

const Var kSpillPOT = SIMPLEVAR(spill.spillpot)
 
const Cut kInTimeLoose = SIMPLEVAR(slc.meantime) > 25e3 && SIMPLEVAR(slc.meantime) < 475e3
 
const Cut kInTimeTight = SIMPLEVAR(slc.meantime) > 217e3 && SIMPLEVAR(slc.meantime) < 229e3
 
const double timeWindowFactor = double(229-217)/(450-(229-217))
 
const Cut kContBasic = kNumuContainFD2020
 
const Cut kNumuBasic = kNumu2020PID
 
const Cut kNueBasic = kNue2020PID
 
const Cut kCut = (kBlinded && kInCosmicTimingWindow && kDQCut && kContBasic && ( kNumuBasic || kNueBasic))
 
const Cut kCutUnblind = (kInCosmicTimingWindow && kDQCut && kNumuCosmicRejBasic && kContBasic && ( kNumuBasic || kNueBasic))
 
const Binning kXYBins = Binning::Simple(18,-9,9)
 
const Binning kZBins = Binning::Simple(6,0,60)
 

Function Documentation

const Cut kBlinded ( [] (const caf::SRProxy *sr){return(sr->slc.calE< 0.8||sr->slc.calE > 3.0);}  )
const Var kBoxMaxY ( [] (const caf::SRProxy *sr){return sr->slc.boxmax.Y()/100;}  )
const Var kDirZ ( [] (const caf::SRProxy *sr){if(sr->trk.kalman.ntracks< 1) return 0.f;return sr->trk.kalman.tracks[0].dir.Z();}  )
const Cut kDQCut ( [] (const caf::SRProxy *sr){return sr->spill.isgoodspill &&sr->slc.nhit > 30;}  )
const Var kMassFracPOT ( [] (const caf::SRProxy *sr){return sr->spill.spillpot *(sr->hdr.diblast-sr->hdr.dibfirst+1)/14.;}  )

Referenced by getData(), and getTimePeakTotal().

const Var kNumuContPID ( [] (const caf::SRProxy *sr){return sr->sel.cosrej.numucontpid2020;}  )
const Cut kNumuCosmicRejBasic ( [] (const caf::SRProxy *sr){return(sr->sel.cosrej.numucontpid2020 > 0.53 &&sr->sel.nuecosrej.pngptp< 0.9);}  )
const Cut kNumuDecaf2018 ( [] (const caf::SRProxy *sr){return(sr->slc.nhit > 20);}  )
const Var kSliceTime ( [] (const caf::SRProxy *sr){return sr->slc.meantime/1000;}  )
const Var kWOscDumbHere ( [] (const caf::SRProxy *sr){if(sr->mc.nu.size()==0) return 0.;return kWOscDumb(sr);}  )

Referenced by getPredictions().

Variable Documentation

const Cut kContBasic = kNumuContainFD2020

Definition at line 66 of file VarsAndCuts.h.

const Cut kCut = (kBlinded && kInCosmicTimingWindow && kDQCut && kContBasic && ( kNumuBasic || kNueBasic))

Definition at line 98 of file VarsAndCuts.h.

const Cut kCutUnblind = (kInCosmicTimingWindow && kDQCut && kNumuCosmicRejBasic && kContBasic && ( kNumuBasic || kNueBasic))

Definition at line 99 of file VarsAndCuts.h.

const Cut kInTimeLoose = SIMPLEVAR(slc.meantime) > 25e3 && SIMPLEVAR(slc.meantime) < 475e3

Definition at line 53 of file VarsAndCuts.h.

const Cut kInTimeTight = SIMPLEVAR(slc.meantime) > 217e3 && SIMPLEVAR(slc.meantime) < 229e3

Definition at line 54 of file VarsAndCuts.h.

const Cut kNueBasic = kNue2020PID

Definition at line 75 of file VarsAndCuts.h.

const Cut kNumuBasic = kNumu2020PID

Definition at line 74 of file VarsAndCuts.h.

const Var kSpillPOT = SIMPLEVAR(spill.spillpot)

Definition at line 30 of file VarsAndCuts.h.

const Binning kXYBins = Binning::Simple(18,-9,9)
const Binning kZBins = Binning::Simple(6,0,60)
const double timeWindowFactor = double(229-217)/(450-(229-217))

Definition at line 55 of file VarsAndCuts.h.

Referenced by getTimePeakPlots().