Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
athena
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
Environments
Terraform modules
Monitor
Incidents
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
Show more breadcrumbs
EIC
detectors
athena
Commits
0311c9ff
Commit
0311c9ff
authored
3 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
Fix for the tracking geometry.
parent
2d30d570
No related branches found
No related tags found
1 merge request
!88
Fix for the tracking geometry.
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
athena.xml
+9
-2
9 additions, 2 deletions
athena.xml
src/TrapEndcapTracker_geo.cpp
+15
-20
15 additions, 20 deletions
src/TrapEndcapTracker_geo.cpp
with
25 additions
and
23 deletions
CMakeLists.txt
+
1
−
1
View file @
0311c9ff
...
...
@@ -19,7 +19,7 @@ dd4hep_add_plugin(${a_lib_name} SOURCES src/*.cpp
USES ActsCore ActsPluginDD4hep
)
target_link_libraries
(
${
a_lib_name
}
PUBLIC DD4hep::DDCore
DD4hep::DDRec
PUBLIC DD4hep::DDCore
)
#-----------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
athena.xml
+
9
−
2
View file @
0311c9ff
...
...
@@ -199,14 +199,20 @@
<composite
name=
"VertexEndcapP"
/>
</detector>
<detector
id=
"TrackerBarrelSubAssembly_Inner_ID"
name=
"TrackerBarrelSubAssembly_Inner"
type=
"DD4hep_SubdetectorAssembly"
vis=
"TrackerSubAssemblyVis"
>
<composite
name=
"TrackerBarrel_Inner"
/>
</detector>
<detector
id=
"TrackerEndcapSubAssembly_Inner_ID"
name=
"TrackerSubAssembly_Inner"
name=
"Tracker
Endcap
SubAssembly_Inner"
type=
"DD4hep_SubdetectorAssembly"
vis=
"TrackerSubAssemblyVis"
>
<composite
name=
"TrackerEndcapN_Inner"
/>
<composite
name=
"TrackerBarrel_Inner"
/>
<composite
name=
"TrackerEndcapP_Inner"
/>
</detector>
<detector
id=
"TrackerBarrelSubAssembly_Outer_ID"
name=
"TrackerSubAssembly_Outer"
type=
"DD4hep_SubdetectorAssembly"
...
...
@@ -279,6 +285,7 @@
<include
ref=
"compact/ecal_barrel_interlayers.xml"
/>
<include
ref=
"compact/hcal.xml"
/>
<!--include ref="compact/ce_GEM.xml"/-->
<!--include ref="compact/gem_tracker_endcap.xml"/-->
<include
ref=
"compact/mrich.xml"
/>
...
...
This diff is collapsed.
Click to expand it.
src/TrapEndcapTracker_geo.cpp
+
15
−
20
View file @
0311c9ff
//==========================================================================
// AIDA Detector description implementation
//--------------------------------------------------------------------------
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
// All rights reserved.
//
// For the licensing terms see $DD4hepINSTALL/LICENSE.
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
//
// Author : M.Frank
//
//==========================================================================
//
// Specialized generic detector constructor
//
//==========================================================================
#include
<map>
#include
"DD4hep/DetFactoryHelper.h"
#include
"Acts/Plugins/DD4hep/ActsExtension.hpp"
...
...
@@ -23,6 +7,11 @@ using namespace std;
using
namespace
dd4hep
;
using
namespace
dd4hep
::
detail
;
/*! Endcap Trapezoidal Tracker.
*
* @author Whitney Armstrong
*
*/
static
Ref_t
create_detector
(
Detector
&
description
,
xml_h
e
,
SensitiveDetector
sens
)
{
typedef
vector
<
PlacedVolume
>
Placements
;
...
...
@@ -114,8 +103,10 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
c_vol
.
setVisAttributes
(
description
.
visAttributes
(
c
.
visStr
()));
pv
=
m_volume
.
placeVolume
(
c_vol
,
Position
(
0
,
posY
+
c_thick
/
2
,
0
));
if
(
c
.
isSensitive
())
{
std
::
cout
<<
" adding sensitive volume"
<<
c_name
<<
"
\n
"
;
sdet
.
check
(
n_sensor
>
2
,
"SiTrackerEndcap2::fromCompact: "
+
c_name
+
" Max of 2 modules allowed!"
);
pv
.
addPhysVolID
(
"sensor"
,
n_sensor
);
sens
.
setType
(
"tracker"
);
c_vol
.
setSensitiveDetector
(
sens
);
sensitives
[
m_nam
].
push_back
(
pv
);
++
n_sensor
;
...
...
@@ -164,6 +155,8 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
Acts
::
ActsExtension
*
layerExtension
=
new
Acts
::
ActsExtension
();
layerExtension
->
addType
(
"layer"
,
"layer"
);
//layerExtension->addType("axes", "definitions", "XZY");
//layerExtension->addType("sensitive disk", "layer");
//layerExtension->addType("axes", "definitions", "XZY");
layer_element
.
addExtension
<
Acts
::
ActsExtension
>
(
layerExtension
);
for
(
xml_coll_t
ri
(
x_layer
,
_U
(
ring
));
ri
;
++
ri
)
{
...
...
@@ -185,7 +178,7 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
double
y
=
-
r
*
std
::
sin
(
phi
);
if
(
!
reflect
)
{
DetElement
module
(
sde
t
,
m_base
+
"_pos"
,
det_id
);
DetElement
module
(
layer_elemen
t
,
m_base
+
"_pos"
,
det_id
);
pv
=
layer_vol
.
placeVolume
(
m_vol
,
Transform3D
(
RotationZYX
(
0
,
-
M_PI
/
2
-
phi
,
-
M_PI
/
2
),
Position
(
x
,
y
,
zstart
+
dz
)));
pv
.
addPhysVolID
(
"barrel"
,
1
).
addPhysVolID
(
"layer"
,
l_id
).
addPhysVolID
(
"module"
,
mod_num
);
...
...
@@ -194,20 +187,22 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
PlacedVolume
sens_pv
=
sensVols
[
ic
];
DetElement
comp_elt
(
module
,
sens_pv
.
volume
().
name
(),
mod_num
);
comp_elt
.
setPlacement
(
sens_pv
);
Acts
::
ActsExtension
*
moduleExtension
=
new
Acts
::
ActsExtension
();
//std::cout << " adding ACTS extension" << "\n";
Acts
::
ActsExtension
*
moduleExtension
=
new
Acts
::
ActsExtension
(
"XZY"
);
comp_elt
.
addExtension
<
Acts
::
ActsExtension
>
(
moduleExtension
);
}
}
else
{
pv
=
layer_vol
.
placeVolume
(
m_vol
,
Transform3D
(
RotationZYX
(
0
,
-
M_PI
/
2
-
phi
,
-
M_PI
/
2
),
Position
(
x
,
y
,
-
zstart
-
dz
)));
pv
.
addPhysVolID
(
"barrel"
,
2
).
addPhysVolID
(
"layer"
,
l_id
).
addPhysVolID
(
"module"
,
mod_num
);
DetElement
r_module
(
sde
t
,
m_base
+
"_neg"
,
det_id
);
DetElement
r_module
(
layer_elemen
t
,
m_base
+
"_neg"
,
det_id
);
r_module
.
setPlacement
(
pv
);
for
(
size_t
ic
=
0
;
ic
<
sensVols
.
size
();
++
ic
)
{
PlacedVolume
sens_pv
=
sensVols
[
ic
];
DetElement
comp_elt
(
r_module
,
sens_pv
.
volume
().
name
(),
mod_num
);
comp_elt
.
setPlacement
(
sens_pv
);
Acts
::
ActsExtension
*
moduleExtension
=
new
Acts
::
ActsExtension
();
//std::cout << " adding ACTS extension" << "\n";
Acts
::
ActsExtension
*
moduleExtension
=
new
Acts
::
ActsExtension
(
"XZY"
);
comp_elt
.
addExtension
<
Acts
::
ActsExtension
>
(
moduleExtension
);
}
}
...
...
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