Belle II Software light-2406-ragdoll
|
MVA based selector for tagging curl tracks in Belle and Belle II. More...
#include <SelectorMVA.h>
Public Member Functions | |
SelectorMVA (bool belleFlag, bool trainFlag, std::string tFileName) | |
Constructor. | |
~SelectorMVA () | |
Destructor. | |
virtual float | getResponse (Particle *iPart, Particle *jPart) override |
Selector response that this pair of particles come from the same mc/actual particle. | |
virtual float | getOptimalResponseCut () override |
returns optimal cut to use with selector | |
virtual std::vector< float > | getVariables (Particle *iPart, Particle *jPart) override |
returns vector of variables used by this selector. | |
virtual void | initialize () override |
initialize whatever needs to be initialized (root file etc) | |
virtual void | collectTrainingInfo (Particle *iPart, Particle *jPart) override |
collect training data and save to a root file | |
virtual void | finalize () override |
finalize whatever needs to be finalized (train the MVA) | |
void | initializeMVA () |
initialize the MVA Expert | |
Private Member Functions | |
void | updateVariables (Particle *iPart, Particle *jPart) |
updates the value of the MVA variable | |
Private Attributes | |
bool | m_TrainFlag |
applying mva or training it | |
std::string | m_TFileName |
name of output file for training data | |
TFile * | m_TFile |
output file for training data | |
TTree * | m_TTree |
training data tree | |
std::unique_ptr< DBObjPtr< DatabaseRepresentationOfWeightfile > > | m_weightfile_representation |
Database pointer to the Database representation of the weightfile. | |
MVA::Weightfile | m_weightfile |
mva weightfile | |
MVA::GeneralOptions | m_generalOptions |
mva general options (for the expert) | |
MVA::FastBDTExpert | m_expert |
mva expert | |
std::string | m_identifier |
mva identifier | |
std::vector< std::string > | m_datafiles |
name of datafile | |
std::vector< std::string > | m_variables |
names of variables used by mva | |
std::string | m_target_variable |
name of target variable (isCurl) | |
Float_t | m_PPhi |
angle between particle momentum vectors | |
Float_t | m_ChargeProduct |
charge(p1) * charge(p2) | |
Float_t | m_PtDiffEW |
error weighted particle Pt difference | |
Float_t | m_PzDiffEW |
error weighted particle Pz difference | |
Float_t | m_TrackD0DiffEW |
error weighted track D0 difference | |
Float_t | m_TrackZ0DiffEW |
error weighted track Z0 difference | |
Float_t | m_TrackTanLambdaDiffEW |
error weighted track tan lambda diff difference | |
Float_t | m_TrackPhi0DiffEW |
error weighted track Phi0 difference | |
Float_t | m_TrackOmegaDiffEW |
error weighted track Omega difference | |
Bool_t | m_IsCurl |
isCurl Truth | |
MVA based selector for tagging curl tracks in Belle and Belle II.
Definition at line 34 of file SelectorMVA.h.
SelectorMVA | ( | bool | belleFlag, |
bool | trainFlag, | ||
std::string | tFileName | ||
) |
Constructor.
Definition at line 18 of file SelectorMVA.cc.
collect training data and save to a root file
Reimplemented from Selector.
Definition at line 71 of file SelectorMVA.cc.
|
overridevirtual |
finalize whatever needs to be finalized (train the MVA)
Reimplemented from Selector.
Definition at line 133 of file SelectorMVA.cc.
|
overridevirtual |
returns optimal cut to use with selector
Reimplemented from Selector.
Definition at line 120 of file SelectorMVA.cc.
Selector response that this pair of particles come from the same mc/actual particle.
Implements Selector.
Definition at line 143 of file SelectorMVA.cc.
returns vector of variables used by this selector.
Implements Selector.
Definition at line 63 of file SelectorMVA.cc.
|
overridevirtual |
initialize whatever needs to be initialized (root file etc)
Reimplemented from Selector.
Definition at line 77 of file SelectorMVA.cc.
void initializeMVA | ( | ) |
initialize the MVA Expert
Definition at line 111 of file SelectorMVA.cc.
updates the value of the MVA variable
Definition at line 31 of file SelectorMVA.cc.
|
private |
charge(p1) * charge(p2)
Definition at line 112 of file SelectorMVA.h.
|
private |
name of datafile
Definition at line 98 of file SelectorMVA.h.
|
private |
mva expert
Definition at line 91 of file SelectorMVA.h.
|
private |
mva general options (for the expert)
Definition at line 88 of file SelectorMVA.h.
|
private |
mva identifier
Definition at line 95 of file SelectorMVA.h.
|
private |
isCurl Truth
Definition at line 136 of file SelectorMVA.h.
|
private |
angle between particle momentum vectors
Definition at line 109 of file SelectorMVA.h.
|
private |
error weighted particle Pt difference
Definition at line 115 of file SelectorMVA.h.
|
private |
error weighted particle Pz difference
Definition at line 118 of file SelectorMVA.h.
|
private |
name of target variable (isCurl)
Definition at line 104 of file SelectorMVA.h.
|
private |
output file for training data
Definition at line 76 of file SelectorMVA.h.
|
private |
name of output file for training data
Definition at line 73 of file SelectorMVA.h.
|
private |
error weighted track D0 difference
Definition at line 121 of file SelectorMVA.h.
|
private |
error weighted track Omega difference
Definition at line 133 of file SelectorMVA.h.
|
private |
error weighted track Phi0 difference
Definition at line 130 of file SelectorMVA.h.
|
private |
error weighted track tan lambda diff difference
Definition at line 127 of file SelectorMVA.h.
|
private |
error weighted track Z0 difference
Definition at line 124 of file SelectorMVA.h.
|
private |
applying mva or training it
Definition at line 70 of file SelectorMVA.h.
|
private |
training data tree
Definition at line 79 of file SelectorMVA.h.
|
private |
names of variables used by mva
Definition at line 101 of file SelectorMVA.h.
|
private |
mva weightfile
Definition at line 85 of file SelectorMVA.h.
|
private |
Database pointer to the Database representation of the weightfile.
Definition at line 82 of file SelectorMVA.h.