179 fgG4Compatibility(0),
229 Info(
"WriteGDMLfile",
"Geant4 compatibility mode set");
235 Info(
"WriteGDMLfile",
"Fast naming convention with pointer suffix set");
238 Info(
"WriteGDMLfile",
"Naming without prefix set - be careful uniqness of name is not ensured");
241 Info(
"WriteGDMLfile",
"Potentially slow with incremental suffix naming convention set");
245 Int_t outputLayout = 1;
246 const char * krootNodeName =
"gdml";
247 const char * knsRefGeneral =
"http://www.w3.org/2001/XMLSchema-instance";
248 const char * knsNameGeneral =
"xsi";
249 const char * knsRefGdml =
"http://service-spi.web.cern.ch/service-spi/app/releases/GDML/schema/gdml.xsd";
250 const char * knsNameGdml =
"xsi:noNamespaceSchemaLocation";
264 fGdmlE->
NewNS(rootNode, knsRefGeneral, knsNameGeneral);
308 Info(
"WriteGDMLfile",
"Extracting volumes");
312 Info(
"WriteGDMLfile",
"Top volume does not exist!");
316 Info(
"WriteGDMLfile",
"%i volumes added",
fVolCnt);
326 Double_t tdiffI = difftime(endT, startT);
328 Info(
"WriteGDMLfile",
"Exporting time: %s", tdiffS.
Data());
333 Info(
"WriteGDMLfile",
"File %s saved", filename);
347 Info(
"ExtractMaterials",
"Extracting materials");
353 TIter next(materialsLst);
370 Info(
"ExtractMaterials",
"%i materials added", matcnt);
398 TString volname, matname, solname, pattClsName, nodeVolNameBak;
421 if (solname ==
"-1") {
422 Info(
"ExtractVolumes",
"ERROR! %s volume was not added, because solid is either not supported or corrupted",
449 while ((geoNode = (
TGeoNode *) next())) {
459 if (nodevolname.
Contains(
"missing_")) {
463 nodeVolNameBak = nodevolname;
466 if (isPattern ==
kFALSE) {
468 TString nodename, posname, rotname;
470 nodename = nodename +
"in" + volname;
473 posname = nodename +
"pos";
495 fGdmlE->
NewAttr(scaleN, 0,
"name", (nodename +
"scl").Data());
512 if ((lxyz.
x != 0.0) || (lxyz.
y != 0.0) || (lxyz.
z != 0.0)) {
513 rotname = nodename +
"rot";
525 if (isPattern && pattFinder) {
538 offset = pattFinder->
GetStart() - xlo;
614 for (
Int_t idx = 0; idx < nOfIso; idx++) {
617 Fatal(
"CreateElementN",
"Missing isotopes for element %s", element->
GetName());
642 for (NameListI::iterator itr = wCounter.begin(); itr != wCounter.end(); ++itr) {
643 if (itr->second > 1) {
644 Info(
"CreateMixtureN",
"WARNING! 2 equal isotopes in one element. Check: %s isotope of %s element",
645 itr->first.Data(),
name);
652 Int_t valZ = element->
Z();
677 for (
Int_t idx = 0; idx < nOfElm; idx++) {
689 wPercentage[lname] += mixture->
GetWmixt()[idx];
703 for (NameListI::iterator itr = wCounter.begin(); itr != wCounter.end(); ++itr) {
704 if (itr->second > 1) {
705 Info(
"CreateMixtureN",
"WARNING! 2 equal elements in one material. Check: %s element of %s material",
706 itr->first.Data(), mname.
Data());
727 if (tmpname ==
"vacuum") {
731 Info(
"CreateMaterialN",
"WARNING! value of Z in %s material can't be < 1 in Geant4, that is why it was changed to 1, please check it manually! ",
735 Info(
"CreateMaterialN",
"WARNING! value of Z in %s material can't be < 1 in Geant4", mname.
Data());
922 if ((geoShape->
GetBl1() == 0 || geoShape->
GetTl1() == 0 || geoShape->
GetH1() == 0) ||
923 (geoShape->
GetBl2() == 0 || geoShape->
GetTl2() == 0 || geoShape->
GetH2() == 0)) {
967 if ((geoShape->
GetBl1() == 0 && geoShape->
GetTl1() == 0 && geoShape->
GetH1() == 0) ||
968 (geoShape->
GetBl2() == 0 && geoShape->
GetTl2() == 0 && geoShape->
GetH2() == 0)) {
1006 Info(
"CreateTwistedTrapN",
1007 "ERROR! Object %s is not exported correctly because parameter Alpha2 is not declared in GDML schema",
1108 Info(
"CreateCutTubeN",
"WARNING! %s - CutTube was replaced by intersection of TGeoTubSeg and two TGeoBBoxes",
1183 for (
Int_t it = 0; it < nZPlns; it++) {
1187 if ((it < nZPlns - 1) && (geoShape->
GetZ(it) == geoShape->
GetZ(it + 1))) {
1196 Info(
"CreatePolyconeN",
"WARNING! One plane was added to %s solid to be compatible with Geant4", lname.
Data());
1198 Info(
"CreatePolyconeN",
"WARNING! Solid %s definition seems not contiguous may cause problems in Geant4", lname.
Data());
1210 Info(
"CreatePolyconeN",
"WARNING! One plane was added to %s solid to be compatible with Geant4", lname.
Data());
1212 Info(
"CreatePolyconeN",
"WARNING! Solid %s definition seems not contiguous may cause problems in Geant4", lname.
Data());
1258 for (
Int_t it = 0; it < geoShape->
GetNz(); it++) {
1326 if (vertNum < 3 || secNum < 2) {
1327 Info(
"CreateXtrusionN",
"ERROR! TGeoXtru %s has only %i vertices and %i sections. It was not exported",
1328 lname.
Data(), vertNum, secNum);
1332 for (
Int_t it = 0; it < vertNum; it++) {
1339 for (
Int_t it = 0; it < secNum; it++) {
1378 Double_t zcut1 = 2 * zorig - zcut2;
1403 Double_t zmax = zcut * ((rx1 + rx2) / (rx1 - rx2));
1429 lboolType =
"union";
1432 lboolType =
"subtraction";
1435 lboolType =
"intersection";
1450 if (strcmp(leftS->
ClassName(),
"TGeoScaledShape") == 0 &&
1451 strcmp(rightS->
ClassName(),
"TGeoBBox") == 0) {
1452 if (strcmp(((
TGeoScaledShape *)leftS)->GetShape()->ClassName(),
"TGeoSphere") == 0) {
1453 if (lboolType ==
"intersection") {
1460 Xyz translL, translR;
1482 if (lname.Contains(
"missing_") || lname ==
"") {
1483 Info(
"CreateCommonBoolN",
"ERROR! Left node is NULL - Boolean Shape will be skipped");
1491 if (rname.
Contains(
"missing_") || rname ==
"") {
1492 Info(
"CreateCommonBoolN",
"ERROR! Right node is NULL - Boolean Shape will be skipped");
1521 if ((translL.
x != 0.0) || (translL.
y != 0.0) || (translL.
z != 0.0)) {
1522 childN =
CreatePositionN((nodeName + lname +
"pos").Data(), translL,
"firstposition");
1526 if ((lrot.
x != 0.0) || (lrot.
y != 0.0) || (lrot.
z != 0.0)) {
1527 childN =
CreateRotationN((nodeName + lname +
"rot").Data(), lrot,
"firstrotation");
1531 if ((translR.
x != 0.0) || (translR.
y != 0.0) || (translR.
z != 0.0)) {
1532 childN =
CreatePositionN((nodeName + rname +
"pos").Data(), translR,
"position");
1536 if ((rrot.
x != 0.0) || (rrot.
y != 0.0) || (rrot.
z != 0.0)) {
1537 childN =
CreateRotationN((nodeName + rname +
"rot").Data(), rrot,
"rotation");
1637 if (strcmp(rotref,
"") != 0) {
1642 if (scaleN != NULL) {
1661 width = (
floor(width * 1E4)) * 1
E-4;
1662 if ((offset >= 0.) && (strcmp(axis,
"kPhi") == 0)) {
1664 Double_t decimals = offset - offsetI;
1666 offset = (offsetI % 360) + decimals - 360;
1673 if (strcmp(volref,
"") != 0) {
1688 const char * clsname = geoShape->
ClassName();
1696 if (strcmp(clsname,
"TGeoBBox") == 0) {
1698 }
else if (strcmp(clsname,
"TGeoParaboloid") == 0) {
1700 }
else if (strcmp(clsname,
"TGeoSphere") == 0) {
1702 }
else if (strcmp(clsname,
"TGeoArb8") == 0) {
1704 }
else if (strcmp(clsname,
"TGeoConeSeg") == 0) {
1706 }
else if (strcmp(clsname,
"TGeoCone") == 0) {
1708 }
else if (strcmp(clsname,
"TGeoPara") == 0) {
1710 }
else if (strcmp(clsname,
"TGeoTrap") == 0) {
1712 }
else if (strcmp(clsname,
"TGeoGtra") == 0) {
1714 }
else if (strcmp(clsname,
"TGeoTrd1") == 0) {
1716 }
else if (strcmp(clsname,
"TGeoTrd2") == 0) {
1718 }
else if (strcmp(clsname,
"TGeoTubeSeg") == 0) {
1720 }
else if (strcmp(clsname,
"TGeoCtub") == 0) {
1722 }
else if (strcmp(clsname,
"TGeoTube") == 0) {
1724 }
else if (strcmp(clsname,
"TGeoPcon") == 0) {
1726 }
else if (strcmp(clsname,
"TGeoTorus") == 0) {
1728 }
else if (strcmp(clsname,
"TGeoPgon") == 0) {
1730 }
else if (strcmp(clsname,
"TGeoEltu") == 0) {
1732 }
else if (strcmp(clsname,
"TGeoHype") == 0) {
1734 }
else if (strcmp(clsname,
"TGeoXtru") == 0) {
1736 }
else if (strcmp(clsname,
"TGeoScaledShape") == 0) {
1739 if (scaleObjClsName ==
"TGeoCone") {
1742 Info(
"ChooseObject",
1743 "ERROR! TGeoScaledShape object is not possible to process correctly. %s object is processed without scale",
1744 scaleObjClsName.
Data());
1750 }
else if (strcmp(clsname,
"TGeoCompositeShape") == 0) {
1752 }
else if (strcmp(clsname,
"TGeoUnion") == 0) {
1754 }
else if (strcmp(clsname,
"TGeoIntersection") == 0) {
1756 }
else if (strcmp(clsname,
"TGeoSubtraction") == 0) {
1759 Info(
"ChooseObject",
"ERROR! %s Solid CANNOT be processed, solid is NOT supported",
1763 if (solidN == NULL) {
1785 if (cosb > 0.00001) {
1823 Double_t boxdx = 1E8 * (2 * rmax) + (2 * z);
1884 Bool_t isIN = list[name2check];
1912 TString fstLet = newname(0, 1);
1914 newname =
"O" + newname(1, newname.
Length());
1925 if (newname != oldname) {
1928 "WARNING! Name of the object was changed because it failed to comply with NCNAME xml datatype restrictions.");
1931 "WARNING! Probably more names are going to be changed to comply with NCNAME xml datatype restriction, but it will not be displayed on the screen.");
1939 newname = newname +
"0x" + objPointer;
1950 newname = newname + nameIter;
1971 return !(isProcessed);
1983 if (strcmp(pattName,
"TGeoPatternX") == 0) {
1985 }
else if (strcmp(pattName,
"TGeoPatternCylR") == 0) {
1990 if (strcmp(pattName,
"TGeoPatternY") == 0) {
1992 }
else if (strcmp(pattName,
"TGeoPatternCylPhi") == 0) {
1998 if (strcmp(pattName,
"TGeoPatternZ") == 0) {
2003 return "kUndefined";
2006 return "kUndefined";
2014 if (parValue == 0.) {
2015 Info(
"IsNullParam",
"ERROR! %s is NULL due to %s = %.12g, Volume based on this shape will be skipped",
XMLNodePointer_t CreateMixtureN(TGeoMixture *mixture, XMLNodePointer_t materials, TString mname)
Creates "material" node for GDML with references to other sub elements.
virtual const char * GetName() const
Returns name of object.
Double_t GetTheta() const
Double_t GetAlpha2() const
XMLNodePointer_t CreateHypeN(TGeoHype *geoShape)
Creates "hype" node for GDML.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Bool_t TestAttBit(UInt_t f) const
Double_t GetXOffset(Int_t i) const
The manager class for any TGeo geometry.
This class contains implementation of converting ROOT's gGeoManager geometry to GDML file...
TGeoShape * GetLeftShape() const
XMLNodePointer_t CreateFractionN(Double_t percentage, const char *refName)
Creates "fraction" node for GDML.
virtual Double_t GetDX() const
XMLNodePointer_t CreateParaN(TGeoPara *geoShape)
Creates "para" node for GDML.
XMLNodePointer_t fStructureNode
static TGDMLWrite * fgGDMLWrite
virtual Double_t GetDensity() const
Gtra is a twisted trapezoid.
XMLNodePointer_t StartVolumeN(const char *name, const char *solid, const char *material)
Creates "volume" node for GDML.
Geometrical transformation package.
virtual const Double_t * GetRotationMatrix() const
TString & ReplaceAll(const TString &s1, const TString &s2)
virtual const Double_t * GetRotationMatrix() const =0
Double_t GetYOffset(Int_t i) const
XMLDocPointer_t NewDoc(const char *version="1.0")
creates new xml document with provided version
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
TString ExtractSolid(TGeoShape *volShape)
Method creating solid to xml file and returning its name.
virtual Double_t GetB() const
virtual Double_t GetRmax() const
Double_t * GetWmixt() const
virtual TGeoElement * GetElement(Int_t i=0) const
Retrieve the pointer to the element corresponding to component I.
const Double_t * GetNlow() const
Class describing translations.
void UnsetTemporaryBits(TGeoManager *geoMng)
Unsetting bits that were changed in gGeoManager during export so that export can be run more times wi...
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
XMLNodePointer_t CreateMaterialN(TGeoMaterial *material, TString mname)
Creates "material" node for GDML.
Bool_t CanProcess(TObject *pointer)
Method which tests whether solids can be processed.
Base class describing materials.
void ToLower()
Change string to lower-case.
XMLNodePointer_t CreatePositionN(const char *name, Xyz position, const char *type="position", const char *unit="cm")
Creates "position" kind of node for GDML.
void WriteGDMLfile(TGeoManager *geomanager, const char *filename="test.gdml", TString option="")
Wrapper of all exporting methods Creates blank GDML file and fills it with gGeoManager structure conv...
void SetSkipComments(Bool_t on=kTRUE)
std::map< TString, Float_t > NameListF
virtual Double_t GetRmin2() const
virtual EGeoBoolType GetBooleanOperator() const =0
XMLNodePointer_t CreateXtrusionN(TGeoXtru *geoShape)
Creates "xtru" node for GDML.
TGeoIsotope * GetIsotope(Int_t i) const
Return i-th isotope in the element.
A shape scaled by a TGeoScale transformation.
static constexpr double rad
XMLNodePointer_t CreateEllipsoidN(TGeoCompositeShape *geoShape, TString elName)
Creates "ellipsoid" node for GDML this is a special case, because ellipsoid is not defined in ROOT so...
virtual const Double_t * GetScale() const
XMLNodePointer_t StartAssemblyN(const char *name)
Creates "assembly" node for GDML.
A trapezoid with only x length varying with z.
void FreeDoc(XMLDocPointer_t xmldoc)
frees allocated document data and deletes document itself
XMLNodePointer_t CreateTwistedTrapN(TGeoGtra *geoShape)
Creates "twistedtrap" node for GDML.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
TList * GetListOfMaterials() const
XMLDocPointer_t fGdmlFile
XMLNodePointer_t CreateElConeN(TGeoScaledShape *geoShape)
Creates "elcone" (elliptical cone) node for GDML this is a special case, because elliptical cone is n...
virtual Double_t GetRmax() const
Double_t GetStOut() const
Bool_t HasIsotopes() const
XMLNodePointer_t CreateArb8N(TGeoArb8 *geoShape)
Creates "arb8" node for GDML.
static const double x2[5]
virtual const char * ClassName() const
Returns name of class to which the object belongs.
XMLNodePointer_t CreateZplaneN(Double_t z, Double_t rmin, Double_t rmax)
Creates "zplane" node for GDML.
TGeoPatternFinder * GetFinder() const
XMLNodePointer_t CreateConeN(TGeoConeSeg *geoShape)
Creates "cone" node for GDML from TGeoConeSeg object.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
Int_t GetNisotopes() const
A phi segment of a conical tube.
XMLNodePointer_t CreateTrapN(TGeoTrap *geoShape)
Creates "trap" node for GDML.
TGeoMatrix * GetLeftMatrix() const
Bool_t IsInList(NameList list, TString name2check)
Checks whether name2check is in (NameList) list.
XMLNodePointer_t CreateIsotopN(TGeoIsotope *isotope, const char *name)
Creates "isotope" node for GDML.
void DocSetRootElement(XMLDocPointer_t xmldoc, XMLNodePointer_t xmlnode)
set main (root) node for document
XMLNodePointer_t ExtractMaterials(TList *materialsLst)
Method exporting materials.
virtual ~TGDMLWrite()
Destructor.
Base class for chemical elements.
constexpr Double_t DegToRad()
virtual Double_t GetA() const
XMLNsPointer_t NewNS(XMLNodePointer_t xmlnode, const char *reference, const char *name=0)
create namespace attribute for xmlnode.
TGDMLWrite()
Default constructor.
TRAP is a general trapezoid, i.e.
virtual TGeoMatrix * GetMatrix() const =0
TGeoMaterial * GetMaterial() const
void SetG4Compatibility(Bool_t G4Compatible)
Double_t GetY(Int_t i) const
Double_t ATan2(Double_t, Double_t)
XMLNodePointer_t CreateEltubeN(TGeoEltu *geoShape)
Creates "eltube" node for GDML.
Double_t GetX(Int_t i) const
virtual Double_t GetZ() const
Bool_t IsNullParam(Double_t parValue, TString parName, TString objName)
Check for null parameter to skip the NULL objects.
XMLNodePointer_t fDefineNode
Base finder class for patterns.
XMLNodePointer_t fSolidsNode
virtual Double_t GetDz() const
Class handling Boolean composition of shapes.
virtual const char * GetName() const
Get the shape name.
A trapezoid with both x and y lengths varying with z.
Double_t * GetRmax() const
void SaveDoc(XMLDocPointer_t xmldoc, const char *filename, Int_t layout=1)
store document content to file if layout<=0, no any spaces or newlines will be placed between xmlnode...
Double_t * GetRmin() const
virtual Double_t GetRmin1() const
Xyz GetXYZangles(const Double_t *rotationMatrix)
Retrieves X Y Z angles from rotation matrix.
XMLNodePointer_t CreatePhysVolN(const char *name, Int_t copyno, const char *volref, const char *posref, const char *rotref, XMLNodePointer_t scaleN)
Creates "physvol" node for GDML.
Double_t GetTheta1() const
Base abstract class for all shapes.
void AddChild(XMLNodePointer_t parent, XMLNodePointer_t child)
add child element to xmlnode
Class describing rotation + translation.
void SetNamingSpeed(ENamingType naming)
Set convention of naming solids and volumes.
XMLNodePointer_t CreateBoxN(TGeoBBox *geoShape)
Creates "box" node for GDML.
Double_t GetAlpha() const
std::map< TString, Bool_t > NameList
XMLNodePointer_t CreatePolyconeN(TGeoPcon *geoShape)
Creates "polycone" node for GDML.
XMLNodePointer_t CreateParaboloidN(TGeoParaboloid *geoShape)
Creates "paraboloid" node for GDML.
XMLNodePointer_t CreateTorusN(TGeoTorus *geoShape)
Creates "torus" node for GDML.
Double_t GetStart() const
virtual Double_t GetRmax1() const
virtual Int_t GetNelements() const
Hyperboloid class defined by 5 parameters.
virtual const Double_t * GetOrigin() const
static constexpr double m2
TGeoCompositeShape * CreateFakeCtub(TGeoCtub *geoShape)
Method creating cutTube as an intersection of tube and two boxes.
Double_t GetScale(Int_t i) const
virtual Double_t GetDY() const
Class describing rotations.
TString GenName(TString oldname)
NCNAME basic restrictions Replace "$" character with empty character etc.
Bool_t IsTopVolume() const
True if this is the top volume of the geometry.
A tube segment cut with 2 planes.
XMLNodePointer_t CreateDivisionN(Double_t offset, Double_t width, Int_t number, const char *axis, const char *unit, const char *volref)
Creates "divisionvol" node for GDML.
An extrusion with fixed outline shape in x-y and a sequence of z extents (segments).
XMLAttrPointer_t NewAttr(XMLNodePointer_t xmlnode, XMLNsPointer_t, const char *name, const char *value)
creates new attribute for xmlnode, namespaces are not supported for attributes
static const double x1[5]
virtual Bool_t IsMixture() const
const Double_t * GetNhigh() const
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
An arbitrary trapezoid with less than 8 vertices standing on two parallel planes perpendicular to Z a...
XMLNodePointer_t CreateTrdN(TGeoTrd1 *geoShape)
Creates "trd" node for GDML from object TGeoTrd1.
static const UInt_t fgkProcBitVol
Bool_t IsReflection() const
XMLNodePointer_t CreatePolyhedraN(TGeoPgon *geoShape)
Creates "polyhedra" node for GDML.
virtual Double_t GetRmax2() const
TGeoMatrix * GetRightMatrix() const
XMLNodePointer_t CreateAtomN(Double_t atom, const char *unit="g/mole")
Creates "atom" node for GDML.
Double_t GetTwistAngle() const
TGeoScale * GetScale() const
virtual Int_t GetDivAxis()
Mother of all ROOT objects.
you should not use this method at all Int_t Int_t z
constexpr Double_t RadToDeg()
virtual TGeoHMatrix Inverse() const =0
XMLNodePointer_t ChooseObject(TGeoShape *geoShape)
Chooses the object and method that should be used for processing object.
XMLNodePointer_t CreateSphereN(TGeoSphere *geoShape)
Creates "sphere" node for GDML.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
void ExtractVolumes(TGeoVolume *volume)
Method extracting geometry structure recursively.
XMLNodePointer_t fMaterialsNode
virtual Double_t GetRmin() const
XMLNodePointer_t NewChild(XMLNodePointer_t parent, XMLNsPointer_t ns, const char *name, const char *content=0)
create new child element for parent node
XMLNodePointer_t CreateTubeN(TGeoTubeSeg *geoShape)
Creates "tube" node for GDML from object TGeoTubeSeg.
TObjArray * GetListOfVolumes() const
Double_t GetAlpha1() const
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
virtual Double_t GetA() const
XMLNodePointer_t CreateDN(Double_t density, const char *unit="g/cm3")
Creates "D" density node for GDML.
static const UInt_t fgkMaxNameErr
virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const =0
XMLNodePointer_t CreateElementN(TGeoElement *element, XMLNodePointer_t materials, const char *name)
Creates "element" node for GDML element node and attribute.
TGeoShape * GetShape() const
XMLNodePointer_t CreateCommonBoolN(TGeoCompositeShape *geoShape)
Creates common part of union intersection and subtraction nodes.
Bool_t IsDigit() const
Returns true if all characters in string are digits (0-9) or white spaces, i.e.
void SetAngles(Double_t phi, Double_t theta, Double_t psi)
Set matrix elements according to Euler angles.
Double_t GetTheta() const
Double_t Sqrt(Double_t x)
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
Double_t GetRelativeAbundance(Int_t i) const
Return relative abundance of i-th isotope in this element.
TGeoVolume * GetTopVolume() const
TGeoShape * GetShape() const
virtual const char * GetName() const
Returns name of object.
TGeoBoolNode * GetBoolNode() const
TGeoShape * GetRightShape() const
virtual const Double_t * GetTranslation() const =0
TGeoVolume * GetVolume() const
std::map< TString, Int_t > NameListI
XMLNodePointer_t CreateSetupN(const char *topVolName, const char *name="default", const char *version="1.0")
Creates "setup" node for GDML.
virtual Double_t GetRmin() const
TString GetPattAxis(Int_t divAxis, const char *pattName, TString &unit)
Method that retrieves axis and unit along which object is divided.
virtual Double_t GetDz() const
XMLNodePointer_t CreateRotationN(const char *name, Xyz rotation, const char *type="rotation", const char *unit="deg")
Creates "rotation" kind of node for GDML.
virtual const char * GetTitle() const
Returns title of object.
static const UInt_t fgkProcBit
virtual Double_t GetDZ() const
const char * Data() const
Double_t GetTheta2() const
virtual Bool_t IsAssembly() const
Returns true if the volume is an assembly or a scaled assembly.
XMLNodePointer_t CreateCutTubeN(TGeoCtub *geoShape)
Creates "cutTube" node for GDML.