Namespaces | Macros | Variables
WrongSignBDTVars.cxx File Reference
#include "3FlavorAna/Vars/WrongSignBDTVars.h"
#include "CAFAna/Vars/CVNFinalStates.h"
#include "3FlavorAna/Vars/NueVarsExtra.h"
#include "CAFAna/Core/Utilities.h"
#include "StandardRecord/Proxy/SRProxy.h"
#include "TMVA/Reader.h"

Go to the source code of this file.

Namespaces

 ana
 Cuts and Vars for the 2020 FD DiF Study.
 

Macros

#define PrimVAR(VAR)
 
#define SecVAR(VAR)
 

Variables

float ana::BDTNueVars [5] = {0}
 
float ana::BDTNumuVars [5] = {0}
 
float ana::BDTCVNNue_p1Vars [4] = {0}
 
float ana::BDTCVNNue_p2Vars [6] = {0}
 
float ana::BDTCVNNumu_p1Vars [4] = {0}
 
float ana::BDTCVNNumu_p2Vars [6] = {0}
 
static TMVA::Reader * ana::fReaderBDTNue = 0
 
static TMVA::Reader * ana::fReaderBDTNumu = 0
 
static TMVA::Reader * ana::fReaderBDTCVNNue_p1 = 0
 
static TMVA::Reader * ana::fReaderBDTCVNNue_p2 = 0
 
static TMVA::Reader * ana::fReaderBDTCVNNumu_p1 = 0
 
static TMVA::Reader * ana::fReaderBDTCVNNumu_p2 = 0
 
const Var ana::kStretch ([](const caf::SRProxy *sr){if(sr->slc.meanpos.z==sr->slc.boxmin.z) return-5.;return(double)((sr->slc.boxmax.z-sr->slc.meanpos.z)/(sr->slc.meanpos.z-sr->slc.boxmin.z));})
 
const Var ana::kEthetaSqr ([](const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return-5.;if(sr->vtx.elastic.fuzzyk.png.size()==0) return-5.;return(double)(sr->vtx.elastic.fuzzyk.png[0].calE *std::pow(acos(sr->vtx.elastic.fuzzyk.png[0].dir.z), 2));})
 
const Var ana::kInElasticity ([](const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return 1.f;if(sr->vtx.elastic.fuzzyk.nshwlid< 1) return 1.f;return((sr->slc.calE- sr->vtx.elastic.fuzzyk.png[0].shwlid.calE)/(sr->slc.calE));})
 
const Var ana::kNumuHadVisEFrac ([](const caf::SRProxy *sr){if(sr->slc.calE==0) return-5.;return(double)(sr->energy.numu.hadcalE+sr->energy.numu.hadtrkE)/(sr->slc.calE);})
 
const Var ana::kNumuHadEFrac ([](const caf::SRProxy *sr){if(sr->slc.calE==0) return-5.;return(double)(sr->energy.numu.hadcalE)/(sr->slc.calE);})
 
const Var ana::kLeptonAngle ([](const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return-5.;if(sr->vtx.elastic.fuzzyk.png.size()==0) return-5.;return(double) acos(sr->vtx.elastic.fuzzyk.png[0].dir.z)*180./M_PI;})
 
const Var ana::kPrimDedx0
 
const Var ana::kSecAvgDedx ([](const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return-5.;if(sr->vtx.elastic.fuzzyk.nshwlid< 2) return 0.;if(sr->vtx.elastic.fuzzyk.npng< 2) return 0.;if(sr->vtx.elastic.fuzzyk.png[1].len< 1e-10) return-5.;return(double)(sr->vtx.elastic.fuzzyk.png[1].calE/sr->vtx.elastic.fuzzyk.png[1].len);})
 
const Var ana::kSecShwGap ([](const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return-5.;if(sr->vtx.elastic.fuzzyk.nshwlid< 1) return-5.;if(sr->vtx.elastic.fuzzyk.nshwlid< 2) return(double) sr->vtx.elastic.fuzzyk.png[0].shwlid.gap;return double(sr->vtx.elastic.fuzzyk.png[1].shwlid.gap);})
 
const Var ana::kSecShwLen
 

Macro Definition Documentation

#define PrimVAR (   VAR)
Value:
Var( \
[](const caf::SRProxy* sr) \
{ \
if(!sr->vtx.elastic.IsValid) return -5.; \
if(sr->vtx.elastic.fuzzyk.nshwlid < 1) return -5.; \
return double(sr->vtx.elastic.fuzzyk.png[0].shwlid.VAR); \
});
float nshwlid
Proxy for caf::StandardRecord.
Definition: SRProxy.h:2126
_Var< caf::SRProxy > Var
Representation of a variable to be retrieved from a caf::StandardRecord object.
Definition: Var.h:74
caf::Proxy< caf::SRElastic > elastic
Definition: SRProxy.h:2118
if(dump)
caf::StandardRecord * sr
caf::Proxy< bool > IsValid
Definition: SRProxy.h:2058
caf::Proxy< caf::SRVertexBranch > vtx
Definition: SRProxy.h:2146

Definition at line 222 of file WrongSignBDTVars.cxx.

#define SecVAR (   VAR)
Value:
Var( \
[](const caf::SRProxy* sr) \
{ \
if(!sr->vtx.elastic.IsValid) return -5.; \
if(sr->vtx.elastic.fuzzyk.nshwlid< 2) return 0.; \
return double(sr->vtx.elastic.fuzzyk.png[1].shwlid.VAR); \
});
float nshwlid
Proxy for caf::StandardRecord.
Definition: SRProxy.h:2126
_Var< caf::SRProxy > Var
Representation of a variable to be retrieved from a caf::StandardRecord object.
Definition: Var.h:74
caf::Proxy< caf::SRElastic > elastic
Definition: SRProxy.h:2118
if(dump)
caf::StandardRecord * sr
caf::Proxy< bool > IsValid
Definition: SRProxy.h:2058
caf::Proxy< caf::SRVertexBranch > vtx
Definition: SRProxy.h:2146

Definition at line 231 of file WrongSignBDTVars.cxx.