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

Detailed Description

It combines a number of experimental conditions allowing to calculate a combined experimental sensitivity.

Documentation TOBE written


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

History of developments:

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

#include <TRestSensitivity.h>

Inheritance diagram for TRestSensitivity:
TRestMetadata

Public Member Functions

 ClassDefOverride (TRestSensitivity, 1)
 
Double_t GetCoupling (Double_t sigma=2, Double_t precision=0.01)
 It will return the coupling value for which Chi=sigma. More...
 
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...
 
TH1D * SignalStatisticalTest (Int_t N)
 
 TRestSensitivity ()
 Default constructor. More...
 
 TRestSensitivity (const char *cfgFileName, const std::string &name="")
 Constructor loading data from a config file. More...
 
 ~TRestSensitivity ()
 Default destructor. More...
 

Protected Member Functions

Double_t ApproachByFactor (Double_t g4, Double_t chi0, Double_t target, Double_t factor)
 It will return a value of the coupling, g4, such that (chi-chi0) gets closer to the target value given by argument. The factor will be used to increase or decrease the coupling, and evaluate the likelihood. More...
 
void InitFromConfigFile () override
 It customizes the retrieval of XML data values of this class. More...
 
Double_t UnbinnedLogLikelihood (const TRestExperiment *experiment, Double_t g4=0)
 It returns the Log(L) for the experiment and coupling given by argument. More...
 

Private Attributes

std::vector< TRestExperiment * > fExperiments
 A list of experimental conditions included to get a final sensitivity plot. More...
 
TH1D * fSignalTest = nullptr
 

Additional Inherited Members

Constructor & Destructor Documentation

◆ TRestSensitivity() [1/2]

TRestSensitivity::TRestSensitivity ( 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 70 of file TRestSensitivity.cxx.

◆ TRestSensitivity() [2/2]

TRestSensitivity::TRestSensitivity ( )

Default constructor.

Definition at line 49 of file TRestSensitivity.cxx.

◆ ~TRestSensitivity()

TRestSensitivity::~TRestSensitivity ( )

Default destructor.

Definition at line 54 of file TRestSensitivity.cxx.

Member Function Documentation

◆ ApproachByFactor()

Double_t TRestSensitivity::ApproachByFactor ( Double_t  g4,
Double_t  chi0,
Double_t  target,
Double_t  factor 
)
protected

It will return a value of the coupling, g4, such that (chi-chi0) gets closer to the target value given by argument. The factor will be used to increase or decrease the coupling, and evaluate the likelihood.

Coarse movement to get to Chi2 above target

Coarse movement to get to Chi2 below target (/2)

Definition at line 86 of file TRestSensitivity.cxx.

◆ GetCoupling()

Double_t TRestSensitivity::GetCoupling ( Double_t  sigma = 2,
Double_t  precision = 0.01 
)

It will return the coupling value for which Chi=sigma.

Definition at line 115 of file TRestSensitivity.cxx.

◆ GetExperiment()

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

Definition at line 50 of file TRestSensitivity.h.

◆ GetExperiments()

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

Definition at line 49 of file TRestSensitivity.h.

◆ GetNumberOfExperiments()

size_t TRestSensitivity::GetNumberOfExperiments ( )
inline

Definition at line 57 of file TRestSensitivity.h.

◆ InitFromConfigFile()

void TRestSensitivity::InitFromConfigFile ( )
overrideprotectedvirtual

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

Reimplemented from TRestMetadata.

Definition at line 195 of file TRestSensitivity.cxx.

◆ Initialize()

void TRestSensitivity::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 79 of file TRestSensitivity.cxx.

◆ PrintMetadata()

void TRestSensitivity::PrintMetadata ( )
overridevirtual

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

Reimplemented from TRestMetadata.

Definition at line 219 of file TRestSensitivity.cxx.

◆ SignalStatisticalTest()

TH1D * TRestSensitivity::SignalStatisticalTest ( Int_t  N)

Definition at line 172 of file TRestSensitivity.cxx.

◆ UnbinnedLogLikelihood()

Double_t TRestSensitivity::UnbinnedLogLikelihood ( const TRestExperiment experiment,
Double_t  g4 = 0 
)
protected

It returns the Log(L) for the experiment and coupling given by argument.

Definition at line 134 of file TRestSensitivity.cxx.

Field Documentation

◆ fExperiments

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

A list of experimental conditions included to get a final sensitivity plot.

Definition at line 32 of file TRestSensitivity.h.

◆ fSignalTest

TH1D* TRestSensitivity::fSignalTest = nullptr
private

Definition at line 34 of file TRestSensitivity.h.


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