You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
}
else if (geometryType == "G4Tubs") {
const G4Tubs* tube = dynamic_cast<const G4Tubs*>(theSolid);
// Root takes the angles in degrees so there is no extra
(END)
The text was updated successfully, but these errors were encountered:
I've marked this for the next release, and should have it all ready for next week. The new release will basically the current marked issues, plus what is in master.
Make Edep-sim usable with gdml
with TG4EllipticalTube (TGeoEltu)
A solution could be:
diff --git a/src/EDepSimRootGeometryManager.cc b/src/EDepSimRootGeometryManager.cc
index 9436ee3..46db263 100644
--- a/src/EDepSimRootGeometryManager.cc
+++ b/src/EDepSimRootGeometryManager.cc
@@ -15,6 +15,7 @@
#include <TGeoTrd2.h>
#include <TGeoTrd2.h>
#include <TGeoSphere.h>
#include <TGeoPgon.h>
+#include <TGeoEltu.h>
#include <TGeoArb8.h>
#include <TGeoBoolNode.h>
#include <TGeoCompositeShape.h>
@@ -41,6 +42,7 @@
#include <G4Sphere.hh>
#include <G4Polyhedra.hh>
#include <G4Polycone.hh>
+#include <G4EllipticalTube.hh>
#include <G4Trap.hh>
#include <G4SubtractionSolid.hh>
#include <G4UnionSolid.hh>
@@ -232,6 +234,14 @@ TGeoShape* EDepSim::RootGeometryManager::CreateShape(const G4VSolid* theSolid,
box->GetYHalfLength()/CLHEP::mm,
box->GetZHalfLength()/CLHEP::mm);
}
else if (geometryType == "G4Tubs") {
const G4Tubs* tube = dynamic_cast<const G4Tubs*>(theSolid);
// Root takes the angles in degrees so there is no extra
(END)
The text was updated successfully, but these errors were encountered: