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
ed7f6447
Commit
ed7f6447
authored
10 years ago
by
Frank Gaede
Browse files
Options
Downloads
Patches
Plain Diff
- made the SiBarrelTracker ("SIT") a strip detector
-> creating 1D hits
parent
db93c2a6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/SimpleDetector/compact/Simple_CLIC.xml
+1
-3
1 addition, 3 deletions
examples/SimpleDetector/compact/Simple_CLIC.xml
examples/SimpleDetector/src/ZPlanarTracker_geo.cpp
+14
-2
14 additions, 2 deletions
examples/SimpleDetector/src/ZPlanarTracker_geo.cpp
with
15 additions
and
5 deletions
examples/SimpleDetector/compact/Simple_CLIC.xml
+
1
−
3
View file @
ed7f6447
...
...
@@ -64,12 +64,10 @@
<detector
name=
"VXD"
type=
"ZPlanarTracker"
vis=
"VXDVis"
id=
"1"
limits=
"Tracker_limits"
readout=
"VXDCollection"
insideTrackingVolume=
"true"
>
<layer
nLadders=
"10"
phi0=
"-1.570796327e+00*rad"
id=
"0"
>
<!-- <ladder distance="1.600000000e+01*mm" thickness="1.000000000e+00*mm" width="1.050000000e+01*mm" length="6.250000000e+01*mm" offset="-3.406041308e+00*mm" material="Lead" /> -->
<ladder
distance=
"1.600000000e+01*mm"
thickness=
"1.000000000e+00*mm"
width=
"1.050000000e+01*mm"
length=
"6.250000000e+01*mm"
offset=
"-3.406041308e+00*mm"
material=
"CarbonFiber"
/>
<sensitive
distance=
"1.595000000e+01*mm"
thickness=
"5.000000000e-02*mm"
width=
"1.100000000e+01*mm"
length=
"6.250000000e+01*mm"
offset=
"-3.156041308e+00*mm"
material=
"G4_Si"
/>
</layer>
<layer
nLadders=
"10"
phi0=
"-1.570796327e+00*rad"
id=
"1"
>
<!-- <ladder distance="1.700000000e+01*mm" thickness="1.000000000e+00*mm" width="1.0500000000e+01*mm" length="6.250000000e+01*mm" offset="-3.406041308e+00*mm" material="Lead" /> -->
<ladder
distance=
"1.700000000e+01*mm"
thickness=
"1.000000000e+00*mm"
width=
"1.0500000000e+01*mm"
length=
"6.250000000e+01*mm"
offset=
"-3.406041308e+00*mm"
material=
"CarbonFiber"
/>
<sensitive
distance=
"1.800000000e+01*mm"
thickness=
"5.000000000e-02*mm"
width=
"1.100000000e+01*mm"
length=
"6.250000000e+01*mm"
offset=
"-3.156041308e+00*mm"
material=
"G4_Si"
/>
</layer>
...
...
@@ -91,7 +89,7 @@
</layer>
</detector>
<detector
name=
"SIT"
type=
"ZPlanarTracker"
vis=
"SITVis"
id=
"2"
limits=
"Tracker_limits"
readout=
"SITCollection"
insideTrackingVolume=
"true"
>
<detector
name=
"SIT"
type=
"ZPlanarTracker"
vis=
"SITVis"
id=
"2"
limits=
"Tracker_limits"
readout=
"SITCollection"
insideTrackingVolume=
"true"
isStripDetector=
"true"
>
<layer
nLadders=
"14"
phi0=
"0.0"
id=
"0"
>
<ladder
distance=
"228.975*mm"
thickness=
"1.0*mm"
width=
"104.524099097*mm"
length=
"430.0*mm"
offset=
"0.0*mm"
material=
"CarbonFiber"
/>
<sensitive
distance=
"229.975*mm"
thickness=
"0.05*mm"
width=
"104.980586046*mm"
length=
"430.0*mm"
offset=
"0.0*mm"
material=
"G4_Si"
/>
...
...
This diff is collapsed.
Click to expand it.
examples/SimpleDetector/src/ZPlanarTracker_geo.cpp
+
14
−
2
View file @
ed7f6447
...
...
@@ -12,7 +12,7 @@
#include
"DDRec/Surface.h"
#include
"DDRec/DetectorData.h"
#include
<exception>
using
namespace
DD4hep
;
using
namespace
DD4hep
::
Geometry
;
...
...
@@ -39,6 +39,13 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) {
double
minRadius
=
1e99
;
double
minZhalf
=
1e99
;
bool
isStripDetector
=
false
;
try
{
isStripDetector
=
x_det
.
attr
<
bool
>
(
"isStripDetector"
)
;
}
catch
(
std
::
runtime_error
){}
//========= loop over layer elements in xml ======================================
for
(
xml_coll_t
c
(
e
,
_U
(
layer
)
);
c
;
++
c
)
{
...
...
@@ -146,7 +153,12 @@ static Ref_t create_element(LCDD& lcdd, xml_h e, SensitiveDetector sens) {
double
inner_thickness
=
(
sens_distance
>
supp_distance
?
(
sens_distance
-
supp_distance
)
+
sens_thickness
/
2
:
sens_thickness
/
2
)
;
double
outer_thickness
=
(
sens_distance
>
supp_distance
?
sens_thickness
/
2
:
(
supp_distance
-
sens_distance
)
+
supp_thickness
-
sens_thickness
/
2
)
;
VolPlane
surf
(
sens_vol
,
SurfaceType
(
SurfaceType
::
Sensitive
)
,
inner_thickness
,
outer_thickness
,
u
,
v
,
n
)
;
//,o ) ;
SurfaceType
type
(
SurfaceType
::
Sensitive
)
;
if
(
isStripDetector
)
type
.
setProperty
(
SurfaceType
::
Measurement1D
,
true
)
;
VolPlane
surf
(
sens_vol
,
type
,
inner_thickness
,
outer_thickness
,
u
,
v
,
n
)
;
//,o ) ;
//--------------------------------------------
...
...
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