#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-23/3FlavorAna/Vars/WrongSignBDTVars.h"
Definition at line 33 of file WrongSignBDTVars.h.
ana::GetAntiNueBDTCVN::GetAntiNueBDTCVN |
( |
| ) |
|
|
inline |
void ana::GetAntiNueBDTCVN::InitTMVA |
( |
| ) |
const |
|
protected |
Definition at line 108 of file WrongSignBDTVars.cxx.
References ana::FindCAFAnaDir(), and string.
std::string FindCAFAnaDir()
float BDTCVNNue_p1Vars[4]
static TMVA::Reader * fReaderBDTCVNNue_p1
static TMVA::Reader * fReaderBDTCVNNue_p2
float BDTCVNNue_p2Vars[6]
float ana::GetAntiNueBDTCVN::operator() |
( |
const caf::SRProxy * |
sr | ) |
const |
Definition at line 83 of file WrongSignBDTVars.cxx.
References ana::GetAntiNueBDT::InitTMVA(), ana::kCVNFSProtonScore2018, ana::kInElasticity, ana::kNProng, ana::kPrimDedx0, ana::kProngCVNMaxProton, ana::kProngCVNMaxProtonDist, and ana::kStretch.
85 float antinuebdt = -5.;
const Var 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 kProngCVNMaxProtonDist([](const caf::SRProxy *sr){double score=-5;double dist=-5;const caf::SRVector3DProxy &vtx=sr->vtx.elastic.vtx;for(unsigned int i=0;i< sr->vtx.elastic.fuzzyk.npng;++i){if(sr->vtx.elastic.fuzzyk.png[i].cvnpart.protonid > score){score=sr->vtx.elastic.fuzzyk.png[i].cvnpart.protonid;const caf::SRVector3DProxy &st=sr->vtx.elastic.fuzzyk.png[i].start;dist=util::pythag(vtx.X()-st.X(), vtx.Y()-st.Y(), vtx.Z()-st.Z());}}return dist;})
return distance from vertex for most proton-like prong
float BDTCVNNue_p1Vars[4]
static TMVA::Reader * fReaderBDTCVNNue_p1
const Var kCVNFSProtonScore2018([](const caf::SRProxy *sr){return CVNFinalStateScore2018(sr, 2212);})
Proton score from CVN Final State labels, using Prod3Train CVN.
static TMVA::Reader * fReaderBDTCVNNue_p2
const Var kProngCVNMaxProton([](const caf::SRProxy *sr){double score=-5;for(unsigned int i=0;i< sr->vtx.elastic.fuzzyk.npng;++i){if(sr->vtx.elastic.fuzzyk.png[i].cvnpart.protonid > score) score=sr->vtx.elastic.fuzzyk.png[i].cvnpart.protonid;}return score;})
return CVN proton score for most proton-like prong
float BDTCVNNue_p2Vars[6]
const Var 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));})
The documentation for this class was generated from the following files:
- /cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-23/3FlavorAna/Vars/WrongSignBDTVars.h
- /cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-23/3FlavorAna/Vars/WrongSignBDTVars.cxx