10#ifndef INCLUDE_GUARD_BELLE2_MVA_SPLOT_HEADER
11#define INCLUDE_GUARD_BELLE2_MVA_SPLOT_HEADER
13#include <mva/interface/Dataset.h>
14#include <mva/utility/Binning.h>
15#include <mva/interface/Expert.h>
73 for (
unsigned int iEvent = 0; iEvent < weights.size(); ++iEvent) {
93 virtual void loadEvent(
unsigned int event)
override;
147 virtual void loadEvent(
unsigned int event)
override;
192 virtual void loadEvent(
unsigned int event)
override;
210 std::vector<float> getSPlotWeights(
Dataset& dataset,
const Binning& binning);
217 std::vector<float> getBoostWeights(
Dataset& dataset,
const Binning& binning);
225 std::vector<float> getAPlotWeights(
Dataset& dataset,
const Binning& binning,
const std::vector<float>& boost_prediction);
Binning of a data distribution Provides PDF and CDF values of the distribution per bin.
Abstract base class of all Datasets given to the MVA interface The current event can always be access...
virtual unsigned int getNumberOfEvents() const =0
Returns the number of events in this dataset.
virtual unsigned int getNumberOfSpectators() const =0
Returns the number of spectators in this dataset.
virtual std::vector< bool > getSignals()
Returns all is Signals.
virtual unsigned int getNumberOfFeatures() const =0
Returns the number of features in this dataset.
virtual std::vector< float > getSpectator(unsigned int iSpectator)
Returns all values of one spectator in a std::vector<float>
virtual std::vector< float > getTargets()
Returns all targets.
virtual std::vector< float > getFeature(unsigned int iFeature)
Returns all values of one feature in a std::vector<float>
virtual std::vector< float > getWeights()
Returns all weights.
General options which are shared by all MVA trainings.
Dataset for Reweighting Wraps a dataset and provides each data-point with a new weight.
std::vector< float > m_weights
sPlot weights
Dataset & m_dataset
Wrapped dataset.
virtual std::vector< float > getFeature(unsigned int iFeature) override
Returns all values of one feature in a std::vector<float>
virtual unsigned int getNumberOfEvents() const override
Returns the number of events in this dataset.
virtual void loadEvent(unsigned int event) override
Load the event number iEvent.
virtual std::vector< bool > getSignals() override
Returns all is Signals.
virtual unsigned int getNumberOfSpectators() const override
Returns the number of features in this dataset.
virtual std::vector< float > getWeights() override
Returns all weights.
virtual std::vector< float > getTargets() override
Returns all targets.
virtual unsigned int getNumberOfFeatures() const override
Returns the number of features in this dataset.
virtual std::vector< float > getSpectator(unsigned int iSpectator) override
Returns all values of one spectator in a std::vector<float>
Dataset for sPlot Wraps a dataset and provides each data-point twice, once as signal and once as back...
std::vector< float > m_weights
sPlot weights
Dataset & m_dataset
Wrapped dataset.
virtual unsigned int getNumberOfEvents() const override
Returns the number of events in this dataset.
virtual void loadEvent(unsigned int event) override
Load the event number iEvent.
virtual unsigned int getNumberOfSpectators() const override
Returns the number of features in this dataset.
virtual unsigned int getNumberOfFeatures() const override
Returns the number of features in this dataset.
virtual float getSignalFraction() override
Returns the signal fraction of the whole sample.
float m_signalFraction
Signal fraction.
Dataset for Sideband Subtraction Wraps a dataset and provides each data-point with a new weight.
Dataset & m_dataset
Wrapped dataset.
virtual std::vector< float > getFeature(unsigned int iFeature) override
Returns all values of one feature in a std::vector<float>
double m_negative_signal_weight
the weight for negative signal events
double m_signal_weight
the weight for signal events
virtual unsigned int getNumberOfEvents() const override
Returns the number of events in this dataset.
virtual void loadEvent(unsigned int event) override
Load the event number iEvent.
double m_background_weight
the weight for background events
int m_spectator_index
spectator containing the sideband variable
virtual unsigned int getNumberOfSpectators() const override
Returns the number of features in this dataset.
virtual unsigned int getNumberOfFeatures() const override
Returns the number of features in this dataset.
virtual std::vector< float > getSpectator(unsigned int iSpectator) override
Returns all values of one spectator in a std::vector<float>
Abstract base class for different kinds of events.