REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
Public Member Functions | Protected Member Functions | Private Attributes
TRestExperiment Class Reference

Detailed Description

It includes a model definition and experimental data used to obtain a final experimental sensitivity.

Documentation TOBE written


REST-for-Physics - Software for Rare Event Searches Toolkit

History of developments:

2022-December: First implementation of TRestExperiment Javier Galan

Author
: Javier Galan (javie.nosp@m.r.ga.nosp@m.lan.l.nosp@m.acar.nosp@m.ra@ce.nosp@m.rn.c.nosp@m.h)

Definition at line 33 of file TRestExperiment.h.

#include <TRestExperiment.h>

Inheritance diagram for TRestExperiment:
TRestMetadata

Public Member Functions

 ClassDefOverride (TRestExperiment, 2)
 
void GenerateMockDataSet (Bool_t useAverage=false)
 
TRestComponentGetBackground () const
 
Int_t GetExperimentalCounts () const
 
ROOT::RDF::RNode GetExperimentalDataFrame () const
 
TRestDataSet GetExperimentalDataSet () const
 
Double_t GetExposureInSeconds () const
 
TRestComponentGetSignal () const
 
void Initialize () override
 It will initialize the data frame with the filelist and column names (or observables) that have been defined by the user.
 
Bool_t IsDataReady () const
 
Bool_t IsMockData () const
 
void PrintExperimentalData ()
 
void PrintMetadata () override
 Prints on screen the information about the metadata members of TRestAxionSolarFlux.
 
void SetBackground (TRestComponent *comp)
 
void SetExperimentalDataSet (const std::string &filename)
 
void SetExposureInSeconds (const Double_t exposure)
 
void SetSignal (TRestComponent *comp)
 
 TRestExperiment ()
 Default constructor.
 
 TRestExperiment (const char *cfgFileName, const std::string &name="")
 Constructor loading data from a config file. More...
 
 ~TRestExperiment ()
 Default destructor.
 

Protected Member Functions

void InitFromConfigFile () override
 It customizes the retrieval of XML data values of this class. More...
 

Private Attributes

TRestComponentfBackground = nullptr
 A pointer to the background component.
 
Bool_t fDataReady = false
 Only if it is true we will be able to calculate the LogLikelihood.
 
Int_t fExperimentalCounts = 0
 It keeps track on the number of counts inside the dataset.
 
TRestDataSet fExperimentalData
 It contains the experimental data (should contain same columns as the components)
 
std::string fExperimentalDataSet = ""
 It defines the filename used to load the dataset.
 
Double_t fExposureTime = 0
 The exposure time. If 0 it will be extracted from the tracking dataset (In us, standard REST unit)
 
Bool_t fMockData = false
 If enabled it means that the experimental data was MC-generated.
 
TRandom3 * fRandom = nullptr
 Internal process random generator.
 
UInt_t fSeed = 0
 Seed used in random generator.
 
TRestComponentfSignal = nullptr
 A pointer to the signal component.
 
Bool_t fUseAverage = false
 The mock dataset will be generated using the mean counts instead of a real MonteCarlo.
 

Additional Inherited Members

Constructor & Destructor Documentation

◆ TRestExperiment()

TRestExperiment::TRestExperiment ( const char *  cfgFileName,
const std::string &  name = "" 
)

Constructor loading data from a config file.

If no configuration path is defined using TRestMetadata::SetConfigFilePath the path to the config file must be specified using full path, absolute or relative.

The default behaviour is that the config file must be specified with full path, absolute or relative.

Parameters
cfgFileNameA const char* giving the path to an RML file.
nameThe name of the specific metadata. It will be used to find the corresponding TRestAxionMagneticField section inside the RML.

Definition at line 69 of file TRestExperiment.cxx.

Member Function Documentation

◆ InitFromConfigFile()

void TRestExperiment::InitFromConfigFile ( )
overrideprotectedvirtual

It customizes the retrieval of XML data values of this class.

Checking that signal/background/tracking got the same variable names and ranges

Reimplemented from TRestMetadata.

Definition at line 155 of file TRestExperiment.cxx.

◆ SetExperimentalDataSet()

void TRestExperiment::SetExperimentalDataSet ( const std::string &  filename)

fExposureTime is in standard REST units : us

Definition at line 121 of file TRestExperiment.cxx.


The documentation for this class was generated from the following files: