CbmRoot
Loading...
Searching...
No Matches
CbmGeometryUtils.h
Go to the documentation of this file.
1/* Copyright (C) 2018-2023 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer], Eoin Clerkin */
4
5#include "Rtypes.h"
6
7class TGeoMatrix;
8class TGeoVolume;
9class TGeoManager;
10class TGeoMedium;
11class FairModule;
12class TString;
13
14namespace Cbm
15{
16 namespace GeometryUtils
17 {
18 void UniqueId();
19 void PrintMedia();
20 void PrintMaterials();
21 void ReAssignMediaId();
24
25 void ImportRootGeometry(TString& filename, FairModule* mod, TGeoMatrix* mat = nullptr);
26
27 bool IsNewGeometryFile(TString& filename);
28 bool IsNewGeometryFile(TString& filename, TString& volumeName, TGeoMatrix** matrix);
29
30 void AssignMediumAtImport(TGeoVolume* v);
31 void ExpandNodes(TGeoVolume* volume, FairModule* mod);
32
38 void LocalToMasterCovarianceMatrix(const TGeoMatrix& m, Double_t& covXX, Double_t& covXY, Double_t& covYY);
39
40 /* Populate a GeoManager with the full media and materials defined to return */
41 TGeoManager* pop_TGeoManager(const char* name);
42
43 /* Open root file geometry and add it to parent */
44 bool add_binary(const char rootFile[], TGeoVolume* top, TGeoMedium* med, Int_t inum, TGeoMatrix* mat);
45
46 TGeoMatrix* cad_matrix(double XX, double XY, double XZ, double YX, double YY, double YZ, double ZX, double ZY,
47 double ZZ, double TX, double TY, double TZ);
48
49 } // namespace GeometryUtils
50} // namespace Cbm
fscal v[fmask::Size]
Definition KfSimdPseudo.h:4
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)
void AssignMediumAtImport(TGeoVolume *v)
Bool_t IsNewGeometryFile(TString &filename)
void ExpandNodes(TGeoVolume *vol, FairModule *mod)
void ImportRootGeometry(TString &filename, FairModule *mod, TGeoMatrix *mat)
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)