23 #ifndef REST_TRestDataSetOdds
24 #define REST_TRestDataSetOdds
28 #include "TRestMetadata.h"
65 std::vector<std::tuple<std::string, TVector2, int>> GetOddsObservables();
66 std::string GetOddsFile() {
return fOddsFile; }
71 inline void SetDataSetName(
const std::string& dSName) {
fDataSetName = dSName; }
72 inline void SetOutputFileName(
const std::string& outName) {
fOutputFileName = outName; }
73 inline void SetOddsFile(
const std::string& oddsFile) {
fOddsFile = oddsFile; }
75 void SetOddsObservables(
const std::vector<std::tuple<std::string, TVector2, int>>& obs);
76 void AddOddsObservable(
const std::string& name,
const TVector2& range,
int nbins);
A class to help on cuts definitions. To be used with TRestAnalysisTree.
This class is meant to compute the log odds for different datasets.
std::string fOddsFile
Name of the odds file to be used to get the PDF.
std::vector< std::string > fObsName
Vector containing different obserbable names.
TRestDataSetOdds()
Default constructor.
void PrintMetadata() override
Prints on screen the information about the metadata members of TRestDataSetOdds.
std::map< std::string, TH1F * > fHistos
Map containing the PDF of the different observables.
std::vector< TVector2 > fObsRange
Vector containing different obserbable ranges.
void Initialize() override
Function to initialize input/output event members and define the section name.
~TRestDataSetOdds()
Default destructor.
TRestCut * fCut
Cuts over the dataset for PDF selection.
void ComputeLogOdds()
This function computes the log odds for a given dataSet. If no calibration odds file is provided it c...
std::string fOutputFileName
Name of the output file.
std::string fDataSetName
Name of the dataSet inside the config file.
std::vector< int > fObsNbins
Vector containing number of bins for the different observables.
void InitFromConfigFile() override
Function to initialize some variables from configfile.