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
9d6df26b
Commit
9d6df26b
authored
11 years ago
by
Frank Gaede
Browse files
Options
Downloads
Patches
Plain Diff
- reactiviated assemnly volume for SIT as test case
parent
dc9e8929
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDExamples/ILDExDet/src/compact/ILDExSIT_geo.cpp
+13
-7
13 additions, 7 deletions
DDExamples/ILDExDet/src/compact/ILDExSIT_geo.cpp
with
13 additions
and
7 deletions
DDExamples/ILDExDet/src/compact/ILDExSIT_geo.cpp
+
13
−
7
View file @
9d6df26b
...
...
@@ -21,17 +21,20 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) {
xml_det_t
x_det
=
e
;
string
name
=
x_det
.
nameStr
();
DetElement
sit
(
name
,
x_det
.
id
());
//
Assembly assembly( name + "assembly" ) ;
Assembly
assembly
(
name
+
"assembly"
)
;
PlacedVolume
pv
;
// replace assembly with cylinder of air:
xml_comp_t
x_tube
(
x_det
.
child
(
_U
(
tubs
)));
Tube
envelope_cylinder
(
x_tube
.
rmin
(),
x_tube
.
rmax
(),
x_tube
.
zhalf
());
Volume
assembly
(
"sit_envelope_cyl"
,
envelope_cylinder
,
lcdd
.
air
());
// // setup the encoder
// UTIL::BitField64 encoder( ILDCellID0::encoder_string ) ;
// encoder.reset() ; // reset to 0
// encoder[ILDCellID0::subdet] = ILDDetID::SIT ;
// encoder[ILDCellID0::side] = 0 ;
// encoder[ILDCellID0::module] = 0 ;
// encoder[ILDCellID0::sensor] = 0 ;
for
(
xml_coll_t
c
(
e
,
_U
(
layer
));
c
;
++
c
)
{
xml_comp_t
x_layer
(
c
);
xml_comp_t
x_support
(
x_layer
.
child
(
_U
(
support
)));
xml_comp_t
x_ladder
(
x_layer
.
child
(
_U
(
ladder
)));
...
...
@@ -68,6 +71,9 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) {
double
radius
=
sens_radius
+
((
sens_thick
+
supp_thick
)
/
2.
-
sens_thick
/
2.
);
Position
pos
(
radius
*
cos
(
j
*
dphi
),
radius
*
sin
(
j
*
dphi
),
0.
);
// place the volume and set the cellID0 - will be set to the copyNo in Geant4Converter
// encoder[ILDCellID0::module] = j ;
// int cellID0 = encoder.lowWord() ;
pv
=
assembly
.
placeVolume
(
laddervol
,
Transform3D
(
RotationZ
(
j
*
dphi
),
pos
));
...
...
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