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

Detailed Description

Definition at line 14 of file TRestGeant4GeometryInfo.h.

Public Member Functions

std::vector< TString > GetAllAlternativePhysicalVolumes () const
 
std::vector< TString > GetAllLogicalVolumes () const
 
std::vector< TString > GetAllLogicalVolumesMatchingExpression (const TString &) const
 
std::vector< TString > GetAllPhysicalVolumes () const
 
std::vector< TString > GetAllPhysicalVolumesFromLogical (const TString &logicalVolume) const
 
std::vector< TString > GetAllPhysicalVolumesMatchingExpression (const TString &) const
 
TString GetAlternativeNameFromGeant4PhysicalName (const TString &) const
 
TString GetGeant4PhysicalNameFromAlternativeName (const TString &) const
 
Int_t GetIDFromVolume (const TString &volumeName) const
 
TVector3 GetPosition (const TString &volume) const
 
TString GetVolumeFromID (Int_t id) const
 
void InsertVolumeName (Int_t id, const TString &volumeName)
 
bool IsAssembly () const
 
bool IsValidGdmlName (const TString &volume) const
 
bool IsValidLogicalVolume (const TString &volume) const
 
bool IsValidPhysicalVolume (const TString &volume) const
 
void PopulateFromGdml (const TString &)
 
void Print () const
 

Data Fields

std::vector< TString > fGdmlLogicalNames
 
std::vector< TString > fGdmlNewPhysicalNames
 
std::map< TString, TString > fGeant4PhysicalNameToNewPhysicalNameMap
 
std::map< TString, TString > fLogicalToMaterialMap
 
std::map< TString, std::vector< TString > > fLogicalToPhysicalMap
 
std::map< TString, TString > fPhysicalToLogicalVolumeMap
 
std::map< TString, TVector3 > fPhysicalToPositionInWorldMap
 

Private Member Functions

void InitializeOnDetectorConstruction (const TString &gdmlFilename, const G4VPhysicalVolume *world)
 
void PopulateFromGeant4World (const G4VPhysicalVolume *)
 

Private Attributes

bool fIsAssembly = false
 
std::map< Int_t, TString > fVolumeNameMap = {}
 
std::map< TString, Int_t > fVolumeNameReverseMap = {}
 

Friends

class DetectorConstruction
 

Member Function Documentation

◆ GetAllAlternativePhysicalVolumes()

std::vector< TString > TRestGeant4GeometryInfo::GetAllAlternativePhysicalVolumes ( ) const

Definition at line 222 of file TRestGeant4GeometryInfo.cxx.

◆ GetAllLogicalVolumes()

std::vector< TString > TRestGeant4GeometryInfo::GetAllLogicalVolumes ( ) const

Definition at line 202 of file TRestGeant4GeometryInfo.cxx.

◆ GetAllLogicalVolumesMatchingExpression()

std::vector< TString > TRestGeant4GeometryInfo::GetAllLogicalVolumesMatchingExpression ( const TString &  regularExpression) const

Definition at line 247 of file TRestGeant4GeometryInfo.cxx.

◆ GetAllPhysicalVolumes()

std::vector< TString > TRestGeant4GeometryInfo::GetAllPhysicalVolumes ( ) const

Definition at line 212 of file TRestGeant4GeometryInfo.cxx.

◆ GetAllPhysicalVolumesFromLogical()

std::vector< TString > TRestGeant4GeometryInfo::GetAllPhysicalVolumesFromLogical ( const TString &  logicalVolume) const
inline

Definition at line 77 of file TRestGeant4GeometryInfo.h.

◆ GetAllPhysicalVolumesMatchingExpression()

std::vector< TString > TRestGeant4GeometryInfo::GetAllPhysicalVolumesMatchingExpression ( const TString &  regularExpression) const

Definition at line 232 of file TRestGeant4GeometryInfo.cxx.

◆ GetAlternativeNameFromGeant4PhysicalName()

TString TRestGeant4GeometryInfo::GetAlternativeNameFromGeant4PhysicalName ( const TString &  geant4PhysicalName) const

Definition at line 133 of file TRestGeant4GeometryInfo.cxx.

◆ GetGeant4PhysicalNameFromAlternativeName()

TString TRestGeant4GeometryInfo::GetGeant4PhysicalNameFromAlternativeName ( const TString &  alternativeName) const

Definition at line 141 of file TRestGeant4GeometryInfo.cxx.

◆ GetIDFromVolume()

Int_t TRestGeant4GeometryInfo::GetIDFromVolume ( const TString &  volumeName) const

Definition at line 163 of file TRestGeant4GeometryInfo.cxx.

◆ GetPosition()

TVector3 TRestGeant4GeometryInfo::GetPosition ( const TString &  volume) const
inline

Definition at line 84 of file TRestGeant4GeometryInfo.h.

◆ GetVolumeFromID()

TString TRestGeant4GeometryInfo::GetVolumeFromID ( Int_t  id) const

Definition at line 159 of file TRestGeant4GeometryInfo.cxx.

◆ InitializeOnDetectorConstruction()

void TRestGeant4GeometryInfo::InitializeOnDetectorConstruction ( const TString &  gdmlFilename,
const G4VPhysicalVolume *  world 
)
inlineprivate

Definition at line 25 of file TRestGeant4GeometryInfo.h.

◆ InsertVolumeName()

void TRestGeant4GeometryInfo::InsertVolumeName ( Int_t  id,
const TString &  volumeName 
)

Definition at line 173 of file TRestGeant4GeometryInfo.cxx.

◆ IsAssembly()

bool TRestGeant4GeometryInfo::IsAssembly ( ) const
inline

Definition at line 88 of file TRestGeant4GeometryInfo.h.

◆ IsValidGdmlName()

bool TRestGeant4GeometryInfo::IsValidGdmlName ( const TString &  volume) const
inline

Definition at line 62 of file TRestGeant4GeometryInfo.h.

◆ IsValidLogicalVolume()

bool TRestGeant4GeometryInfo::IsValidLogicalVolume ( const TString &  volume) const
inline

Definition at line 74 of file TRestGeant4GeometryInfo.h.

◆ IsValidPhysicalVolume()

bool TRestGeant4GeometryInfo::IsValidPhysicalVolume ( const TString &  volume) const
inline

Definition at line 71 of file TRestGeant4GeometryInfo.h.

◆ PopulateFromGdml()

void TRestGeant4GeometryInfo::PopulateFromGdml ( const TString &  gdmlFilename)

Definition at line 55 of file TRestGeant4GeometryInfo.cxx.

◆ Print()

void TRestGeant4GeometryInfo::Print ( ) const

Definition at line 178 of file TRestGeant4GeometryInfo.cxx.

Friends And Related Function Documentation

◆ DetectorConstruction

friend class DetectorConstruction
friend

Definition at line 97 of file TRestGeant4GeometryInfo.h.

Field Documentation

◆ fGdmlLogicalNames

std::vector<TString> TRestGeant4GeometryInfo::fGdmlLogicalNames

Definition at line 34 of file TRestGeant4GeometryInfo.h.

◆ fGdmlNewPhysicalNames

std::vector<TString> TRestGeant4GeometryInfo::fGdmlNewPhysicalNames

Definition at line 33 of file TRestGeant4GeometryInfo.h.

◆ fGeant4PhysicalNameToNewPhysicalNameMap

std::map<TString, TString> TRestGeant4GeometryInfo::fGeant4PhysicalNameToNewPhysicalNameMap

Definition at line 37 of file TRestGeant4GeometryInfo.h.

◆ fIsAssembly

bool TRestGeant4GeometryInfo::fIsAssembly = false
private

Definition at line 18 of file TRestGeant4GeometryInfo.h.

◆ fLogicalToMaterialMap

std::map<TString, TString> TRestGeant4GeometryInfo::fLogicalToMaterialMap

Definition at line 44 of file TRestGeant4GeometryInfo.h.

◆ fLogicalToPhysicalMap

std::map<TString, std::vector<TString> > TRestGeant4GeometryInfo::fLogicalToPhysicalMap

Definition at line 42 of file TRestGeant4GeometryInfo.h.

◆ fPhysicalToLogicalVolumeMap

std::map<TString, TString> TRestGeant4GeometryInfo::fPhysicalToLogicalVolumeMap

Definition at line 41 of file TRestGeant4GeometryInfo.h.

◆ fPhysicalToPositionInWorldMap

std::map<TString, TVector3> TRestGeant4GeometryInfo::fPhysicalToPositionInWorldMap

Definition at line 45 of file TRestGeant4GeometryInfo.h.

◆ fVolumeNameMap

std::map<Int_t, TString> TRestGeant4GeometryInfo::fVolumeNameMap = {}
private

Definition at line 20 of file TRestGeant4GeometryInfo.h.

◆ fVolumeNameReverseMap

std::map<TString, Int_t> TRestGeant4GeometryInfo::fVolumeNameReverseMap = {}
private

Definition at line 21 of file TRestGeant4GeometryInfo.h.


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