REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
 All Data Structures Namespaces Functions Variables Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes
TRestComponent Class Referenceabstract

Detailed Description

It defines a background/signal model distribution in a given parameter space (tipically x,y,en)

This class allows to ...


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

History of developments:

2023-December: First implementation of TRestComponent 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 TRestComponent.h.

#include <TRestComponent.h>

Inheritance diagram for TRestComponent:
TRestMetadata TRestComponentDataSet TRestComponentFormula

Public Member Functions

 ClassDefOverride (TRestComponent, 1)
 
Int_t GetActiveNode ()
 
Double_t GetActiveNodeValue ()
 
virtual Double_t GetRate (std::vector< Double_t > point)=0
 
virtual Double_t GetTotalRate ()=0
 
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 PrintNodes ()
 It prints out on screen the values of the parametric node.
 
void PrintStatistics ()
 
Int_t SetActiveNode (Double_t node)
 It returns the position of the fParameterizationNodes element for the variable name given by argument.
 
 TRestComponent (const char *cfgFileName, const std::string &name="")
 Constructor loading data from a config file. More...
 
 TRestComponent ()
 Default constructor.
 
 ~TRestComponent ()
 Default destructor.
 

Protected Member Functions

Int_t GetVariableIndex (std::string varName)
 It returns the position of the fVariable element for the variable name given by argument.
 
Bool_t HasNodes ()
 It returns true if any nodes have been defined.
 
void InitFromConfigFile () override
 It customizes the retrieval of XML data values of this class.
 
Bool_t ValidNode (Double_t node)
 It returns true if the node has been properly identified.
 

Protected Attributes

Int_t fActiveNode = -1
 It is used to define the node that will be accessed for rate retrieval.
 
TCanvas * fCanvas = nullptr
 A canvas for drawing the active node component.
 
std::vector< Int_t > fNbins
 The number of bins in which we should divide each variable.
 
std::string fParameter = ""
 It is used to parameterize a set of distribution densities (e.g. WIMP or axion mass)
 
std::vector< Double_t > fParameterizationNodes
 It defines the nodes of the parameterization (Initialized by the dataset)
 
std::vector< TVector2 > fRanges
 The range of each of the variables used to create the PDF distribution.
 
std::vector< std::string > fVariables
 A list with the branches that will be used to create the distribution space.
 

Constructor & Destructor Documentation

TRestComponent::TRestComponent ( 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 68 of file TRestComponent.cxx.


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