CbmRoot
Cbm::GeometryUtils Namespace Reference

Functions

void PrintMedia ()
 
void PrintMaterials ()
 
void CorrectMediaId ()
 
void RemoveDuplicateMaterials ()
 
void RemoveDuplicateMedia ()
 
void ReAssignMediaId ()
 
Bool_t IsNewGeometryFile (TString &filename)
 
void ImportRootGeometry (TString &filename, FairModule *mod, TGeoMatrix *mat)
 
Bool_t IsNewGeometryFile (TString &filename, TString &volumeName, TGeoMatrix **matrix)
 
void AssignMediumAtImport (TGeoVolume *v)
 
void ExpandNodes (TGeoVolume *vol, FairModule *mod)
 

Function Documentation

◆ AssignMediumAtImport()

void Cbm::GeometryUtils::AssignMediumAtImport ( TGeoVolume *  v)

Assign medium to the the volume v, this has to be done in all cases: case 1: For CAD converted volumes they have no mediums (only names) case 2: TGeoVolumes, we need to be sure that the material is defined in this session

The Material is not yet defined in the TGeoManager, we try to create one if we have enough information about it

Material is already available in the TGeoManager and we can set it

Definition at line 240 of file CbmGeometryUtils.cxx.

References v.

Referenced by ExpandNodes().

◆ CorrectMediaId()

void Cbm::GeometryUtils::CorrectMediaId ( )

Definition at line 54 of file CbmGeometryUtils.cxx.

References counter.

Referenced by ImportRootGeometry().

◆ ExpandNodes()

void Cbm::GeometryUtils::ExpandNodes ( TGeoVolume *  vol,
FairModule *  mod 
)

Definition at line 306 of file CbmGeometryUtils.cxx.

References AssignMediumAtImport(), and v.

Referenced by ImportRootGeometry().

◆ ImportRootGeometry()

◆ IsNewGeometryFile() [1/2]

◆ IsNewGeometryFile() [2/2]

bool Cbm::GeometryUtils::IsNewGeometryFile ( TString &  filename,
TString &  volumeName,
TGeoMatrix **  matrix 
)

Definition at line 179 of file CbmGeometryUtils.cxx.

References f.

◆ PrintMaterials()

void Cbm::GeometryUtils::PrintMaterials ( )

Definition at line 43 of file CbmGeometryUtils.cxx.

◆ PrintMedia()

void Cbm::GeometryUtils::PrintMedia ( )

Definition at line 33 of file CbmGeometryUtils.cxx.

◆ ReAssignMediaId()

void Cbm::GeometryUtils::ReAssignMediaId ( )

Definition at line 100 of file CbmGeometryUtils.cxx.

References i, RemoveDuplicateMaterials(), and RemoveDuplicateMedia().

◆ RemoveDuplicateMaterials()

void Cbm::GeometryUtils::RemoveDuplicateMaterials ( )

Definition at line 64 of file CbmGeometryUtils.cxx.

Referenced by ImportRootGeometry(), and ReAssignMediaId().

◆ RemoveDuplicateMedia()

void Cbm::GeometryUtils::RemoveDuplicateMedia ( )

Definition at line 82 of file CbmGeometryUtils.cxx.

Referenced by ImportRootGeometry(), and ReAssignMediaId().