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, 1)
 
TRestExperimentGetExperiment (const size_t &n)
 
std::vector< TRestExperiment * > GetExperiments ()
 
size_t GetNumberOfExperiments ()
 
void Initialize () override
 It will initialize the data frame with the filelist and column names (or observables) that have been defined by the user. More...
 
void PrintMetadata () override
 Prints on screen the information about the metadata members of TRestAxionSolarFlux. More...
 
void SetBackground (TRestComponent *comp)
 
void SetExposure (const Double_t &exposure)
 
void SetSignal (TRestComponent *comp)
 
 TRestExperimentList ()
 Default constructor. More...
 
 TRestExperimentList (const char *cfgFileName, const std::string &name)
 Constructor loading data from a config file. More...
 
 ~TRestExperimentList ()
 Default destructor. More...
 

Protected Member Functions

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

Private Attributes

TRestComponentfBackground = nullptr
 If not null this will be the common signal used in each experiment. More...
 
std::vector< std::string > fComponentFiles
 A vector with filenames containing the components. More...
 
std::string fComponentPattern = ""
 A fullpath filename pattern helping to initialize the component files vector. More...
 
std::vector< std::string > fDataSetFilenames
 A vector with filenames containing the datasets with experimental data. More...
 
std::string fDataSetPattern = ""
 A fullpath filename pattern helping to initialize the dataset files vector. More...
 
std::vector< TRestExperiment * > fExperiments
 A vector with a list of experiments includes the background components in this model. More...
 
std::string fExperimentsFile = ""
 A file where we define experiment components, exposureTime, and tracking data of each experiment. More...
 
std::vector< std::vector< std::string > > fExperimentsTable
 A table with the experiment file information. More...
 
Double_t fExposureTime = 0
 If not zero this will be the common exposure time in micro-seconds (standard REST units) More...
 
TRestComponentfSignal = nullptr
 If not null this will be the common signal used in each experiment. More...
 

Additional Inherited Members

Constructor & Destructor Documentation

◆ TRestExperimentList() [1/2]

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.

◆ TRestExperimentList() [2/2]

TRestExperimentList::TRestExperimentList ( )

Default constructor.

Definition at line 48 of file TRestExperimentList.cxx.

◆ ~TRestExperimentList()

TRestExperimentList::~TRestExperimentList ( )

Default destructor.

Definition at line 53 of file TRestExperimentList.cxx.

Member Function Documentation

◆ GetComponent()

TRestComponent * TRestExperimentList::GetComponent ( std::string  compName)
protected

Definition at line 220 of file TRestExperimentList.cxx.

◆ GetExperiment()

TRestExperiment * TRestExperimentList::GetExperiment ( const size_t &  n)
inline

Definition at line 75 of file TRestExperimentList.h.

◆ GetExperiments()

std::vector< TRestExperiment * > TRestExperimentList::GetExperiments ( )
inline

Definition at line 74 of file TRestExperimentList.h.

◆ GetNumberOfExperiments()

size_t TRestExperimentList::GetNumberOfExperiments ( )
inline

Definition at line 82 of file TRestExperimentList.h.

◆ InitFromConfigFile()

void TRestExperimentList::InitFromConfigFile ( )
overrideprotectedvirtual

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

Reimplemented from TRestMetadata.

Definition at line 82 of file TRestExperimentList.cxx.

◆ Initialize()

void TRestExperimentList::Initialize ( )
overridevirtual

It will initialize the data frame with the filelist and column names (or observables) that have been defined by the user.

Reimplemented from TRestMetadata.

Definition at line 77 of file TRestExperimentList.cxx.

◆ PrintMetadata()

void TRestExperimentList::PrintMetadata ( )
overridevirtual

Prints on screen the information about the metadata members of TRestAxionSolarFlux.

Reimplemented from TRestMetadata.

Definition at line 242 of file TRestExperimentList.cxx.

◆ SetBackground()

void TRestExperimentList::SetBackground ( TRestComponent comp)
inline

Definition at line 72 of file TRestExperimentList.h.

◆ SetExposure()

void TRestExperimentList::SetExposure ( const Double_t &  exposure)
inline

Definition at line 70 of file TRestExperimentList.h.

◆ SetSignal()

void TRestExperimentList::SetSignal ( TRestComponent comp)
inline

Definition at line 71 of file TRestExperimentList.h.

Field Documentation

◆ fBackground

TRestComponent* TRestExperimentList::fBackground = nullptr
private

If not null this will be the common signal used in each experiment.

Definition at line 60 of file TRestExperimentList.h.

◆ fComponentFiles

std::vector<std::string> TRestExperimentList::fComponentFiles
private

A vector with filenames containing the components.

Definition at line 36 of file TRestExperimentList.h.

◆ fComponentPattern

std::string TRestExperimentList::fComponentPattern = ""
private

A fullpath filename pattern helping to initialize the component files vector.

Definition at line 33 of file TRestExperimentList.h.

◆ fDataSetFilenames

std::vector<std::string> TRestExperimentList::fDataSetFilenames
private

A vector with filenames containing the datasets with experimental data.

Definition at line 42 of file TRestExperimentList.h.

◆ fDataSetPattern

std::string TRestExperimentList::fDataSetPattern = ""
private

A fullpath filename pattern helping to initialize the dataset files vector.

Definition at line 39 of file TRestExperimentList.h.

◆ fExperiments

std::vector<TRestExperiment*> TRestExperimentList::fExperiments
private

A vector with a list of experiments includes the background components in this model.

Definition at line 51 of file TRestExperimentList.h.

◆ fExperimentsFile

std::string TRestExperimentList::fExperimentsFile = ""
private

A file where we define experiment components, exposureTime, and tracking data of each experiment.

Definition at line 45 of file TRestExperimentList.h.

◆ fExperimentsTable

std::vector<std::vector<std::string> > TRestExperimentList::fExperimentsTable
private

A table with the experiment file information.

Definition at line 48 of file TRestExperimentList.h.

◆ fExposureTime

Double_t TRestExperimentList::fExposureTime = 0
private

If not zero this will be the common exposure time in micro-seconds (standard REST units)

Definition at line 54 of file TRestExperimentList.h.

◆ fSignal

TRestComponent* TRestExperimentList::fSignal = nullptr
private

If not null this will be the common signal used in each experiment.

Definition at line 57 of file TRestExperimentList.h.


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