11 #include <analysis/modules/CurlTagger/Selector.h>
13 #include <analysis/dataobjects/Particle.h>
17 #include <mva/methods/FastBDT.h>
28 namespace CurlTagger {
MVA based selector for tagging curl tracks in Belle and Belle II.
std::vector< std::string > m_datafiles
name of datafile
void updateVariables(Particle *iPart, Particle *jPart)
updates the value of the MVA variable
virtual std::vector< float > getVariables(Particle *iPart, Particle *jPart) override
returns vector of variables used by this selector.
~SelectorMVA()
Destructor.
Float_t m_TrackTanLambdaDiffEW
error weighted track tan lambda diff difference
std::vector< std::string > m_variables
names of variables used by mva
Float_t m_TrackZ0DiffEW
error weighted track Z0 difference
virtual void initialize() override
initialize whatever needs to be initialized (root file etc)
Float_t m_IsCurl
isCurl Truth
Float_t m_PtDiffEW
error weighted particle Pt difference
Float_t m_PPhi
angle between particle momentum vectors
Float_t m_TrackPhi0DiffEW
error weighted track Phi0 difference
TFile * m_TFile
output file for training data
Float_t m_PzDiffEW
error weighted particle Pz difference
Float_t m_TrackD0DiffEW
error weighted track D0 difference
SelectorMVA(bool belleFlag, bool trainFlag)
Constructor.
virtual void finalize() override
finalize whatever needs to be finalized (train the MVA)
Float_t m_ChargeProduct
charge(p1) * charge(p2)
bool m_TrainFlag
applying mva or training it
MVA::FastBDTExpert m_expert
mva expert
virtual void collectTrainingInfo(Particle *iPart, Particle *jPart) override
collect training data and save to a root file
std::string m_TFileName
name of output file for training data
virtual float getResponse(Particle *iPart, Particle *jPart) override
Selector response that this pair of particles come from the same mc/actual particle.
MVA::GeneralOptions m_generalOptions
mva general options (for the expert)
std::string m_target_variable
name of target variable (isCurl)
Float_t m_TrackOmegaDiffEW
error weighted track Omega difference
TTree * m_TTree
training data tree
std::string m_identifier
mva identifier
Abstract base class for curl track selectors.
Expert for the FastBDT MVA method.
General options which are shared by all MVA trainings.
Class to store reconstructed particles.
Abstract base class for different kinds of events.