42 TString geofile =
gROOT->GetTutorialDir() +
"/geom/gdml/opticalsurfaces.gdml";
46 printf(
"=== Importing %s ...\n", geofile.
Data());
48 printf(
"=== List of GDML matrices:\n");
50 printf(
"=== List of optical surfaces:\n");
52 printf(
"=== List of skin surfaces:\n");
54 printf(
"=== List of border surfaces:\n");
57 double checksum1 = Checksum(geom);
58 printf(
"=== Exporting as .gdml, then importing back\n");
61 double checksum2 = Checksum(geom);
62 assert((checksum2 == checksum1) &&
"Exporting/importing as .gdml not OK");
63 printf(
"=== Exporting as .root, then importing back\n");
66 double checksum3 = Checksum(geom);
67 assert((checksum3 == checksum1) &&
"Exporting/importing as .root not OK");
void Print(Option_t *option="") const override
Default print for collections, calls Print(option, 1).
The manager class for any TGeo geometry.
static void SetExportPrecision(UInt_t prec)
TObjArray * GetListOfSkinSurfaces() const
TObjArray * GetListOfGDMLMatrices() const
virtual Int_t Export(const char *filename, const char *name="", Option_t *option="vg")
Export this geometry to a file.
TObjArray * GetListOfBorderSurfaces() const
static TGeoManager * Import(const char *filename, const char *name="", Option_t *option="")
static function Import a geometry from a gdml or ROOT file
static void SetVerboseLevel(Int_t vl)
Return current verbosity level (static function).
TObjArray * GetListOfOpticalSurfaces() const
This is a wrapper class to G4OpticalSurface.
ESurfaceModel GetModel() const
ESurfaceFinish GetFinish() const
Double_t GetValue() const
ESurfaceType GetType() const
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
static uint64_t sum(uint64_t i)