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

Detailed Description

A helper metadata class to create a list of TRestExperiment instances.

Documentation TOBE written


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

History of developments:

2022-December: First implementation of TRestExperimentList 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 30 of file TRestExperimentList.h.

#include <TRestExperimentList.h>

Inheritance diagram for TRestExperimentList:
TRestMetadata

Public Member Functions

 ClassDefOverride (TRestExperimentList, 2)
 
void ExtractExperimentParameterizationNodes ()
 It scans all the experiment signals parametric nodes to build a complete list of nodes used to build a complete sensitivity curve. Some experiments may be sensitivy to a particular node, while others may be sensitivy to another. If more than one experiment is sensitivy to a given node, the sensitivity will be combined later on.
 
TRestExperimentGetExperiment (const size_t &n)
 
std::vector< TRestExperiment * > GetExperiments ()
 
size_t GetNumberOfExperiments ()
 
std::vector< Double_t > GetParameterizationNodes ()
 
void Initialize () override
 It will initialize the data frame with the filelist and column names (or observables) that have been defined by the user.
 
void PrintMetadata () override
 Prints on screen the information about the metadata members of TRestAxionSolarFlux.
 
void PrintParameterizationNodes ()
 
void SetBackground (TRestComponent *comp)
 
void SetExposure (const Double_t &exposure)
 
void SetSignal (TRestComponent *comp)
 
 TRestExperimentList ()
 Default constructor.
 
 TRestExperimentList (const char *cfgFileName, const std::string &name)
 Constructor loading data from a config file. More...
 
 ~TRestExperimentList ()
 Default destructor.
 

Protected Member Functions

TRestComponentGetComponent (std::string compName)
 
void InitFromConfigFile () override
 It customizes the retrieval of XML data values of this class.
 

Private Attributes

TRestComponentfBackground = nullptr
 If not null this will be the common signal used in each experiment.
 
std::vector< std::string > fComponentFiles
 A vector with filenames containing the components.
 
std::string fComponentPattern = ""
 A fullpath filename pattern helping to initialize the component files vector.
 
std::vector< std::string > fDataSetFilenames
 A vector with filenames containing the datasets with experimental data.
 
std::string fDataSetPattern = ""
 A fullpath filename pattern helping to initialize the dataset files vector.
 
std::vector< TRestExperiment * > fExperiments
 A vector with a list of experiments includes the background components in this model.
 
std::string fExperimentsFile = ""
 A file where we define experiment components, exposureTime, and tracking data of each experiment.
 
std::vector< std::vector< std::string > > fExperimentsTable
 A table with the experiment file information.
 
Double_t fExposureFactor = 0
 The factor used on the exponential exposure time as a function of the experiment number.
 
std::string fExposureStrategy = "equal"
 In case an exposure time is given it defines how to assign time to each experiment (equal/ksvz).
 
Double_t fExposureTime = 0
 If not zero this will be the common exposure time in micro-seconds (standard REST units)
 
std::vector< Double_t > fParameterizationNodes
 The fusioned list of parameterization nodes found at each experiment signal.
 
TRestComponentfSignal = nullptr
 If not null this will be the common signal used in each experiment.
 
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

◆ TRestExperimentList()

TRestExperimentList::TRestExperimentList ( 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.

Definition at line 68 of file TRestExperimentList.cxx.


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