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

Detailed Description

RESTSoft : Software for Rare Event Searches with TPCs

TRestGeant4PhysicsLists.h

G4 class to be used to design REST metadata classes to be inherited from TRestMetadata How to use: replace TRestGeant4PhysicsLists by your class name, fill the required functions following instructions and add all needed additional members and functionality

Apr 2017: First concept. Javier Galan

Definition at line 31 of file TRestGeant4PhysicsLists.h.

#include <TRestGeant4PhysicsLists.h>

Inheritance diagram for TRestGeant4PhysicsLists:
TRestMetadata

Public Member Functions

 ClassDefOverride (TRestGeant4PhysicsLists, 2)
 
Int_t FindPhysicsList (const TString &physicsListName) const
 
Double_t GetCutForElectron () const
 
Double_t GetCutForGamma () const
 
Double_t GetCutForMuon () const
 
Double_t GetCutForNeutron () const
 
Double_t GetCutForPositron () const
 
std::vector< std::string > GetIonStepList () const
 
Double_t GetMaximumEnergyProductionCuts () const
 
Double_t GetMinimumEnergyProductionCuts () const
 
TString GetPhysicsListOptionValue (const TString &physicsListName, const TString &option, const TString &defaultValue="NotDefined") const
 
Bool_t PhysicsListExists (const TString &physicsListName) const
 
void PrintMetadata () override
 Implemented it in the derived metadata class to print out specific metadata information. More...
 
 TRestGeant4PhysicsLists (const char *configFilename, std::string name="")
 

Private Member Functions

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

Private Attributes

Double_t fCutForElectron
 
Double_t fCutForGamma
 
Double_t fCutForMuon
 
Double_t fCutForNeutron
 
Double_t fCutForPositron
 
std::vector< std::string > fIonLimitStepList
 
Double_t fMaxEnergyRangeProductionCuts
 
Double_t fMinEnergyRangeProductionCuts
 
std::vector< TString > fPhysicsListOptions
 
std::vector< TString > fPhysicsLists
 

Additional Inherited Members

Constructor & Destructor Documentation

◆ TRestGeant4PhysicsLists() [1/2]

TRestGeant4PhysicsLists::TRestGeant4PhysicsLists ( )

Definition at line 27 of file TRestGeant4PhysicsLists.cxx.

◆ TRestGeant4PhysicsLists() [2/2]

TRestGeant4PhysicsLists::TRestGeant4PhysicsLists ( const char *  configFilename,
std::string  name = "" 
)

Definition at line 29 of file TRestGeant4PhysicsLists.cxx.

Member Function Documentation

◆ FindPhysicsList()

Int_t TRestGeant4PhysicsLists::FindPhysicsList ( const TString &  physicsListName) const

Definition at line 86 of file TRestGeant4PhysicsLists.cxx.

◆ GetCutForElectron()

Double_t TRestGeant4PhysicsLists::GetCutForElectron ( ) const
inline

Definition at line 54 of file TRestGeant4PhysicsLists.h.

◆ GetCutForGamma()

Double_t TRestGeant4PhysicsLists::GetCutForGamma ( ) const
inline

Definition at line 53 of file TRestGeant4PhysicsLists.h.

◆ GetCutForMuon()

Double_t TRestGeant4PhysicsLists::GetCutForMuon ( ) const
inline

Definition at line 56 of file TRestGeant4PhysicsLists.h.

◆ GetCutForNeutron()

Double_t TRestGeant4PhysicsLists::GetCutForNeutron ( ) const
inline

Definition at line 57 of file TRestGeant4PhysicsLists.h.

◆ GetCutForPositron()

Double_t TRestGeant4PhysicsLists::GetCutForPositron ( ) const
inline

Definition at line 55 of file TRestGeant4PhysicsLists.h.

◆ GetIonStepList()

std::vector< std::string > TRestGeant4PhysicsLists::GetIonStepList ( ) const
inline

Definition at line 59 of file TRestGeant4PhysicsLists.h.

◆ GetMaximumEnergyProductionCuts()

Double_t TRestGeant4PhysicsLists::GetMaximumEnergyProductionCuts ( ) const
inline

Definition at line 62 of file TRestGeant4PhysicsLists.h.

◆ GetMinimumEnergyProductionCuts()

Double_t TRestGeant4PhysicsLists::GetMinimumEnergyProductionCuts ( ) const
inline

Definition at line 61 of file TRestGeant4PhysicsLists.h.

◆ GetPhysicsListOptionString()

TString TRestGeant4PhysicsLists::GetPhysicsListOptionString ( const TString &  physicsListName) const
private

Definition at line 98 of file TRestGeant4PhysicsLists.cxx.

◆ GetPhysicsListOptionValue()

TString TRestGeant4PhysicsLists::GetPhysicsListOptionValue ( const TString &  physicsListName,
const TString &  option,
const TString &  defaultValue = "NotDefined" 
) const

Definition at line 108 of file TRestGeant4PhysicsLists.cxx.

◆ InitFromConfigFile()

void TRestGeant4PhysicsLists::InitFromConfigFile ( )
overrideprivatevirtual

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

Reimplemented from TRestMetadata.

Definition at line 42 of file TRestGeant4PhysicsLists.cxx.

◆ Initialize()

void TRestGeant4PhysicsLists::Initialize ( )
overrideprivatevirtual

Making default settings.

Reimplemented from TRestMetadata.

Definition at line 37 of file TRestGeant4PhysicsLists.cxx.

◆ PhysicsListExists()

Bool_t TRestGeant4PhysicsLists::PhysicsListExists ( const TString &  physicsListName) const

Definition at line 122 of file TRestGeant4PhysicsLists.cxx.

◆ PrintMetadata()

void TRestGeant4PhysicsLists::PrintMetadata ( )
overridevirtual

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 141 of file TRestGeant4PhysicsLists.cxx.

Field Documentation

◆ fCutForElectron

Double_t TRestGeant4PhysicsLists::fCutForElectron
private

Definition at line 42 of file TRestGeant4PhysicsLists.h.

◆ fCutForGamma

Double_t TRestGeant4PhysicsLists::fCutForGamma
private

Definition at line 43 of file TRestGeant4PhysicsLists.h.

◆ fCutForMuon

Double_t TRestGeant4PhysicsLists::fCutForMuon
private

Definition at line 45 of file TRestGeant4PhysicsLists.h.

◆ fCutForNeutron

Double_t TRestGeant4PhysicsLists::fCutForNeutron
private

Definition at line 46 of file TRestGeant4PhysicsLists.h.

◆ fCutForPositron

Double_t TRestGeant4PhysicsLists::fCutForPositron
private

Definition at line 44 of file TRestGeant4PhysicsLists.h.

◆ fIonLimitStepList

std::vector<std::string> TRestGeant4PhysicsLists::fIonLimitStepList
private

Definition at line 50 of file TRestGeant4PhysicsLists.h.

◆ fMaxEnergyRangeProductionCuts

Double_t TRestGeant4PhysicsLists::fMaxEnergyRangeProductionCuts
private

Definition at line 48 of file TRestGeant4PhysicsLists.h.

◆ fMinEnergyRangeProductionCuts

Double_t TRestGeant4PhysicsLists::fMinEnergyRangeProductionCuts
private

Definition at line 47 of file TRestGeant4PhysicsLists.h.

◆ fPhysicsListOptions

std::vector<TString> TRestGeant4PhysicsLists::fPhysicsListOptions
private

Definition at line 40 of file TRestGeant4PhysicsLists.h.

◆ fPhysicsLists

std::vector<TString> TRestGeant4PhysicsLists::fPhysicsLists
private

Definition at line 39 of file TRestGeant4PhysicsLists.h.


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