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

Detailed Description

Definition at line 95 of file TRestGeant4PrimaryGeneratorInfo.h.

Public Member Functions

Double_t GetSpatialGeneratorCosmicRadius () const
 Returns cosmic generator radius (mm) More...
 
Double_t GetSpatialGeneratorCosmicSurfaceTermCm2 () const
 Returns cosmic surface term (cm2) for simulation time computation. More...
 
TString GetSpatialGeneratorFrom () const
 Returns the name of the GDML volume where primary events are produced. This value has meaning only when using volume or surface generator types. More...
 
TVector3 GetSpatialGeneratorPosition () const
 Returns a 3d-std::vector with the position of the primary event generator. This value has meaning only when using point and virtual generator types. More...
 
TVector3 GetSpatialGeneratorRotationAxis () const
 Returns a 3d-std::vector, fGenRotation, with the XYZ rotation angle values in degrees. This value is used by virtualWall, virtualCircleWall and virtualCylinder generator types. More...
 
Double_t GetSpatialGeneratorRotationValue () const
 Returns the degree of rotation. More...
 
TString GetSpatialGeneratorShape () const
 Returns a std::string specifying the generator shape (point, wall, box, etc ) More...
 
TVector3 GetSpatialGeneratorSize () const
 Returns the main spatial dimension of virtual generator. It is the size of a virtualBox. More...
 
TString GetSpatialGeneratorSpatialDensityFunction () const
 Returns the density function of the generator. More...
 
TString GetSpatialGeneratorType () const
 Returns a std::string specifying the generator type (volume, surface, point, virtualWall, etc ) More...
 
TVector3 GetSpatialGeneratorWorldSize () const
 
void Print () const
 

Private Attributes

TString fSpatialGeneratorFrom
 The volume name where the events are generated, in case of volume or surface generator types. More...
 
TVector3 fSpatialGeneratorPosition
 The position of the generator for virtual, and point, generator types. More...
 
TVector3 fSpatialGeneratorRotationAxis
 A 3d-std::vector with the angles, measured in degrees, of a XYZ rotation applied to the virtual generator. This rotation is used by virtualWall, virtualCircleWall and virtualCylinder generators. More...
 
Double_t fSpatialGeneratorRotationValue = 0
 degrees of rotation for generator virtual shape along the axis More...
 
TString fSpatialGeneratorShape
 Shape of spatial generator (wall, GDML, sphere, etc) More...
 
TVector3 fSpatialGeneratorSize
 The size of the generator. Stores up to three dimensions according to the shape box: length, width, height sphere: radius wall: length, width circle: radius cylinder: radius, length. More...
 
TString fSpatialGeneratorSpatialDensityFunction
 Defines density distribution of the generator shape. rho=F(x,y,z), in range 0~1. More...
 
TString fSpatialGeneratorType = "point"
 Type of spatial generator (point, surface, volume, custom) More...
 
TVector3 fSpatialGeneratorWorldSize
 The size of the world volume (box half lengths for x, y and z) More...
 

Friends

class DetectorConstruction
 
class TRestGeant4Metadata
 

Member Function Documentation

◆ GetSpatialGeneratorCosmicRadius()

Double_t TRestGeant4PrimaryGeneratorInfo::GetSpatialGeneratorCosmicRadius ( ) const
inline

Returns cosmic generator radius (mm)

Definition at line 163 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ GetSpatialGeneratorCosmicSurfaceTermCm2()

Double_t TRestGeant4PrimaryGeneratorInfo::GetSpatialGeneratorCosmicSurfaceTermCm2 ( ) const
inline

Returns cosmic surface term (cm2) for simulation time computation.

Definition at line 166 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ GetSpatialGeneratorFrom()

TString TRestGeant4PrimaryGeneratorInfo::GetSpatialGeneratorFrom ( ) const
inline

Returns the name of the GDML volume where primary events are produced. This value has meaning only when using volume or surface generator types.

Definition at line 144 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ GetSpatialGeneratorPosition()

TVector3 TRestGeant4PrimaryGeneratorInfo::GetSpatialGeneratorPosition ( ) const
inline

Returns a 3d-std::vector with the position of the primary event generator. This value has meaning only when using point and virtual generator types.

Definition at line 148 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ GetSpatialGeneratorRotationAxis()

TVector3 TRestGeant4PrimaryGeneratorInfo::GetSpatialGeneratorRotationAxis ( ) const
inline

Returns a 3d-std::vector, fGenRotation, with the XYZ rotation angle values in degrees. This value is used by virtualWall, virtualCircleWall and virtualCylinder generator types.

Definition at line 152 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ GetSpatialGeneratorRotationValue()

Double_t TRestGeant4PrimaryGeneratorInfo::GetSpatialGeneratorRotationValue ( ) const
inline

Returns the degree of rotation.

Definition at line 155 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ GetSpatialGeneratorShape()

TString TRestGeant4PrimaryGeneratorInfo::GetSpatialGeneratorShape ( ) const
inline

Returns a std::string specifying the generator shape (point, wall, box, etc )

Definition at line 140 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ GetSpatialGeneratorSize()

TVector3 TRestGeant4PrimaryGeneratorInfo::GetSpatialGeneratorSize ( ) const
inline

Returns the main spatial dimension of virtual generator. It is the size of a virtualBox.

Definition at line 158 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ GetSpatialGeneratorSpatialDensityFunction()

TString TRestGeant4PrimaryGeneratorInfo::GetSpatialGeneratorSpatialDensityFunction ( ) const
inline

Returns the density function of the generator.

Definition at line 172 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ GetSpatialGeneratorType()

TString TRestGeant4PrimaryGeneratorInfo::GetSpatialGeneratorType ( ) const
inline

Returns a std::string specifying the generator type (volume, surface, point, virtualWall, etc )

Definition at line 137 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ GetSpatialGeneratorWorldSize()

TVector3 TRestGeant4PrimaryGeneratorInfo::GetSpatialGeneratorWorldSize ( ) const
inline

Definition at line 160 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ Print()

void TRestGeant4PrimaryGeneratorInfo::Print ( ) const

Definition at line 411 of file TRestGeant4PrimaryGeneratorInfo.cxx.

Friends And Related Function Documentation

◆ DetectorConstruction

friend class DetectorConstruction
friend

Definition at line 177 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ TRestGeant4Metadata

friend class TRestGeant4Metadata
friend

Definition at line 176 of file TRestGeant4PrimaryGeneratorInfo.h.

Field Documentation

◆ fSpatialGeneratorFrom

TString TRestGeant4PrimaryGeneratorInfo::fSpatialGeneratorFrom
private

The volume name where the events are generated, in case of volume or surface generator types.

Definition at line 109 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ fSpatialGeneratorPosition

TVector3 TRestGeant4PrimaryGeneratorInfo::fSpatialGeneratorPosition
private

The position of the generator for virtual, and point, generator types.

Definition at line 112 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ fSpatialGeneratorRotationAxis

TVector3 TRestGeant4PrimaryGeneratorInfo::fSpatialGeneratorRotationAxis
private

A 3d-std::vector with the angles, measured in degrees, of a XYZ rotation applied to the virtual generator. This rotation is used by virtualWall, virtualCircleWall and virtualCylinder generators.

Definition at line 116 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ fSpatialGeneratorRotationValue

Double_t TRestGeant4PrimaryGeneratorInfo::fSpatialGeneratorRotationValue = 0
private

degrees of rotation for generator virtual shape along the axis

Definition at line 119 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ fSpatialGeneratorShape

TString TRestGeant4PrimaryGeneratorInfo::fSpatialGeneratorShape
private

Shape of spatial generator (wall, GDML, sphere, etc)

Definition at line 106 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ fSpatialGeneratorSize

TVector3 TRestGeant4PrimaryGeneratorInfo::fSpatialGeneratorSize
private

The size of the generator. Stores up to three dimensions according to the shape box: length, width, height sphere: radius wall: length, width circle: radius cylinder: radius, length.

Definition at line 127 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ fSpatialGeneratorSpatialDensityFunction

TString TRestGeant4PrimaryGeneratorInfo::fSpatialGeneratorSpatialDensityFunction
private

Defines density distribution of the generator shape. rho=F(x,y,z), in range 0~1.

Definition at line 130 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ fSpatialGeneratorType

TString TRestGeant4PrimaryGeneratorInfo::fSpatialGeneratorType = "point"
private

Type of spatial generator (point, surface, volume, custom)

Definition at line 103 of file TRestGeant4PrimaryGeneratorInfo.h.

◆ fSpatialGeneratorWorldSize

TVector3 TRestGeant4PrimaryGeneratorInfo::fSpatialGeneratorWorldSize
private

The size of the world volume (box half lengths for x, y and z)

Definition at line 133 of file TRestGeant4PrimaryGeneratorInfo.h.


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