diff --git a/examples/noviceN04/src/Muon_geo.cc b/examples/noviceN04/src/Muon_geo.cc index 5d9bce634cf1adef0eabf728f6450c239aba62b7..412b6cb8d31bf4a51fe20deb4652783c02fe8052 100644 --- a/examples/noviceN04/src/Muon_geo.cc +++ b/examples/noviceN04/src/Muon_geo.cc @@ -8,7 +8,10 @@ //==================================================================== #include "DD4hep/DetFactoryHelper.h" +#include "DD4hep/TGeoUnits.h" + using namespace std; +using namespace tgeo ; using namespace DD4hep; using namespace DD4hep::Geometry; @@ -37,14 +40,12 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) { double radius = x_det.radius() ; - double phi = deltaphi * i ; + double phi = deltaphi/rad * i ; Position trans( radius * sin( phi ) , radius * cos( phi ) , 0. ) ; - // Rotation rot( 0, 0 , phi ) ; - // FG: RotationZ(phi) is not the same as rot( 0, 0 , phi ) !!!??? PlacedVolume muon_phys = experimentalHall_log.placeVolume( muon_log , Transform3D( RotationZ(phi) , trans ) ); muon_phys.addPhysVolID( "system", x_det.id() ) ;