Namespaces | Functions | Variables
ComparisonHints.h File Reference
#include "CAFAna/Core/Binning.h"
#include "CAFAna/Core/Var.h"
#include "3FlavorAna/Vars/NumuVars.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

const Cut ana::kW_TL ([](const caf::SRProxy *sr){bool IsTrue=(sr->trk.kalman.tracks[0].start.X()< XCent && sr->trk.kalman.tracks[0].start.Y() > YCent);return IsTrue;})
 
const Cut ana::kW_TR ([](const caf::SRProxy *sr){bool IsTrue(sr->trk.kalman.tracks[0].start.X() > XCent && sr->trk.kalman.tracks[0].start.Y() > YCent);return IsTrue;})
 
const Cut ana::kW_BL ([](const caf::SRProxy *sr){bool IsTrue(sr->trk.kalman.tracks[0].start.X()< XCent && sr->trk.kalman.tracks[0].start.Y()< YCent);return IsTrue;})
 
const Cut ana::kW_BR ([](const caf::SRProxy *sr){bool IsTrue(sr->trk.kalman.tracks[0].start.X() > XCent && sr->trk.kalman.tracks[0].start.Y()< YCent);return IsTrue;})
 
const Var ana::kKalFwdCell ([](const caf::SRProxy *sr){return sr->sel.contain.kalfwdcell;})
 
const Var ana::kKalBakCell ([](const caf::SRProxy *sr){return sr->sel.contain.kalbakcell;})
 
const Var ana::kMaxKalYPos ([](const caf::SRProxy *sr){if(sr->trk.kalman.ntracks< 1) return-10.0f;return std::max(sr->trk.kalman.tracks[0].start.Y()/100, sr->trk.kalman.tracks[0].stop.Y()/100);})
 
const Var ana::kMaxKalZPos ([](const caf::SRProxy *sr){if(sr->trk.kalman.ntracks< 1) return-10.0f;return std::max(sr->trk.kalman.tracks[0].start.Z()/100, sr->trk.kalman.tracks[0].stop.Z()/100);})
 
const Var ana::kScattTrLen ([](const caf::SRProxy *sr){if(sr->trk.kalman.ntracks< 1) return-10.0f;return(float)((float) sr->sel.cosrej.scatt/(float) sr->trk.kalman.tracks[0].len);})
 
const Var ana::kMinCellEdg ([](const caf::SRProxy *sr){return std::min((sr->sel.contain.kalfwdcell+sr->sel.contain.kalbakcell), (sr->sel.contain.cosfwdcell+sr->sel.contain.cosbakcell));})
 
const Var ana::kRatOfKalHi ([](const caf::SRProxy *sr){if(sr->trk.kalman.ntracks< 1) return-10.0f;return(float)((float) sr->trk.kalman.tracks[0].nhit/(float) sr->slc.nhit);})
 
const Var ana::kSANumuContPID ([](const caf::SRProxy *sr){return sr->sel.cosrej.numuSAcontpid;})
 
const Var ana::kFirstCell ([](const caf::SRProxy *sr){return sr->slc.firstcell;})
 
const Var ana::kLastCell ([](const caf::SRProxy *sr){return sr->slc.lastcell;})
 
const Var ana::kVisESlc ([](const caf::SRProxy *sr){return sr->slc.calE;})
 
const Var ana::kNHitSlc ([](const caf::SRProxy *sr){return sr->slc.nhit;})
 
const Var ana::kEnPHSlc ([](const caf::SRProxy *sr){if(sr->slc.nhit< 1) return-10.0f;return(float)(sr->slc.calE)/(float)(1.78 *sr->slc.nhit);})
 
const Var ana::kVisETrk ([](const caf::SRProxy *sr){if(sr->trk.kalman.ntracks< 1) return-10.0f;return(float) sr->trk.kalman.tracks[0].calE;})
 
const Var ana::kNHitTrk ([](const caf::SRProxy *sr){if(sr->trk.kalman.ntracks< 1) return-10.0f;return(float) sr->trk.kalman.tracks[0].nhit;})
 
const Var ana::kEnPHTrk ([](const caf::SRProxy *sr){if(sr->trk.kalman.ntracks< 1) return-10.0f;return(float)(sr->trk.kalman.tracks[0].calE)/(float)(1.78 *sr->trk.kalman.tracks[0].nhit);})
 
const Var ana::kVisEHad ([](const caf::SRProxy *sr){if(sr->trk.kalman.ntracks< 1) return-10.0f;return(float)(sr->slc.calE-sr->trk.kalman.tracks[0].calE);})
 
const Var ana::kNHitHad ([](const caf::SRProxy *sr){if(sr->trk.kalman.ntracks< 1) return-10.0f;return(float)(sr->slc.nhit-sr->trk.kalman.tracks[0].nhit);})
 
const Var ana::kEnPHHad ([](const caf::SRProxy *sr){if(sr->trk.kalman.ntracks< 1) return-10.0f;return(float)(sr->slc.calE-sr->trk.kalman.tracks[0].calE)/(float)(1.78 *(sr->slc.nhit-sr->trk.kalman.tracks[0].nhit));})
 
const Var ana::kTrkLenXY ([](const caf::SRProxy *sr){if(sr->trk.kalman.ntracks< 1) return-10.0f;float XLen=(sr->trk.kalman.tracks[0].start.X()-sr->trk.kalman.tracks[0].stop.X())/100;float YLen=(sr->trk.kalman.tracks[0].start.Y()-sr->trk.kalman.tracks[0].stop.Y())/100;return XLen-YLen;})
 
const Var ana::kTrueHFrE ([](const caf::SRProxy *sr){float HadE=kTrueHadE(sr);float TruE=kTrueE(sr);return(HadE/TruE);})
 

Variables

const float XMinEx = -758.
 
const float XMaxEx = 765.
 
const float YMinEx = -749.
 
const float YMaxEx = 765.
 
const float XCent = XMinEx + ((XMaxEx-XMinEx)/2)
 
const float YCent = YMinEx + ((YMaxEx-YMinEx)/2)
 
const unsigned int ana::NumBins = 100
 
const Binning ana::NumHitBins = Binning::Simple(NumBins, 0 , 1000 )
 
const Binning ana::RatioBins = Binning::Simple(NumBins, 0 , 1.01 )
 
const Binning ana::CompBins = Binning::Simple(NumBins, -1.01, 1.01 )
 
const Binning ana::CompZBins = Binning::Simple(NumBins, -0.5 , 0.5 )
 
const Binning ana::EnergyBins = Binning::Simple(NumBins, 0 , 5 )
 
const Binning ana::LowEnBins = Binning::Simple(NumBins, 0 , 3 )
 
const Binning ana::EnPHitBins = Binning::Simple(NumBins, 0 , 0.1 )
 
const Binning ana::RangeBins = Binning::Simple(NumBins, -0.2 , 0.2 )
 
const Binning ana::SmallBins = Binning::Simple(NumBins, 0 , 0.02 )
 
const Binning ana::TinyBins = Binning::Simple(NumBins, 0 , 0.002)
 
const Binning ana::NumTrkBins = Binning::Simple(11 , -0.5 , 10 )
 
const Binning ana::YRangeBins = Binning::Simple(NumBins, -8 , 8 )
 
const Binning ana::ZRangeBins = Binning::Simple(NumBins, -0.1 , 60.1 )
 
const Binning ana::LengthBins = Binning::Simple(NumBins, 0 , 20 )
 
const Binning ana::CellsBins = Binning::Simple(NumBins, 0 , 1000 )
 
const Binning ana::TimeFBins = Binning::Simple(NumBins, 0 , 550 )
 
const Binning ana::TimeZBins = Binning::Simple(NumBins, 200, 250 )
 
const Var ana::kRTOvTNuE = ( (kCCE-kTrueE)/kTrueE )
 
const Var ana::kTrueHadE = ( kTrueE - kTrueMuonE )
 

Variable Documentation

const float XCent = XMinEx + ((XMaxEx-XMinEx)/2)

Definition at line 15 of file ComparisonHints.h.

const float XMaxEx = 765.

Definition at line 11 of file ComparisonHints.h.

const float XMinEx = -758.

Definition at line 10 of file ComparisonHints.h.

const float YCent = YMinEx + ((YMaxEx-YMinEx)/2)

Definition at line 16 of file ComparisonHints.h.

const float YMaxEx = 765.

Definition at line 13 of file ComparisonHints.h.

const float YMinEx = -749.

Definition at line 12 of file ComparisonHints.h.