CbmRoot
Loading...
Searching...
No Matches
Cbm::GeometryUtils Namespace Reference

Functions

void PrintMedia ()
 
void PrintMaterials ()
 
void UniqueId ()
 
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)
 
void LocalToMasterCovarianceMatrix (const TGeoMatrix &m, Double_t &covXX, Double_t &covXY, Double_t &covYY)
 Convert the local X/Y covariance matrix to global coordinates.
 
TGeoManager * pop_TGeoManager (const char *name)
 
bool add_binary (const char rootFile[], TGeoVolume *top, TGeoMedium *med, Int_t inum, TGeoMatrix *mat)
 
TGeoMatrix * cad_matrix (double XX, double XY, double XZ, double YX, double YY, double YZ, double ZX, double ZY, double ZZ, double TX, double TY, double TZ)
 

Function Documentation

◆ add_binary()

bool Cbm::GeometryUtils::add_binary ( const char rootFile[],
TGeoVolume * top,
TGeoMedium * med,
Int_t inum,
TGeoMatrix * mat )

Definition at line 439 of file CbmGeometryUtils.cxx.

◆ 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 294 of file CbmGeometryUtils.cxx.

References v.

Referenced by ExpandNodes().

◆ cad_matrix()

TGeoMatrix * Cbm::GeometryUtils::cad_matrix ( double XX,
double XY,
double XZ,
double YX,
double YY,
double YZ,
double ZX,
double ZY,
double ZZ,
double TX,
double TY,
double TZ )

Definition at line 458 of file CbmGeometryUtils.cxx.

◆ ExpandNodes()

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

Definition at line 361 of file CbmGeometryUtils.cxx.

References AssignMediumAtImport(), ExpandNodes(), and v.

Referenced by ExpandNodes(), and ImportRootGeometry().

◆ ImportRootGeometry()

◆ IsNewGeometryFile() [1/2]

◆ IsNewGeometryFile() [2/2]

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

Definition at line 237 of file CbmGeometryUtils.cxx.

◆ LocalToMasterCovarianceMatrix()

void Cbm::GeometryUtils::LocalToMasterCovarianceMatrix ( const TGeoMatrix & m,
Double_t & covXX,
Double_t & covXY,
Double_t & covYY )

Convert the local X/Y covariance matrix to global coordinates.

Parameters
mthe transformation matrix
covXXcovariance X,X
covXYcovariance X,Y
covYYcovariance Y,Y

Definition at line 381 of file CbmGeometryUtils.cxx.

Referenced by CbmStsAlgoFindHits::CreateHit().

◆ pop_TGeoManager()

TGeoManager * Cbm::GeometryUtils::pop_TGeoManager ( const char * name)

Definition at line 410 of file CbmGeometryUtils.cxx.

◆ PrintMaterials()

void Cbm::GeometryUtils::PrintMaterials ( )

Definition at line 50 of file CbmGeometryUtils.cxx.

◆ PrintMedia()

void Cbm::GeometryUtils::PrintMedia ( )

Definition at line 39 of file CbmGeometryUtils.cxx.

◆ ReAssignMediaId()

void Cbm::GeometryUtils::ReAssignMediaId ( )

Definition at line 154 of file CbmGeometryUtils.cxx.

References RemoveDuplicateMaterials(), and RemoveDuplicateMedia().

◆ RemoveDuplicateMaterials()

void Cbm::GeometryUtils::RemoveDuplicateMaterials ( )

Definition at line 114 of file CbmGeometryUtils.cxx.

Referenced by ImportRootGeometry(), and ReAssignMediaId().

◆ RemoveDuplicateMedia()

void Cbm::GeometryUtils::RemoveDuplicateMedia ( )

Definition at line 134 of file CbmGeometryUtils.cxx.

Referenced by ImportRootGeometry(), and ReAssignMediaId().

◆ UniqueId()

void Cbm::GeometryUtils::UniqueId ( )

Definition at line 62 of file CbmGeometryUtils.cxx.

Referenced by ImportRootGeometry().