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. More...
 

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. More...
 
Double_t fRmag = 0
 
Double_t fSpotArea = 0.
 
Double_t fTExpPerStep = 0
 
Double_t fTExpVacuum = 0
 

Additional Inherited Members

Constructor & Destructor Documentation

◆ TRestAxionLikelihood() [1/2]

TRestAxionLikelihood::TRestAxionLikelihood ( )

Definition at line 57 of file TRestAxionLikelihood.cxx.

◆ TRestAxionLikelihood() [2/2]

TRestAxionLikelihood::TRestAxionLikelihood ( const char *  cfgFileName,
std::string  name = "" 
)

Definition at line 63 of file TRestAxionLikelihood.cxx.

◆ ~TRestAxionLikelihood()

TRestAxionLikelihood::~TRestAxionLikelihood ( )

Definition at line 75 of file TRestAxionLikelihood.cxx.

Member Function Documentation

◆ GenerateMonteCarlo()

void TRestAxionLikelihood::GenerateMonteCarlo ( )

Definition at line 97 of file TRestAxionLikelihood.cxx.

◆ GetSignal()

Double_t TRestAxionLikelihood::GetSignal ( Double_t  ma,
Double_t  g10_4,
Double_t  rho,
Double_t  tExp 
)

Definition at line 282 of file TRestAxionLikelihood.cxx.

◆ 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.

◆ Initialize()

void TRestAxionLikelihood::Initialize ( )
privatevirtual

Making default settings.

Reimplemented from TRestMetadata.

Definition at line 79 of file TRestAxionLikelihood.cxx.

◆ LikelihoodTest()

void TRestAxionLikelihood::LikelihoodTest ( const std::string &  fname)

Definition at line 188 of file TRestAxionLikelihood.cxx.

◆ LogLikelihood()

Double_t TRestAxionLikelihood::LogLikelihood ( Double_t  ma,
Double_t  g10,
Double_t  Nmeas,
Double_t  rho,
Double_t  tExp 
)

Definition at line 312 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.

Field Documentation

◆ fAxionField

TRestAxionField* TRestAxionLikelihood::fAxionField
private

Definition at line 65 of file TRestAxionLikelihood.h.

◆ fAxionSpectrum

TRestAxionSpectrum* TRestAxionLikelihood::fAxionSpectrum
private

Definition at line 67 of file TRestAxionLikelihood.h.

◆ fBackgroundLevel

Double_t TRestAxionLikelihood::fBackgroundLevel = 0.
private

Definition at line 52 of file TRestAxionLikelihood.h.

◆ fBmag

Double_t TRestAxionLikelihood::fBmag = 0
private

Definition at line 45 of file TRestAxionLikelihood.h.

◆ fBufferGas

TRestAxionBufferGas* TRestAxionLikelihood::fBufferGas
private

Definition at line 66 of file TRestAxionLikelihood.h.

◆ fDensityInStep

std::vector<Double_t> TRestAxionLikelihood::fDensityInStep
private

Definition at line 75 of file TRestAxionLikelihood.h.

◆ fEfficiency

Double_t TRestAxionLikelihood::fEfficiency = 1
private

Definition at line 48 of file TRestAxionLikelihood.h.

◆ fErange

TVector2 TRestAxionLikelihood::fErange
private

Definition at line 56 of file TRestAxionLikelihood.h.

◆ fExposureTimePerStep

std::vector<Double_t> TRestAxionLikelihood::fExposureTimePerStep
private

Definition at line 74 of file TRestAxionLikelihood.h.

◆ fLastStepDensity

Double_t TRestAxionLikelihood::fLastStepDensity = 0.
private

Definition at line 63 of file TRestAxionLikelihood.h.

◆ fLmag

Double_t TRestAxionLikelihood::fLmag = 0
private

Definition at line 47 of file TRestAxionLikelihood.h.

◆ fMeasuredCountsPerStep

std::vector<Int_t> TRestAxionLikelihood::fMeasuredCountsPerStep
private

Definition at line 73 of file TRestAxionLikelihood.h.

◆ fMeasuredCountsVacuum

Int_t TRestAxionLikelihood::fMeasuredCountsVacuum
private

Definition at line 72 of file TRestAxionLikelihood.h.

◆ fNbores

Int_t TRestAxionLikelihood::fNbores = 0
private

Definition at line 50 of file TRestAxionLikelihood.h.

◆ fNSteps

Int_t TRestAxionLikelihood::fNSteps = 0
private

Definition at line 61 of file TRestAxionLikelihood.h.

◆ fRandom

TRandom3* TRestAxionLikelihood::fRandom
private

Random number generator.

Definition at line 70 of file TRestAxionLikelihood.h.

◆ fRmag

Double_t TRestAxionLikelihood::fRmag = 0
private

Definition at line 46 of file TRestAxionLikelihood.h.

◆ fSpotArea

Double_t TRestAxionLikelihood::fSpotArea = 0.
private

Definition at line 54 of file TRestAxionLikelihood.h.

◆ fTExpPerStep

Double_t TRestAxionLikelihood::fTExpPerStep = 0
private

Definition at line 60 of file TRestAxionLikelihood.h.

◆ fTExpVacuum

Double_t TRestAxionLikelihood::fTExpVacuum = 0
private

Definition at line 58 of file TRestAxionLikelihood.h.


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