Wraps two other Datasets, one containing signal, the other background events Used by the reweighting method to train mc files against data files.
More...
#include <Dataset.h>
|
| CombinedDataset (const GeneralOptions &general_options, Dataset &signal_dataset, Dataset &background_dataset) |
| Constructs a new CombinedDataset holding a reference to the wrapped Datasets. More...
|
|
virtual unsigned int | getNumberOfFeatures () const override |
| Returns the number of features in this dataset, so the size of the given subset of the variables.
|
|
virtual unsigned int | getNumberOfSpectators () const override |
| Returns the number of spectators in this dataset, so the size of the given subset of the spectators.
|
|
virtual unsigned int | getNumberOfEvents () const override |
| Returns the number of events in the wrapped dataset.
|
|
virtual void | loadEvent (unsigned int iEvent) override |
| Load the event number iEvent from the wrapped dataset. More...
|
|
virtual std::vector< float > | getFeature (unsigned int iFeature) override |
| Returns all values of one feature in a std::vector<float> of the wrapped dataset. More...
|
|
virtual std::vector< float > | getSpectator (unsigned int iSpectator) override |
| Returns all values of one spectator in a std::vector<float> of the wrapped dataset. More...
|
|
virtual float | getSignalFraction () |
| Returns the signal fraction of the whole sample.
|
|
virtual unsigned int | getFeatureIndex (const std::string &feature) |
| Return index of feature with the given name. More...
|
|
virtual unsigned int | getSpectatorIndex (const std::string &spectator) |
| Return index of spectator with the given name. More...
|
|
virtual std::vector< float > | getWeights () |
| Returns all weights.
|
|
virtual std::vector< float > | getTargets () |
| Returns all targets.
|
|
virtual std::vector< bool > | getSignals () |
| Returns all is Signals.
|
|
|
GeneralOptions | m_general_options |
| GeneralOptions passed to this dataset.
|
|
std::vector< float > | m_input |
| Contains all feature values of the currently loaded event.
|
|
std::vector< float > | m_spectators |
| Contains all spectators values of the currently loaded event.
|
|
float | m_weight |
| Contains the weight of the currently loaded event.
|
|
float | m_target |
| Contains the target value of the currently loaded event.
|
|
bool | m_isSignal |
| Defines if the currently loaded event is signal or background.
|
|
Wraps two other Datasets, one containing signal, the other background events Used by the reweighting method to train mc files against data files.
Definition at line 294 of file Dataset.h.
◆ CombinedDataset()
Constructs a new CombinedDataset holding a reference to the wrapped Datasets.
- Parameters
-
general_options | |
signal_dataset | reference to the wrapped Dataset containing signal events |
background_dataset | reference to the wrapped Dataset containing background events |
Definition at line 273 of file Dataset.cc.
◆ getFeature()
std::vector< float > getFeature |
( |
unsigned int |
iFeature | ) |
|
|
overridevirtual |
Returns all values of one feature in a std::vector<float> of the wrapped dataset.
- Parameters
-
iFeature | the position of the feature to return in the given subset |
Reimplemented from Dataset.
Definition at line 296 of file Dataset.cc.
◆ getFeatureIndex()
unsigned int getFeatureIndex |
( |
const std::string & |
feature | ) |
|
|
virtualinherited |
Return index of feature with the given name.
- Parameters
-
feature | name of the feature |
Definition at line 50 of file Dataset.cc.
◆ getSpectator()
std::vector< float > getSpectator |
( |
unsigned int |
iSpectator | ) |
|
|
overridevirtual |
Returns all values of one spectator in a std::vector<float> of the wrapped dataset.
- Parameters
-
iSpectator | the position of the spectator to return in the given subset |
Reimplemented from Dataset.
Definition at line 306 of file Dataset.cc.
◆ getSpectatorIndex()
unsigned int getSpectatorIndex |
( |
const std::string & |
spectator | ) |
|
|
virtualinherited |
Return index of spectator with the given name.
- Parameters
-
spectator | name of the spectator |
Definition at line 62 of file Dataset.cc.
◆ loadEvent()
void loadEvent |
( |
unsigned int |
iEvent | ) |
|
|
overridevirtual |
Load the event number iEvent from the wrapped dataset.
- Parameters
-
iEvent | event number to load |
Implements Dataset.
Definition at line 277 of file Dataset.cc.
The documentation for this class was generated from the following files: