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

Detailed Description

A metadata class deninning a particular implementation of the likelihood to obtain the experimental sensitivity

TRestAxionLikelihood just a class to serve as example of a specific implementation of a metadata class.

Just copy .cxx and .h files to a new class name, cp TRestAxionLikelihood.cxx TRestAxionSpecificMetadata.cxx cp TRestAxionLikelihood.h TRestAxionSpecificMetadata.h

Then, inside each file replace TRestAxionLikelihood by TRestAxionSpecificMetadata.

Re-run "cmake ../" at the build directory to include the new class to the compilation.


RESTsoft - Software for Rare Event Searches with TPCs

History of developments:

2019-March: First concept and implementation of TRestAxionLikelihood class. Javier Galan

Author
Javier Galan

Definition at line 36 of file TRestAxionLikelihood.h.

#include <TRestAxionLikelihood.h>

Inheritance diagram for TRestAxionLikelihood:
TRestMetadata

Public Member Functions

void GenerateMonteCarlo ()
 
Double_t GetSignal (Double_t ma, Double_t g10_4, Double_t rho, Double_t tExp)
 
void LikelihoodTest (const std::string &fname)
 
Double_t LogLikelihood (Double_t ma, Double_t g10, Double_t Nmeas, Double_t rho, Double_t tExp)
 
void PrintMetadata ()
 Implemented it in the derived metadata class to print out specific metadata information. More...
 
 TRestAxionLikelihood (const char *cfgFileName, std::string name="")
 

Private Member Functions

void InitFromConfigFile ()
 To make settings from rml file. This method must be implemented in the derived class. More...
 
void Initialize ()
 Making default settings.
 

Private Attributes

TRestAxionFieldfAxionField
 
TRestAxionSpectrumfAxionSpectrum
 
Double_t fBackgroundLevel = 0.
 
Double_t fBmag = 0
 
TRestAxionBufferGasfBufferGas
 
std::vector< Double_t > fDensityInStep
 
Double_t fEfficiency = 1
 
TVector2 fErange
 
std::vector< Double_t > fExposureTimePerStep
 
Double_t fLastStepDensity = 0.
 
Double_t fLmag = 0
 
std::vector< Int_t > fMeasuredCountsPerStep
 
Int_t fMeasuredCountsVacuum
 
Int_t fNbores = 0
 
Int_t fNSteps = 0
 
TRandom3 * fRandom
 Random number generator.
 
Double_t fRmag = 0
 
Double_t fSpotArea = 0.
 
Double_t fTExpPerStep = 0
 
Double_t fTExpVacuum = 0
 

Additional Inherited Members

Member Function Documentation

◆ InitFromConfigFile()

void TRestAxionLikelihood::InitFromConfigFile ( )
privatevirtual

To make settings from rml file. This method must be implemented in the derived class.

This needs to be reviewed. TRestAxionField does not store those parameter anymore.

Reimplemented from TRestMetadata.

Definition at line 356 of file TRestAxionLikelihood.cxx.

◆ PrintMetadata()

void TRestAxionLikelihood::PrintMetadata ( )
virtual

Implemented it in the derived metadata class to print out specific metadata information.

Prints metadata content on screen. Usually overloaded by the derived metadata class.

Reimplemented from TRestMetadata.

Definition at line 388 of file TRestAxionLikelihood.cxx.


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