165 fgG4Compatibility(0),
215 Info(
"WriteGDMLfile",
"Geant4 compatibility mode set");
221 Info(
"WriteGDMLfile",
"Fast naming convetion with pointer suffix set");
224 Info(
"WriteGDMLfile",
"Naming without prefix set - be careful uniqness of name is not ensured");
227 Info(
"WriteGDMLfile",
"Potentially slow with incremental suffix naming convention set");
231 Int_t outputLayout = 1;
232 const char * krootNodeName =
"gdml";
233 const char * knsRefGeneral =
"http://www.w3.org/2001/XMLSchema-instance";
234 const char * knsNameGeneral =
"xsi";
235 const char * knsRefGdml =
"http://service-spi.web.cern.ch/service-spi/app/releases/GDML/schema/gdml.xsd";
236 const char * knsNameGdml =
"xsi:noNamespaceSchemaLocation";
250 fGdmlE->
NewNS(rootNode, knsRefGeneral, knsNameGeneral);
294 Info(
"WriteGDMLfile",
"Extracting volumes");
298 Info(
"WriteGDMLfile",
"Top volume does not exist!");
302 Info(
"WriteGDMLfile",
"%i volumes added",
fVolCnt);
312 Double_t tdiffI = difftime(endT, startT);
314 Info(
"WriteGDMLfile",
"Exporting time: %s", tdiffS.
Data());
319 Info(
"WriteGDMLfile",
"File %s saved", filename);
333 Info(
"ExtractMaterials",
"Extracting materials");
339 TIter next(materialsLst);
356 Info(
"ExtractMaterials",
"%i materials added", matcnt);
384 TString volname, matname, solname, pattClsName, nodeVolNameBak;
407 if (solname ==
"-1") {
408 Info(
"ExtractVolumes",
"ERROR! %s volume was not added, because solid is either not supported or corrupted",
435 while ((geoNode = (
TGeoNode *) next())) {
445 if (nodevolname.
Contains(
"missing_")) {
449 nodeVolNameBak = nodevolname;
452 if (isPattern ==
kFALSE) {
454 TString nodename, posname, rotname;
456 nodename = nodename +
"in" + volname;
459 posname = nodename +
"pos";
498 if ((lxyz.
x != 0.0) || (lxyz.
y != 0.0) || (lxyz.
z != 0.0)) {
499 rotname = nodename +
"rot";
511 if (isPattern && pattFinder) {
524 offset = pattFinder->
GetStart() - xlo;
600 for (
Int_t idx = 0; idx < nOfIso; idx++) {
603 Fatal(
"CreateElementN",
"Missing isotopes for element %s", element->
GetName());
628 for (NameListI::iterator itr = wCounter.begin(); itr != wCounter.end(); itr++) {
629 if (itr->second > 1) {
630 Info(
"CreateMixtureN",
"WARNING! 2 equal isotopes in one element. Check: %s isotope of %s element",
631 itr->first.Data(),
name);
638 Int_t valZ = element->
Z();
663 for (
Int_t idx = 0; idx < nOfElm; idx++) {
675 wPercentage[lname] += mixture->
GetWmixt()[idx];
689 for (NameListI::iterator itr = wCounter.begin(); itr != wCounter.end(); itr++) {
690 if (itr->second > 1) {
691 Info(
"CreateMixtureN",
"WARNING! 2 equal elements in one material. Check: %s element of %s material",
692 itr->first.Data(), mname.
Data());
713 if (tmpname ==
"vacuum") {
717 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! ",
721 Info(
"CreateMaterialN",
"WARNING! value of Z in %s material can't be < 1 in Geant4", mname.
Data());
908 if ((geoShape->
GetBl1() == 0 || geoShape->
GetTl1() == 0 || geoShape->
GetH1() == 0) ||
909 (geoShape->
GetBl2() == 0 || geoShape->
GetTl2() == 0 || geoShape->
GetH2() == 0)) {
953 if ((geoShape->
GetBl1() == 0 && geoShape->
GetTl1() == 0 && geoShape->
GetH1() == 0) ||
954 (geoShape->
GetBl2() == 0 && geoShape->
GetTl2() == 0 && geoShape->
GetH2() == 0)) {
992 Info(
"CreateTwistedTrapN",
993 "ERROR! Object %s is not exported correctly because parameter Alpha2 is not declared in GDML schema",
1094 Info(
"CreateCutTubeN",
"WARNING! %s - CutTube was replaced by intersection of TGeoTubSeg and two TGeoBBoxes",
1169 for (
Int_t it = 0; it < nZPlns; it++) {
1173 if ((it < nZPlns - 1) && (geoShape->
GetZ(it) == geoShape->
GetZ(it + 1))) {
1182 Info(
"CreatePolyconeN",
"WARNING! One plane was added to %s solid to be compatible with Geant4", lname.
Data());
1184 Info(
"CreatePolyconeN",
"WARNING! Solid %s definition seemds not contiguous may cause problems in Geant4", lname.
Data());
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 seemds not contiguous may cause problems in Geant4", lname.
Data());
1244 for (
Int_t it = 0; it < geoShape->
GetNz(); it++) {
1312 if (vertNum < 3 || secNum < 2) {
1313 Info(
"CreateXtrusionN",
"ERROR! TGeoXtru %s has only %i vertices and %i sections. It was not exported",
1314 lname.
Data(), vertNum, secNum);
1318 for (
Int_t it = 0; it < vertNum; it++) {
1325 for (
Int_t it = 0; it < secNum; it++) {
1364 Double_t zcut1 = 2 * zorig - zcut2;
1389 Double_t zmax = zcut * ((rx1 + rx2) / (rx1 - rx2));
1415 lboolType =
"union";
1418 lboolType =
"subtraction";
1421 lboolType =
"intersection";
1436 if (strcmp(leftS->
ClassName(),
"TGeoScaledShape") == 0 &&
1437 strcmp(rightS->
ClassName(),
"TGeoBBox") == 0) {
1438 if (strcmp(((
TGeoScaledShape *)leftS)->GetShape()->ClassName(),
"TGeoSphere") == 0) {
1439 if (lboolType ==
"intersection") {
1446 Xyz translL, translR;
1468 if (lname.Contains(
"missing_") || lname ==
"") {
1469 Info(
"CreateCommonBoolN",
"ERROR! Left node is NULL - Boolean Shape will be skipped");
1477 if (rname.
Contains(
"missing_") || rname ==
"") {
1478 Info(
"CreateCommonBoolN",
"ERROR! Right node is NULL - Boolean Shape will be skipped");
1507 if ((translL.
x != 0.0) || (translL.
y != 0.0) || (translL.
z != 0.0)) {
1512 if ((lrot.
x != 0.0) || (lrot.
y != 0.0) || (lrot.
z != 0.0)) {
1517 if ((translR.
x != 0.0) || (translR.
y != 0.0) || (translR.
z != 0.0)) {
1522 if ((rrot.
x != 0.0) || (rrot.
y != 0.0) || (rrot.
z != 0.0)) {
1623 if (strcmp(rotref,
"") != 0) {
1628 if (scaleN !=
NULL) {
1647 width = (
floor(width * 1E4)) * 1
E-4;
1648 if ((offset >= 0.) && (strcmp(axis,
"kPhi") == 0)) {
1650 Double_t decimals = offset - offsetI;
1652 offset = (offsetI % 360) + decimals - 360;
1659 if (strcmp(volref,
"") != 0) {
1674 const char * clsname = geoShape->
ClassName();
1682 if (strcmp(clsname,
"TGeoBBox") == 0) {
1684 }
else if (strcmp(clsname,
"TGeoParaboloid") == 0) {
1686 }
else if (strcmp(clsname,
"TGeoSphere") == 0) {
1688 }
else if (strcmp(clsname,
"TGeoArb8") == 0) {
1690 }
else if (strcmp(clsname,
"TGeoConeSeg") == 0) {
1692 }
else if (strcmp(clsname,
"TGeoCone") == 0) {
1694 }
else if (strcmp(clsname,
"TGeoPara") == 0) {
1696 }
else if (strcmp(clsname,
"TGeoTrap") == 0) {
1698 }
else if (strcmp(clsname,
"TGeoGtra") == 0) {
1700 }
else if (strcmp(clsname,
"TGeoTrd1") == 0) {
1702 }
else if (strcmp(clsname,
"TGeoTrd2") == 0) {
1704 }
else if (strcmp(clsname,
"TGeoTubeSeg") == 0) {
1706 }
else if (strcmp(clsname,
"TGeoCtub") == 0) {
1708 }
else if (strcmp(clsname,
"TGeoTube") == 0) {
1710 }
else if (strcmp(clsname,
"TGeoPcon") == 0) {
1712 }
else if (strcmp(clsname,
"TGeoTorus") == 0) {
1714 }
else if (strcmp(clsname,
"TGeoPgon") == 0) {
1716 }
else if (strcmp(clsname,
"TGeoEltu") == 0) {
1718 }
else if (strcmp(clsname,
"TGeoHype") == 0) {
1720 }
else if (strcmp(clsname,
"TGeoXtru") == 0) {
1722 }
else if (strcmp(clsname,
"TGeoScaledShape") == 0) {
1725 if (scaleObjClsName ==
"TGeoCone") {
1728 Info(
"ChooseObject",
1729 "ERROR! TGeoScaledShape object is not possible to process correctly. %s object is processed without scale",
1730 scaleObjClsName.
Data());
1736 }
else if (strcmp(clsname,
"TGeoCompositeShape") == 0) {
1738 }
else if (strcmp(clsname,
"TGeoUnion") == 0) {
1740 }
else if (strcmp(clsname,
"TGeoIntersection") == 0) {
1742 }
else if (strcmp(clsname,
"TGeoSubtraction") == 0) {
1745 Info(
"ChooseObject",
"ERROR! %s Solid CANNOT be processed, solid is NOT supported",
1749 if (solidN ==
NULL) {
1771 if (cosb > 0.00001) {
1809 Double_t boxdx = 1E8 * (2 * rmax) + (2 * z);
1870 Bool_t isIN = list[name2check];
1898 TString fstLet = newname(0, 1);
1900 newname =
"O" + newname(1, newname.
Length());
1911 if (newname != oldname) {
1914 "WARNING! Name of the object was changed because it failed to comply with NCNAME xml datatype restrictions.");
1917 "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.");
1925 newname = newname +
"0x" + objPointer;
1936 newname = newname + nameIter;
1957 return !(isProcessed);
1969 if (strcmp(pattName,
"TGeoPatternX") == 0) {
1971 }
else if (strcmp(pattName,
"TGeoPatternCylR") == 0) {
1976 if (strcmp(pattName,
"TGeoPatternY") == 0) {
1978 }
else if (strcmp(pattName,
"TGeoPatternCylPhi") == 0) {
1984 if (strcmp(pattName,
"TGeoPatternZ") == 0) {
1989 return "kUndefined";
1992 return "kUndefined";
2000 if (parValue == 0.) {
2001 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.
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.
TString & ReplaceAll(const TString &s1, const TString &s2)
Bool_t TestBit(UInt_t f) const
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...
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.
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.
std::vector< std::vector< double > > Data
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 convetion 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.
unsigned int r1[N_CITIES]
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
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
virtual TGeoMatrix & Inverse() const =0
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.
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()
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.
unsigned int r2[N_CITIES]
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.