23 #ifndef REST_TRestComponentDataSet
24 #define REST_TRestComponentDataSet
28 #include "TRestComponent.h"
29 #include "TRestDataSet.h"
75 Double_t
GetRate(std::vector<Double_t> point)
override;
78 TCanvas*
DrawComponent(std::vector<std::string> drawVariables, std::vector<std::string> scanVariables,
79 Int_t binScanSize = 1, TString drawOption =
"");
81 THnD* GetDensityForNode(Double_t value);
82 THnD* GetDensityForActiveNode();
83 THnD* GetDensity() {
return GetDensityForActiveNode(); }
86 TH2D*
GetHistogram(Double_t node, std::string varName1, std::string varName2);
87 TH3D*
GetHistogram(Double_t node, std::string varName1, std::string varName2, std::string varName3);
90 TH2D*
GetHistogram(std::string varName1, std::string varName2);
91 TH3D*
GetHistogram(std::string varName1, std::string varName2, std::string varName3);
It defines a background/signal model distribution in a given parameter space (tipically x...
std::vector< THnD * > fNodeDensity
The generated N-dimensional variable space density for a given node.
Bool_t IsDataSetLoaded()
This method should go to TRestComponentDataSet.
It allows to group a number of runs that satisfy given metadata conditions.
Bool_t ValidDataSet()
Takes care of initializing datasets if have not been initialized. On sucess it returns true...
~TRestComponentDataSet()
Default destructor.
TRestDataSet fDataSet
The dataset used to initialize the distribution.
Double_t GetTotalRate() override
This method integrates the rate to all the parameter space defined in the density function...
Bool_t LoadDataSets()
A method responsible to import a list of TRestDataSet into fDataSet and check that the variables and ...
std::vector< Int_t > ExtractNodeStatistics()
It returns a vector with the number of entries found for each parameterization node.
void PrintStatistics()
It prints out the statistics available for each parametric node.
void PrintMetadata() override
Prints on screen the information about the metadata members of TRestAxionSolarFlux.
void FillHistograms()
It will produce a histogram with the distribution defined using the variables and the weights for eac...
Double_t GetRate(std::vector< Double_t > point) override
It returns the intensity/rate (in seconds) corresponding to the generated distribution or formula eva...
void InitFromConfigFile() override
It customizes the retrieval of XML data values of this class.
Bool_t VariablesOk()
It returns true if all variables have been found inside TRestDataSet.
Bool_t WeightsOk()
It returns true if all weights have been found inside TRestDataSet.
TCanvas * DrawComponent(std::vector< std::string > drawVariables, std::vector< std::string > scanVariables, Int_t binScanSize=1, TString drawOption="")
std::vector< Int_t > fNSimPerNode
It defines the number of entries for each parameterization node (Initialized by the dataset) ...
std::vector< std::string > fWeights
A list with the dataset columns used to weight the distribution density and define rate...
Bool_t fDataSetLoaded
It is true of the dataset was loaded without issues.
std::vector< Double_t > ExtractParameterizationNodes()
It returns a vector with all the different values found on the dataset column for the user given para...
It defines a background/signal model distribution in a given parameter space (tipically x...
TH1D * GetHistogram(Double_t node, std::string varName)
It returns a 1-dimensional projected histogram for the variable names provided in the argument...
std::vector< std::string > fDataSetFileNames
The filename of the dataset used.
void Initialize() override
It will initialize the data frame with the filelist and column names (or observables) that have been ...
TRestComponentDataSet()
Default constructor.