Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
f19cd5ca
Commit
f19cd5ca
authored
11 years ago
by
Frank Gaede
Browse files
Options
Downloads
Patches
Plain Diff
- fixed rotation for muon ( *deg in xml -> /rad in code for rotation ....)
parent
3275848c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/noviceN04/src/Muon_geo.cc
+4
-3
4 additions, 3 deletions
examples/noviceN04/src/Muon_geo.cc
with
4 additions
and
3 deletions
examples/noviceN04/src/Muon_geo.cc
+
4
−
3
View file @
f19cd5ca
...
@@ -8,7 +8,10 @@
...
@@ -8,7 +8,10 @@
//====================================================================
//====================================================================
#include
"DD4hep/DetFactoryHelper.h"
#include
"DD4hep/DetFactoryHelper.h"
#include
"DD4hep/TGeoUnits.h"
using
namespace
std
;
using
namespace
std
;
using
namespace
tgeo
;
using
namespace
DD4hep
;
using
namespace
DD4hep
;
using
namespace
DD4hep
::
Geometry
;
using
namespace
DD4hep
::
Geometry
;
...
@@ -37,14 +40,12 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) {
...
@@ -37,14 +40,12 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) {
double
radius
=
x_det
.
radius
()
;
double
radius
=
x_det
.
radius
()
;
double
phi
=
deltaphi
*
i
;
double
phi
=
deltaphi
/
rad
*
i
;
Position
trans
(
radius
*
sin
(
phi
)
,
Position
trans
(
radius
*
sin
(
phi
)
,
radius
*
cos
(
phi
)
,
radius
*
cos
(
phi
)
,
0.
)
;
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
)
);
PlacedVolume
muon_phys
=
experimentalHall_log
.
placeVolume
(
muon_log
,
Transform3D
(
RotationZ
(
phi
)
,
trans
)
);
muon_phys
.
addPhysVolID
(
"system"
,
x_det
.
id
()
)
;
muon_phys
.
addPhysVolID
(
"system"
,
x_det
.
id
()
)
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment