132 for (
Int_t i = 0; i < 20; i++)
186 "\x1B[31m Found %d GDML entities missing explicit units, while the default "
187 "units are currently ROOT units [cm, deg]. This can cause unexpected behaviour with respect "
188 "to the GDML schema. To remove this warning, either use explicit units or call the static method "
189 "TGeoManager::SetDefaultUnits(kG4Units) before importing the GDML file \x1B[34m%s \x1B[0m",
204 const char *
name =
gdml->GetNodeName(node);
209 const char *
posistr =
"position";
211 const char *
consstr =
"constant";
212 const char *
varistr =
"variable";
213 const char *
quanstr =
"quantity";
214 const char *
matrstr =
"matrix";
215 const char *
rotastr =
"rotation";
217 const char *
elemstr =
"element";
218 const char *
istpstr =
"isotope";
219 const char *
matestr =
"material";
220 const char *
volustr =
"volume";
221 const char *
assestr =
"assembly";
222 const char *
twtrstr =
"twistedtrap";
223 const char *
cutTstr =
"cutTube";
229 const char *
polystr =
"polycone";
232 const char *
trdstr =
"trd";
233 const char *
sphestr =
"sphere";
234 const char *
orbstr =
"orb";
237 const char *
hedrstr =
"polyhedra";
238 const char *
eltustr =
"eltube";
239 const char *
subtstr =
"subtraction";
241 const char *
parbstr =
"paraboloid";
242 const char *
intestr =
"intersection";
243 const char *
reflstr =
"reflectedSolid";
244 const char *
ssolstr =
"scaledSolid";
245 const char *
ellistr =
"ellipsoid";
246 const char *
elcnstr =
"elcone";
247 const char *
optsstr =
"opticalsurface";
248 const char *
skinstr =
"skinsurface";
249 const char *
bordstr =
"bordersurface";
250 const char *
usrstr =
"userinfo";
251 const char *
tslstr =
"tessellated";
317 int z = (
atom) ? 1 : 0;
392 std::cout <<
"Error: Unsupported GDML Tag Used :" <<
name <<
". Please Check Geometry/Schema." << std::endl;
398 while (
child !=
nullptr) {
467 while (
attr !=
nullptr) {
541 while (
attr !=
nullptr) {
572 while (
attr !=
nullptr) {
606 matrix->SetMatrixAsString(values.c_str());
607 for (
size_t i = 0; i <
valueList.size(); ++i)
628 while (
attr !=
nullptr) {
653 while (
child !=
nullptr) {
656 while (
attr !=
nullptr) {
665 Error(
"OpticalSurfaceProcess",
"Reference matrix %s for optical surface %s not found",
ref.Data(),
688 if (
strcmp(unit,
"mm") == 0) {
690 }
else if (
strcmp(unit,
"millimeter") == 0 ||
strcmp(unit,
"milimeter") == 0) {
692 }
else if (
strcmp(unit,
"cm") == 0) {
694 }
else if (
strcmp(unit,
"centimeter") == 0) {
696 }
else if (
strcmp(unit,
"m") == 0) {
698 }
else if (
strcmp(unit,
"meter") == 0) {
700 }
else if (
strcmp(unit,
"km") == 0) {
702 }
else if (
strcmp(unit,
"kilometer") == 0) {
704 }
else if (
strcmp(unit,
"rad") == 0) {
706 }
else if (
strcmp(unit,
"radian") == 0) {
708 }
else if (
strcmp(unit,
"deg") == 0) {
710 }
else if (
strcmp(unit,
"degree") == 0) {
712 }
else if (
strcmp(unit,
"pi") == 0) {
714 }
else if (
strcmp(unit,
"avogadro") == 0) {
717 Fatal(
"GetScale",
"Unit <%s> not known", unit);
736 if ((unit ==
"mm") || (unit ==
"millimeter") || (unit ==
"milimeter")) {
738 }
else if ((unit ==
"cm") || (unit ==
"centimeter")) {
740 }
else if ((unit ==
"m") || (unit ==
"meter")) {
742 }
else if ((unit ==
"km") || (unit ==
"kilometer")) {
744 }
else if ((unit ==
"rad") || (unit ==
"radian")) {
746 }
else if ((unit ==
"deg") || (unit ==
"degree")) {
748 }
else if ((unit ==
"ev") || (unit ==
"electronvolt")) {
750 }
else if ((unit ==
"kev") || (unit ==
"kiloelectronvolt")) {
752 }
else if ((unit ==
"mev") || (unit ==
"megaelectronvolt")) {
754 }
else if ((unit ==
"gev") || (unit ==
"gigaelectronvolt")) {
756 }
else if (unit ==
"pi") {
758 }
else if (unit ==
"avogadro") {
761 Fatal(
"GetScaleVal",
"Unit <%s> not known",
sunit);
776 while (*end != 0 &&
isspace(*end))
788 std::string expanded;
793 const std::locale &
loc = std::locale::classic();
799 for (; *
p != 0; ++
p) {
800 if (std::isalpha(*
p,
loc) || *
p ==
'_') {
801 const char *
pe =
p + 1;
804 for (; *
pe != 0; ++
pe) {
831 TFormula f(
"TFormula", expanded.c_str());
835 f.SetParameter(it.first.c_str(), it.second);
839 if (std::isnan(val) || std::isinf(val)) {
840 Fatal(
"Value",
"Got bad value %lf from string '%s'", val,
svalue);
864 while (
attr !=
nullptr) {
920 while (
attr !=
nullptr) {
978 while (
attr !=
nullptr) {
1026 while (
attr !=
nullptr) {
1046 while (
attr !=
nullptr) {
1072 }
else if (
gDebug >= 2) {
1073 Info(
"TGDMLParse",
"Re-use existing isotope: %s",
iso->GetName());
1109 while (
attr !=
nullptr) {
1123 while (
child !=
nullptr) {
1131 while (
attr !=
nullptr) {
1151 if (
ele &&
ele->Z() == 0)
1168 while (
attr !=
nullptr) {
1183 while (
child !=
nullptr) {
1191 while (
attr !=
nullptr) {
1211 if (
ele &&
ele->Z() == 0)
1227 while (
attr !=
nullptr) {
1237 }
else if (
tempattr ==
"formula") {
1238 formula =
gdml->GetAttrValue(
attr);
1248 while (
attr !=
nullptr) {
1269 if (
ele &&
ele->Z() == 0)
1274 }
else if (
gDebug >= 2) {
1275 Info(
"TGDMLParse",
"Re-use existing element: %s",
ele->GetName());
1304 static int medid =
mgr->GetListOfMedia()->GetSize() + 1;
1320 name =
gdml->GetAttr(node,
"name");
1326 while (
child !=
nullptr) {
1331 while (
attr !=
nullptr) {
1336 property->SetName(
gdml->GetAttrValue(
attr));
1338 property->SetTitle(
gdml->GetAttrValue(
attr));
1346 Error(
"MatProcess",
"Reference %s for material %s not found",
property->GetTitle(),
1357 while (
attr !=
nullptr) {
1369 while (
attr !=
nullptr) {
1398 Info(
"TGDMLParse",
"Re-use existing material: %s",
mat->GetName());
1421 }
else if (
gDebug >= 2) {
1422 Info(
"TGDMLParse",
"Re-use existing material-element: %s",
mat_ele->GetName());
1428 while (
child !=
nullptr) {
1433 while (
attr !=
nullptr) {
1438 property->SetName(
gdml->GetAttrValue(
attr));
1440 property->SetTitle(
gdml->GetAttrValue(
attr));
1448 Error(
"MatProcess",
"Reference %s for material %s not found",
property->GetTitle(),
1462 while (
attr !=
nullptr) {
1485 while (
attr !=
nullptr) {
1500 while (
attr !=
nullptr) {
1514 name =
gdml->GetAttr(node,
"name");
1525 }
else if (
mat->IsMixture()) {
1528 Info(
"TGDMLParse",
"Re-use existing material-mixture: %s", mix->
GetName());
1530 Fatal(
"TGDMLParse",
"WARNING! Inconsistent material definitions between GDML and TGeoManager");
1585 }
else if (
gDebug >= 2) {
1586 Info(
"TGDMLParse",
"Re-use existing medium: %s",
med->GetName());
1601 while (
attr !=
nullptr) {
1608 if (
tempattr ==
"surfaceproperty") {
1615 while (
child !=
nullptr) {
1618 while (
attr !=
nullptr) {
1631 Fatal(
"SkinSurfaceProcess",
"Skin surface %s: referenced optical surface %s not defined",
name.Data(),
1647 while (
attr !=
nullptr) {
1654 if (
tempattr ==
"surfaceproperty") {
1662 while (
child !=
nullptr) {
1665 while (
attr !=
nullptr) {
1677 Fatal(
"BorderSurfaceProcess",
"Border surface %s not referencing two nodes",
name.Data());
1680 Fatal(
"BorderSurfaceProcess",
"Border surface %s: referenced optical surface %s not defined",
name.Data(),
1685 Fatal(
"BorderSurfaceProcess",
"Border surface %s: not found nodes %s [%s] or %s [%s]",
name.Data(),
1708 Error(
"GetPosition",
"Position %s not defined",
name);
1727 Error(
"GetRotation",
"Rotation %s not defined",
name);
1746 Error(
"GetScale",
"Scale %s not defined",
name);
1765 Error(
"GetSolid",
"Solid %s not defined",
name);
1784 Error(
"GetVolume",
"Volume %s not defined",
name);
1823 while (
child !=
nullptr) {
1848 printf(
"Medium: %s, Not Yet Defined!\n",
gdml->GetAttr(
child,
"ref"));
1855 name =
gdml->GetAttr(node,
"name");
1877 while (
child !=
nullptr) {
1937 }
else if (
tempattr ==
"position") {
1942 }
else if (
tempattr ==
"positionref") {
1946 Fatal(
"VolProcess",
"Physvol's position %s not found",
reftemp.Data());
1947 }
else if (
tempattr ==
"rotation") {
1952 }
else if (
tempattr ==
"rotationref") {
1956 Fatal(
"VolProcess",
"Physvol's rotation %s not found",
reftemp.Data());
1962 }
else if (
tempattr ==
"scaleref") {
1966 Fatal(
"VolProcess",
"Physvol's scale %s not found",
reftemp.Data());
1982 if (
scl !=
nullptr) {
2033 while (
attr !=
nullptr) {
2094 Fatal(
"VolProcess",
"Cannot divide volume %s", vol->
GetName());
2098 divvol->ReplayCreation(old);
2121 while (
attr !=
nullptr) {
2147 if (
tempattr ==
"replicate_along_axis") {
2153 while (
attr !=
nullptr) {
2167 while (
attr !=
nullptr) {
2180 while (
attr !=
nullptr) {
2231 Fatal(
"VolProcess",
"Cannot divide volume %s", vol->
GetName());
2235 divvol->ReplayCreation(old);
2309 while (
child !=
nullptr) {
2317 Fatal(
"BooSolid",
"First solid %s not found",
reftemp.Data());
2322 Fatal(
"BooSolid",
"Second solid %s not found",
reftemp.Data());
2323 }
else if (
tempattr ==
"position") {
2328 }
else if (
tempattr ==
"positionref") {
2332 Fatal(
"BooSolid",
"Second position %s not found",
reftemp.Data());
2333 }
else if (
tempattr ==
"rotation") {
2338 }
else if (
tempattr ==
"rotationref") {
2342 Fatal(
"BooSolid",
"Second rotation %s not found",
reftemp.Data());
2343 }
else if (
tempattr ==
"firstposition") {
2348 }
else if (
tempattr ==
"firstpositionref") {
2352 Fatal(
"BooSolid",
"First position %s not found",
reftemp.Data());
2353 }
else if (
tempattr ==
"firstrotation") {
2358 }
else if (
tempattr ==
"firstrotationref") {
2362 Fatal(
"BooSolid",
"First rotation %s not found",
reftemp.Data());
2469 while (
child !=
nullptr) {
2486 }
else if (
tempattr ==
"positionref") {
2490 Fatal(
"AssProcess",
"Position %s not found",
reftemp.Data());
2491 }
else if (
tempattr ==
"position") {
2496 }
else if (
tempattr ==
"rotationref") {
2500 Fatal(
"AssProcess",
"Rotation %s not found",
reftemp.Data());
2501 }
else if (
tempattr ==
"rotation") {
2534 const char *
name =
gdml->GetAttr(node,
"name");
2539 while (
child !=
nullptr) {
2570 while (
attr !=
nullptr) {
2631 while (
attr !=
nullptr) {
2717 while (
attr !=
nullptr) {
2756 Info(
"ElCone",
"ERROR! Parameter zcut = %.12g is not set properly, elcone will not be imported.",
z1);
2795 while (
attr !=
nullptr) {
2865 while (
attr !=
nullptr) {
2976 while (
attr !=
nullptr) {
2995 }
else if (
tempattr ==
"startphi") {
2997 }
else if (
tempattr ==
"deltaphi") {
3056 while (
attr !=
nullptr) {
3075 }
else if (
tempattr ==
"startphi") {
3077 }
else if (
tempattr ==
"deltaphi") {
3147 while (
attr !=
nullptr) {
3170 }
else if (
tempattr ==
"startphi") {
3172 }
else if (
tempattr ==
"deltaphi") {
3234 while (
attr !=
nullptr) {
3321 while (
attr !=
nullptr) {
3388 while (
attr !=
nullptr) {
3401 }
else if (
tempattr ==
"startphi") {
3403 }
else if (
tempattr ==
"deltaphi") {
3422 while (
child !=
nullptr) {
3427 Fatal(
"Polycone",
"Found less than 2 planes for polycone %s",
name.Data());
3434 double **table =
new double *[
numplanes];
3436 table[i] =
new double[
cols];
3442 while (
child !=
nullptr) {
3451 while (
attr !=
nullptr) {
3482 poly->DefineSection(
zno, table[
j][2], table[
j][0], table[
j][1]);
3518 while (
attr !=
nullptr) {
3531 }
else if (
tempattr ==
"startphi") {
3533 }
else if (
tempattr ==
"deltaphi") {
3535 }
else if (
tempattr ==
"numsides") {
3555 while (
child !=
nullptr) {
3560 Fatal(
"Polyhedra",
"Found less than 2 planes for polyhedra %s",
name.Data());
3567 double **table =
new double *[
numplanes];
3569 table[i] =
new double[
cols];
3575 while (
child !=
nullptr) {
3583 while (
attr !=
nullptr) {
3616 polyg->DefineSection(
zno, table[
j][2], table[
j][0], table[
j][1]);
3651 while (
attr !=
nullptr) {
3667 }
else if (
tempattr ==
"startphi") {
3669 }
else if (
tempattr ==
"deltaphi") {
3671 }
else if (
tempattr ==
"starttheta") {
3673 }
else if (
tempattr ==
"deltatheta") {
3724 while (
attr !=
nullptr) {
3743 }
else if (
tempattr ==
"startphi") {
3745 }
else if (
tempattr ==
"deltaphi") {
3794 while (
attr !=
nullptr) {
3864 while (
attr !=
nullptr) {
3944 while (
attr !=
nullptr) {
3980 }
else if (
tempattr ==
"phitwist") {
4033 while (
attr !=
nullptr) {
4086 while (
attr !=
nullptr) {
4143 while (
attr !=
nullptr) {
4171 while (
child !=
nullptr) {
4176 }
else if (
tempattr ==
"section") {
4184 Fatal(
"Xtru",
"Invalid number of sections/vertices found forxtru %s",
name.Data());
4195 for (i = 0; i <
nosects; i++) {
4203 while (
child !=
nullptr) {
4210 while (
attr !=
nullptr) {
4237 while (
attr !=
nullptr) {
4243 }
else if (
tempattr ==
"zPosition") {
4247 }
else if (
tempattr ==
"xOffset") {
4251 }
else if (
tempattr ==
"yOffset") {
4255 }
else if (
tempattr ==
"scalingFactor") {
4272 for (
int j = 0;
j <
sect;
j++) {
4279 for (i = 0; i <
nosects; i++) {
4298 while (
attr !=
nullptr) {
4316 if (trans ==
nullptr)
4318 const double *
tr = trans->GetTranslation();
4324 vertices[2] += vertices[0] + vertices[1];
4325 vertices[1] += vertices[0];
4327 tsl->AddFacet(vertices[0], vertices[1], vertices[2]);
4332 vertices[3] += vertices[0] + vertices[1] + vertices[2];
4333 vertices[2] += vertices[0] + vertices[1];
4334 vertices[1] += vertices[0];
4336 tsl->AddFacet(vertices[0], vertices[1], vertices[2], vertices[3]);
4341 while (
child !=
nullptr) {
4348 while (
attr !=
nullptr) {
4355 Fatal(
"Tessellated",
"Vertex %s not defined",
vname.Data());
4363 Fatal(
"Tessellated",
"Vertex %s not defined",
vname.Data());
4371 Fatal(
"Tessellated",
"Vertex %s not defined",
vname.Data());
4386 else if (
tempattr ==
"quadrangular") {
4390 while (
attr !=
nullptr) {
4397 Fatal(
"Tessellated",
"Vertex %s not defined",
vname.Data());
4405 Fatal(
"Tessellated",
"Vertex %s not defined",
vname.Data());
4413 Fatal(
"Tessellated",
"Vertex %s not defined",
vname.Data());
4421 Fatal(
"Tessellated",
"Vertex %s not defined",
vname.Data());
4437 tsl->CloseShape(
false);
4460 while (
attr !=
nullptr) {
4473 while (
child !=
nullptr) {
4491 }
else if (
tempattr ==
"scaleref") {
4495 Fatal(
"ScaledSolid",
"Solid's scale %s not found",
reftemp.Data());
4519 std::cout <<
"WARNING! The reflectedSolid is obsolete! Use scale transformation instead!" << std::endl;
4534 while (
attr !=
nullptr) {
4577 if (atoi(
sx) == -1) {
4580 if (atoi(
sy) == -1) {
4583 if (atoi(
sz) == -1) {
int Int_t
Signed integer 4 bytes (int)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t atom
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t child
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void xpos
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t attr
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void ypos
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t property
Option_t Option_t TPoint TPoint const char y1
R__EXTERN TGeoManager * gGeoManager
Int_t gDebug
Global variable setting the debug level. Set to 0 to disable, increase it in steps of 1 to increase t...
const_iterator begin() const
const_iterator end() const
This class is used in the process of reading and writing the GDML "matrix" tag.
XMLNodePointer_t Ellipsoid(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, an ellipsoid may be declared.
double Evaluate(const char *evalline)
Takes a string containing a mathematical expression and returns the value of the expression.
TGeoVolume * GDMLReadFile(const char *filename="test.gdml")
Creates the new instance of the XMLEngine called 'gdml', using the filename >> then parses the file a...
XMLNodePointer_t Reflection(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a Reflected Solid may be declared when the ReflectedSolid key...
XMLNodePointer_t TopProcess(TXMLEngine *gdml, XMLNodePointer_t node)
In the setup section of the GDML file, the top volume need to be declared.
TGeoVolume * GetVolume(const char *name)
TGeoScale * GetScaleObj(const char *name)
ReflSolidMap freflsolidmap
Map containing reflection names and the Solid name ir references to.
const char * ParseGDML(TXMLEngine *gdml, XMLNodePointer_t node)
This function recursively moves thru the DOM tree of the GDML file.
XMLNodePointer_t SclProcess(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the define section of the GDML file, rotations can be declared.
XMLNodePointer_t BorderSurfaceProcess(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the structure section of the GDML file, border surfaces can be declared.
XMLNodePointer_t Trd(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a Trd may be declared.
const char * fCurrentFile
TGeoRotation * GetRotation(const char *name)
void DefineConstants()
Define constant expressions used.
const char * NameShort(const char *name)
This function looks thru a string for the chars '0x' next to each other, when it finds this,...
XMLNodePointer_t Orb(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, an Orb may be declared.
FileMap ffilemap
Map containing reflected volume names and the solid ref for it.
MatrixMap fmatrices
Map containing values of constants declared in the file.
XMLNodePointer_t Hype(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a Hype may be declared.
VolMap fvolmap
Map containing solid names and the TGeoShape for it.
double GetScaleVal(const char *unit)
Throughout the GDML file, a unit can de specified.
std::string fDefault_lunit
XMLNodePointer_t BooSolid(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr, int num)
In the solid section of the GDML file, boolean solids can be declared.
XMLNodePointer_t Para(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a Para may be declared.
XMLNodePointer_t Arb8(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, an Arb8 may be declared.
RotMap frotmap
Map containing position names and the TGeoTranslation for it.
XMLNodePointer_t PosProcess(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the define section of the GDML file, positions can be declared.
ReflVolMap freflvolmap
Map containing reflection names and the TGDMLRefl for it - containing refl matrix.
XMLNodePointer_t Sphere(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a Sphere may be declared.
ReflectionsMap freflectmap
Map containing placed volume names and the TGeoNode for it.
XMLNodePointer_t Trap(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a Trap may be declared.
std::map< std::string, double > FracMap
XMLNodePointer_t EleProcess(TXMLEngine *gdml, XMLNodePointer_t node, XMLNodePointer_t parentn, Bool_t hasIsotopes, Bool_t hasIsotopesExtended)
When the element keyword is found, this function is called, and the name and values of the element ar...
XMLNodePointer_t Polyhedra(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a Polyhedra may be declared.
XMLNodePointer_t Cone(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a cone may be declared.
XMLNodePointer_t ElCone(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, an elliptical cone may be declared.
MatMap fmatmap
Map containing element names and the TGeoElement for it.
SclMap fsclmap
Map containing rotation names and the TGeoRotation for it.
XMLNodePointer_t MatrixProcess(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the define section of the GDML file, matrices These are referenced by other GDML tags,...
XMLNodePointer_t Tessellated(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a tessellated shape may be declared.
IsoMap fisomap
Map containing scale names and the TGeoScale for it.
XMLNodePointer_t IsoProcess(TXMLEngine *gdml, XMLNodePointer_t node, XMLNodePointer_t parentn)
In the material section of the GDML file, an isotope may be declared.
PvolMap fpvolmap
Map containing volume names and the TGeoVolume for it.
double Value(const char *svalue) const
Convert number in string format to double value.
TGeoTranslation * GetPosition(const char *name)
XMLNodePointer_t TwistTrap(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a TwistTrap may be declared.
MedMap fmedmap
Map containing material names and the TGeoMaterial for it.
XMLNodePointer_t Paraboloid(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a Paraboloid may be declared.
Int_t SetAxis(const char *axisString)
When using the 'divide' process in the geometry this function sets the variable 'axis' depending on w...
ConstMap fconsts
Map containing files parsed during entire parsing, with their world volume name.
std::string fDefault_aunit
XMLNodePointer_t QuantityProcess(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the define section of the GDML file, quantities can be declared.
XMLNodePointer_t Polycone(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a Polycone may be declared.
XMLNodePointer_t Box(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a box may be declared.
SolMap fsolmap
Map containing mixture names and the TGeoMixture for it.
EleMap felemap
Map containing isotope names and the TGeoIsotope for it.
XMLNodePointer_t Tube(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a Tube may be declared.
TString GetScale(const char *unit)
Throughout the GDML file, a unit can de specified.
XMLNodePointer_t AssProcess(TXMLEngine *gdml, XMLNodePointer_t node)
In the structure section of the GDML file, assembly volumes can be declared.
TGeoShape * GetSolid(const char *name)
TXMLEngine * fFileEngine[20]
XMLNodePointer_t RotProcess(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the define section of the GDML file, rotations can be declared.
XMLNodePointer_t Torus(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a Torus may be declared.
XMLNodePointer_t ConProcess(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the define section of the GDML file, constants can be declared.
XMLNodePointer_t VolProcess(TXMLEngine *gdml, XMLNodePointer_t node)
In the structure section of the GDML file, volumes can be declared.
XMLNodePointer_t OpticalSurfaceProcess(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, optical surfaces can be defined.
XMLNodePointer_t SkinSurfaceProcess(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the structure section of the GDML file, skin surfaces can be declared.
XMLNodePointer_t ElTube(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a ElTube may be declared.
XMLNodePointer_t Xtru(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, an Xtru may be declared.
XMLNodePointer_t MatProcess(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr, int z)
In the materials section of the GDML file, materials can be declared.
XMLNodePointer_t CutTube(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a Cut Tube may be declared.
XMLNodePointer_t ScaledSolid(TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
In the solids section of the GDML file, a Scaled Solid may be declared when the scaledSolid keyword i...
MixMap fmixmap
Map containing medium names and the TGeoMedium for it.
XMLNodePointer_t UsrProcess(TXMLEngine *gdml, XMLNodePointer_t node)
User data to be processed.
This class is a helper class for TGDMLParse.
TGeoMatrix * fMatrix
solid name being reflected
TGeoMatrix * GetMatrix()
This accessor method returns the matrix.
const char * fSolid
reflected solid name
An arbitrary trapezoid with less than 8 vertices standing on two parallel planes perpendicular to Z a...
Base class for Boolean operations between two shapes.
Class describing rotation + translation.
Composite shapes are Boolean combinations of two or more shape components.
A cone segment is a cone having a range in phi.
The cones are defined by 5 parameters:
The cut tubes constructor has the form:
Base class for chemical elements.
An elliptical tube is defined by the two semi-axes A and B.
Matrix class used for computing global transformations Should NOT be used for node definition.
A hyperboloid is represented as a solid limited by two planes perpendicular to the Z axis (top and bo...
Boolean node representing an intersection between two components.
an isotope defined by the atomic number, number of nucleons and atomic weight (g/mole)
The manager class for any TGeo geometry.
void AddSkinSurface(TGeoSkinSurface *surf)
Add skin surface;.
static EDefaultUnits GetDefaultUnits()
void AddGDMLMatrix(TGDMLMatrix *mat)
Add GDML matrix;.
void AddBorderSurface(TGeoBorderSurface *surf)
Add border surface;.
void AddOpticalSurface(TGeoOpticalSurface *optsurf)
Add optical surface;.
Double_t GetProperty(const char *name, Bool_t *error=nullptr) const
Get a user-defined property.
TGeoOpticalSurface * GetOpticalSurface(const char *name) const
Get optical surface with a given name;.
Bool_t AddProperty(const char *property, Double_t value)
Add a user-defined property. Returns true if added, false if existing.
Int_t AddRegion(TGeoRegion *region)
Add a new region of volumes.
TList * GetListOfMaterials() const
Base class describing materials.
bool AddConstProperty(const char *property, const char *ref)
bool AddProperty(const char *property, const char *ref)
Geometrical transformation package.
Media are used to store properties related to tracking and which are useful only when using geometry ...
void AddElement(Double_t a, Double_t z, Double_t weight)
add an element to the mixture using fraction by weight Check if the element is already defined
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
This is a wrapper class to G4OpticalSurface.
static ESurfaceType StringToType(const char *type)
static ESurfaceFinish StringToFinish(const char *finish)
static ESurfaceModel StringToModel(const char *model)
A paraboloid is defined by the revolution surface generated by a parabola and is bounded by two plane...
A polycone is represented by a sequence of tubes/cones, glued together at defined Z planes.
Polygons are defined in the same way as polycones, the difference being just that the segments betwee...
Reference counted extension which has a pointer to and owns a user defined TObject.
Regions are groups of volumes having a common set of user tracking cuts.
Class describing rotations.
Class describing scale transformations.
A shape scaled by a TGeoScale transformation.
Base abstract class for all shapes.
virtual Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi) const =0
TGeoSphere are not just balls having internal and external radii, but sectors of a sphere having defi...
Boolean node representing a subtraction.
The torus is defined by its axial radius, its inner and outer radius.
Class describing translations.
const Double_t * GetTranslation() const override
A trapezoid with only X varying with Z.
A tube segment is a tube having a range in phi.
Boolean node representing a union between two components.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
void SetUserExtension(TGeoExtension *ext)
Connect user-defined extension to the volume.
TGeoMedium * GetMedium() const
virtual TGeoNode * AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=nullptr, Option_t *option="")
Add a TGeoNode to the list of nodes.
Int_t GetNdaughters() const
TGeoShape * GetShape() const
virtual TGeoVolume * Divide(const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step, Int_t numed=0, Option_t *option="")
Division a la G3.
A TGeoXtru shape is represented by the extrusion of an arbitrary polygon with fixed outline between s...
TObject * FindObject(const char *name) const override
Find an object in this list using its name.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
The TNamed class is the base class for all named ROOT classes.
const char * GetName() const override
Returns name of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
TObject * Last() const override
Return the object in the last filled slot. Returns 0 if no entries.
Collectable string class.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
void ToLower()
Change string to lower-case.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
static constexpr double GeV
static constexpr double us
static constexpr double s
static constexpr double mm
static constexpr double g
static constexpr double km
static constexpr double keV
static constexpr double ns
static constexpr double m
static constexpr double cm
static constexpr double ms
static constexpr double kg
static constexpr double mg
static constexpr double eV
static constexpr double MeV
static constexpr double mg
static constexpr double us
static constexpr double ms
static constexpr double s
static constexpr double mm
static constexpr double MeV
static constexpr double pi
static constexpr double keV
static constexpr double GeV
static constexpr double twopi
static constexpr double rad
static constexpr double kg
static constexpr double cm
static constexpr double m
static constexpr double ns
static constexpr double deg
static constexpr double eV
static constexpr double g
static constexpr double km
constexpr Double_t Na()
Avogadro constant (Avogadro's Number) in .
constexpr Double_t RadToDeg()
Conversion from radian to degree: .
Typedefs used by the geometry group.
void Set(double const &a, double const &b, double const &c)