23 #ifndef REST_TRestExperiment
24 #define REST_TRestExperiment
28 #include "TRestComponent.h"
29 #include "TRestDataSet.h"
30 #include "TRestMetadata.h"
72 void GenerateMockDataSet(Bool_t useAverage =
false);
75 Bool_t IsMockData()
const {
return fMockData; }
76 Bool_t IsDataReady()
const {
return fDataReady; }
78 void SetExposureInSeconds(
const Double_t exposure) {
fExposureTime = exposure /
units(
"s"); }
90 void PrintExperimentalData() { GetExperimentalDataFrame().Display(
"")->Print(); }
It defines a background/signal model distribution in a given parameter space (tipically x,...
It allows to group a number of runs that satisfy given metadata conditions.
ROOT::RDF::RNode GetDataFrame() const
Gives access to the RDataFrame.
It includes a model definition and experimental data used to obtain a final experimental sensitivity.
UInt_t fSeed
Seed used in random generator.
Int_t fExperimentalCounts
It keeps track on the number of counts inside the dataset.
TRestComponent * fBackground
A pointer to the background component.
Bool_t fDataReady
Only if it is true we will be able to calculate the LogLikelihood.
TRestComponent * fSignal
A pointer to the signal component.
void InitFromConfigFile() override
It customizes the retrieval of XML data values of this class.
void Initialize() override
It will initialize the data frame with the filelist and column names (or observables) that have been ...
~TRestExperiment()
Default destructor.
TRestExperiment()
Default constructor.
TRestDataSet fExperimentalData
It contains the experimental data (should contain same columns as the components)
void PrintMetadata() override
Prints on screen the information about the metadata members of TRestAxionSolarFlux.
TRandom3 * fRandom
Internal process random generator.
Bool_t fUseAverage
The mock dataset will be generated using the mean counts instead of a real MonteCarlo.
void SetExperimentalDataSet(const std::string &filename)
std::string fExperimentalDataSet
It defines the filename used to load the dataset.
Double_t fExposureTime
The exposure time. If 0 it will be extracted from the tracking dataset (In us, standard REST unit)
Bool_t fMockData
If enabled it means that the experimental data was MC-generated.