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
GitLab 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
df16c4df
Commit
df16c4df
authored
Apr 1, 2021
by
Jihee Kim
Browse files
Options
Downloads
Patches
Plain Diff
Cleaned comments and Deleted rotation
parent
038f9596
No related branches found
No related tags found
1 merge request
!11
Resolve "Implement ffi_ZDC"
Pipeline
#7867
failed
Apr 1, 2021
Stage: config
Stage: build
Stage: docs
Stage: test
Stage: finalize
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ffi_ZDC.cpp
+3
-8
3 additions, 8 deletions
src/ffi_ZDC.cpp
with
3 additions
and
8 deletions
src/ffi_ZDC.cpp
+
3
−
8
View file @
df16c4df
...
@@ -31,19 +31,13 @@ static Ref_t createDetector(Detector& desc, xml_h e, SensitiveDetector sens)
...
@@ -31,19 +31,13 @@ static Ref_t createDetector(Detector& desc, xml_h e, SensitiveDetector sens)
double
mGap
=
mod
.
attr
<
double
>
(
_Unicode
(
gap
));
double
mGap
=
mod
.
attr
<
double
>
(
_Unicode
(
gap
));
int
mNTowers
=
mod
.
attr
<
double
>
(
_Unicode
(
ntower
));
int
mNTowers
=
mod
.
attr
<
double
>
(
_Unicode
(
ntower
));
//DetElement det(detName, detID);
//Volume motherVol = desc.pickMotherVolume(det);
// Create Global Volume
// Create Global Volume
Box
ffi_ZDC_GVol_Solid
(
Width
*
0.5
,
Width
*
0.5
,
Thickness
*
0.5
);
Box
ffi_ZDC_GVol_Solid
(
Width
*
0.5
,
Width
*
0.5
,
Thickness
*
0.5
);
Volume
detVol
(
"ffi_ZDC_GVol_Logic"
,
ffi_ZDC_GVol_Solid
,
Vacuum
);
Volume
detVol
(
"ffi_ZDC_GVol_Logic"
,
ffi_ZDC_GVol_Solid
,
Vacuum
);
//Transform3D tr(RotationZYX(rot.z(), rot.y(), rot.x()), Position(pos.x(), pos.y(), pos.z()));
//PlacedVolume detPV = motherVol.placeVolume(detVol, tr);
//detPV.addPhysVolID("system", detID);
detVol
.
setVisAttributes
(
desc
.
visAttributes
(
x_det
.
visStr
()));
detVol
.
setVisAttributes
(
desc
.
visAttributes
(
x_det
.
visStr
()));
// Construct Tower
// Construct Tower
// Module
//
Single
Module
Box
ffi_ZDC_ECAL_Solid_Tower
(
mWidth
*
0.5
,
mWidth
*
0.5
,
mThickness
*
0.5
);
Box
ffi_ZDC_ECAL_Solid_Tower
(
mWidth
*
0.5
,
mWidth
*
0.5
,
mThickness
*
0.5
);
Volume
modVol
(
"ffi_ZDC_ECAL_Logic_Tower"
,
ffi_ZDC_ECAL_Solid_Tower
,
mPbWO4
);
Volume
modVol
(
"ffi_ZDC_ECAL_Logic_Tower"
,
ffi_ZDC_ECAL_Solid_Tower
,
mPbWO4
);
modVol
.
setVisAttributes
(
desc
.
visAttributes
(
mod
.
visStr
()));
modVol
.
setVisAttributes
(
desc
.
visAttributes
(
mod
.
visStr
()));
...
@@ -82,7 +76,8 @@ static Ref_t createDetector(Detector& desc, xml_h e, SensitiveDetector sens)
...
@@ -82,7 +76,8 @@ static Ref_t createDetector(Detector& desc, xml_h e, SensitiveDetector sens)
DetElement
det
(
detName
,
detID
);
DetElement
det
(
detName
,
detID
);
Volume
motherVol
=
desc
.
pickMotherVolume
(
det
);
Volume
motherVol
=
desc
.
pickMotherVolume
(
det
);
Transform3D
tr
(
RotationZYX
(
rot
.
z
(),
rot
.
y
(),
rot
.
x
()),
Position
(
pos
.
x
(),
pos
.
y
(),
pos
.
z
()));
Transform3D
tr
(
RotationZYX
(
0.0
,
0.0
,
0.0
),
Position
(
pos
.
x
(),
pos
.
y
(),
pos
.
z
()));
//Transform3D tr(RotationZYX(rot.z(), rot.y(), rot.x()), Position(pos.x(), pos.y(), pos.z()));
PlacedVolume
detPV
=
motherVol
.
placeVolume
(
detVol
,
tr
);
PlacedVolume
detPV
=
motherVol
.
placeVolume
(
detVol
,
tr
);
detPV
.
addPhysVolID
(
"system"
,
detID
);
detPV
.
addPhysVolID
(
"system"
,
detID
);
det
.
setPlacement
(
detPV
);
det
.
setPlacement
(
detPV
);
...
...
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