11#include <analysis/modules/CurlTagger/Selector.h>
16#include <mva/dataobjects/DatabaseRepresentationOfWeightfile.h>
17#include <mva/methods/FastBDT.h>
18#include <mva/interface/Interface.h>
19#include <framework/database/DBObjPtr.h>
31 namespace CurlTagger {
38 SelectorMVA(
bool belleFlag,
bool trainFlag, std::string tFileName);
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
virtual float getOptimalResponseCut() override
returns optimal cut to use with selector
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_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
MVA::Weightfile m_weightfile
mva weightfile
Float_t m_TrackD0DiffEW
error weighted track D0 difference
virtual void finalize() override
finalize whatever needs to be finalized (train the MVA)
Float_t m_ChargeProduct
charge(p1) * charge(p2)
void initializeMVA()
initialize the MVA Expert
std::unique_ptr< DBObjPtr< DatabaseRepresentationOfWeightfile > > m_weightfile_representation
Database pointer to the Database representation of the weightfile.
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.
Bool_t m_IsCurl
isCurl Truth
MVA::GeneralOptions m_generalOptions
mva general options (for the expert)
std::string m_target_variable
name of target variable (isCurl)
SelectorMVA(bool belleFlag, bool trainFlag, std::string tFileName)
Constructor.
Float_t m_TrackOmegaDiffEW
error weighted track Omega difference
TTree * m_TTree
training data tree
std::string m_identifier
mva identifier
Expert for the FastBDT MVA method.
General options which are shared by all MVA trainings.
The Weightfile class serializes all information about a training into an xml tree.
Class to store reconstructed particles.
Abstract base class for different kinds of events.