Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Reference Detector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
EIC
detectors
Reference Detector
Commits
9264c913
Commit
9264c913
authored
4 years ago
by
Jihee Kim
Browse files
Options
Downloads
Patches
Plain Diff
Added envelop volume
parent
b4eccedb
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!29
Draft: Resolve "Implement cb_CTD"
Pipeline
#8099
passed
4 years ago
Stage: config
Stage: build
Stage: docs
Stage: test
Stage: finalize
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
compact/cb_CTD_Straw.xml
+35
-0
35 additions, 0 deletions
compact/cb_CTD_Straw.xml
compact/definitions.xml
+1
-0
1 addition, 0 deletions
compact/definitions.xml
reference_detector.xml
+4
-0
4 additions, 0 deletions
reference_detector.xml
src/cb_CTD_Straw.cpp
+37
-0
37 additions, 0 deletions
src/cb_CTD_Straw.cpp
with
77 additions
and
0 deletions
compact/cb_CTD_Straw.xml
0 → 100644
+
35
−
0
View file @
9264c913
<lccdd>
<comment>
Central Barrel Tracker Straw
</comment>
<define>
</define>
<limits>
</limits>
<regions>
</regions>
<display>
</display>
<detectors>
<detector
id=
"cb_CTD_Straw_ID"
name=
"cb_CTD_Straw"
type=
"cb_CTD_Straw"
readout=
"cb_CTD_Straw_Hits"
vis=
"cb_CTDVis"
insideTrackingVloume=
"true"
>
<dimensions
rmin=
"cb_CTD_rmin"
rmax=
"cb_CTD_rmax"
length=
"cb_CTD_length"
zmax=
"cb_CTD_zmax"
/>
</detector>
</detectors>
<readouts>
<readout
name=
"cb_CTD_Straw_Hits"
>
<segmentation
type=
"CartesianGridXY"
grid_size_x=
"1.0*mm"
grid_size_y=
"1.0*mm"
/>
<id>
system:8,barrel:3,layer:4,x:32:-16,y:-16
</id>
</readout>
</readouts>
<plugins>
</plugins>
<fields>
</fields>
</lccdd>
This diff is collapsed.
Click to expand it.
compact/definitions.xml
+
1
−
0
View file @
9264c913
...
@@ -123,6 +123,7 @@
...
@@ -123,6 +123,7 @@
<constant
name=
"SiTrackerEndcapP_Layer5_ID"
value=
"69"
/>
<constant
name=
"SiTrackerEndcapP_Layer5_ID"
value=
"69"
/>
<constant
name=
"SiTrackerEndcapN_Layer5_ID"
value=
"70"
/>
<constant
name=
"SiTrackerEndcapN_Layer5_ID"
value=
"70"
/>
<constant
name=
"cb_CTD_Straw_ID"
value=
"73"
/>
<constant
name=
"cb_CTD_Si_ID"
value=
"74"
/>
<constant
name=
"cb_CTD_Si_ID"
value=
"74"
/>
<comment>
<comment>
...
...
This diff is collapsed.
Click to expand it.
reference_detector.xml
+
4
−
0
View file @
9264c913
...
@@ -114,6 +114,10 @@
...
@@ -114,6 +114,10 @@
<include ref="reference_detector/vertex_tracker.xml"/>
<include ref="reference_detector/vertex_tracker.xml"/>
<include ref="compact/silicon_tracker.xml"/>
<include ref="compact/silicon_tracker.xml"/>
-->
-->
<!--
<include ref="compact/cb_CTD_Si.xml"/>
-->
<include
ref=
"compact/cb_CTD_Straw.xml"
/>
<include
ref=
"ip6/beampipe.xml"
/>
<include
ref=
"ip6/beampipe.xml"
/>
<include
ref=
"compact/solenoid.xml"
/>
<include
ref=
"compact/solenoid.xml"
/>
<include
ref=
"compact/ecal.xml"
/>
<include
ref=
"compact/ecal.xml"
/>
...
...
This diff is collapsed.
Click to expand it.
src/cb_CTD_Straw.cpp
0 → 100644
+
37
−
0
View file @
9264c913
#include
<XML/Helper.h>
//////////////////////////////////
// Central Barrel Tracker Straw
//////////////////////////////////
using
namespace
std
;
using
namespace
dd4hep
;
static
Ref_t
createDetector
(
Detector
&
desc
,
xml_h
e
,
SensitiveDetector
sens
)
{
xml_det_t
x_det
=
e
;
string
detName
=
x_det
.
nameStr
();
int
detID
=
x_det
.
id
();
xml_dim_t
dim
=
x_det
.
dimensions
();
double
RIn
=
dim
.
rmin
();
double
ROut
=
dim
.
rmax
();
double
SizeZ
=
dim
.
length
();
double
SizeZCut
=
dim
.
zmax
();
Material
Vacuum
=
desc
.
material
(
"Vacuum"
);
// Create Global Volume
Tube
cb_CTD_GVol_Solid
(
RIn
,
ROut
,
SizeZ
/
2.0
,
0.
,
360.0
*
deg
);
Volume
detVol
(
"cb_CTD_GVol_Logic"
,
cb_CTD_GVol_Solid
,
Vacuum
);
detVol
.
setVisAttributes
(
desc
.
visAttributes
(
x_det
.
visStr
()));
DetElement
det
(
detName
,
detID
);
Volume
motherVol
=
desc
.
pickMotherVolume
(
det
);
Transform3D
tr
(
RotationZYX
(
0.0
,
0.0
,
0.0
),
Position
(
0.0
,
0.0
,
0.0
));
PlacedVolume
detPV
=
motherVol
.
placeVolume
(
detVol
,
tr
);
detPV
.
addPhysVolID
(
"system"
,
detID
);
det
.
setPlacement
(
detPV
);
return
det
;
}
DECLARE_DETELEMENT
(
cb_CTD_Straw
,
createDetector
)
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