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
1ba96544
Commit
1ba96544
authored
3 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Patches
Plain Diff
Update benchmark for new EIC container
parent
ce5758ec
No related branches found
No related tags found
1 merge request
!62
Update benchmark for new EIC container
Pipeline
#8477
passed
3 years ago
Stage: config
Stage: build
Stage: docs
Stage: test
Stage: finalize
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+16
-3
16 additions, 3 deletions
.gitlab-ci.yml
src/ci_GEM.cpp
+5
-0
5 additions, 0 deletions
src/ci_GEM.cpp
src/ci_HCAL.cpp
+36
-31
36 additions, 31 deletions
src/ci_HCAL.cpp
with
57 additions
and
34 deletions
.gitlab-ci.yml
+
16
−
3
View file @
1ba96544
...
...
@@ -11,9 +11,22 @@ workflow:
default
:
before_script
:
-
mkdir -p images && mkdir -p doc/
-
git clone https://eicweb.phy.anl.gov/EIC/detectors/accelerator.git && ln -s accelerator/eic
-
git clone https://eicweb.phy.anl.gov/EIC/detectors/ip6.git eic_ip6 && mkdir ip6_build && cd ip6_build && cmake ../eic_ip6/. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j20 && make install && cd .. && ln -s eic_ip6/ip6
-
mkdir build && cd build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j20 && make install && cd ..
-
git clone https://eicweb.phy.anl.gov/EIC/detectors/accelerator.git
&& ln -s accelerator/eic
-
git clone https://eicweb.phy.anl.gov/EIC/detectors/ip6.git eic_ip6
&& mkdir ip6_build
&& cd ip6_build
&& cmake ../eic_ip6/. -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=/usr/local
&& make -j20
&& make install
&& cd ..
&& ln -s eic_ip6/ip6 || exit
1
-
mkdir build
&& cd build
&& cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_CXX_STANDARD=17
&& make -j20
&& make install
&& cd .. || exit
1
artifacts
:
paths
:
-
images/
...
...
This diff is collapsed.
Click to expand it.
src/ci_GEM.cpp
+
5
−
0
View file @
1ba96544
#include
"DD4hep/DetFactoryHelper.h"
#include
"DD4hep/OpticalSurfaces.h"
#include
"DD4hep/Printout.h"
#include
"DDRec/DetectorData.h"
#include
"DDRec/Surface.h"
#include
<XML/Helper.h>
///////////////////////////
// Central Ion GEM
...
...
This diff is collapsed.
Click to expand it.
src/ci_HCAL.cpp
+
36
−
31
View file @
1ba96544
#include
"DD4hep/DetFactoryHelper.h"
#include
"DD4hep/OpticalSurfaces.h"
#include
"DD4hep/Printout.h"
#include
"DDRec/DetectorData.h"
#include
"DDRec/Surface.h"
#include
<XML/Helper.h>
///////////////////////////
// Central Ion GEM
...
...
@@ -8,45 +13,45 @@ using namespace dd4hep;
static
Ref_t
createDetector
(
Detector
&
desc
,
xml_h
handle
,
SensitiveDetector
sens
)
{
xml
::
DetElement
detElem
=
handle
;
std
::
string
detName
=
detElem
.
nameStr
();
int
detID
=
detElem
.
id
();
xml
::
Component
dims
=
detElem
.
dimensions
();
double
RIn
=
dims
.
rmin
();
double
ROut
=
dims
.
rmax
();
double
SizeZ
=
dims
.
z_length
();
double
ShiftZ
=
dims
.
z_offset
();
double
PosZ
=
dims
.
z
();
double
lay_RIn
=
dims
.
rmin1
();
double
lay_ROut
=
dims
.
rmax1
();
double
lay_dz
=
dims
.
dz
();
Material
mat_iron
=
desc
.
material
(
"Iron"
);
Material
mat_vac
=
desc
.
material
(
"Vacuum"
);
//Outer volume
Tube
ci_Hcal_Solid
(
RIn
,
ROut
,
SizeZ
/
2.
,
0.
,
360
*
dd4hep
::
deg
);
Volume
envelopeVol
(
"ci_Hcal_Logic"
,
ci_Hcal_Solid
,
mat_vac
);
//Iron tube for the layers
xml
::
DetElement
detElem
=
handle
;
std
::
string
detName
=
detElem
.
nameStr
();
int
detID
=
detElem
.
id
();
xml
::
Component
dims
=
detElem
.
dimensions
();
double
RIn
=
dims
.
rmin
();
double
ROut
=
dims
.
rmax
();
double
SizeZ
=
dims
.
z_length
();
double
ShiftZ
=
dims
.
z_offset
();
double
PosZ
=
dims
.
z
();
double
lay_RIn
=
dims
.
rmin1
();
double
lay_ROut
=
dims
.
rmax1
();
double
lay_dz
=
dims
.
dz
();
Material
mat_iron
=
desc
.
material
(
"Iron"
);
Material
mat_vac
=
desc
.
material
(
"Vacuum"
);
//
Outer volume
Tube
ci_Hcal_Solid
(
RIn
,
ROut
,
SizeZ
/
2.
,
0.
,
360
*
dd4hep
::
deg
);
Volume
envelopeVol
(
"ci_Hcal_Logic"
,
ci_Hcal_Solid
,
mat_vac
);
//
Iron tube for the layers
Tube
ci_Hcal_detSolid
(
lay_RIn
,
lay_ROut
,
lay_dz
/
2.
,
0.
,
360
*
dd4hep
::
deg
);
//Adding layers to placed detector volume
for
(
xml_coll_t
li
(
detElem
,
_U
(
layer
));
li
;
++
li
){
xml_comp_t
x_layer
=
li
;
std
::
string
layer_name
=
detName
+
_toString
(
x_layer
.
id
(),
"_layer%d"
);
Volume
layer_vol
(
layer_name
,
ci_Hcal_detSolid
,
mat_iron
);
//
Adding layers to placed detector volume
for
(
xml_coll_t
li
(
detElem
,
_U
(
layer
));
li
;
++
li
)
{
xml_comp_t
x_layer
=
li
;
std
::
string
layer_name
=
detName
+
_toString
(
x_layer
.
id
(),
"_layer%d"
);
Volume
layer_vol
(
layer_name
,
ci_Hcal_detSolid
,
mat_iron
);
layer_vol
.
setVisAttributes
(
detElem
.
visStr
());
sens
.
setType
(
"calorimeter"
);
layer_vol
.
setSensitiveDetector
(
sens
);
Position
layer_pos
(
0
,
0
,
x_layer
.
z
());
PlacedVolume
layer_phv
=
envelopeVol
.
placeVolume
(
layer_vol
,
layer_pos
);
layer_phv
.
addPhysVolID
(
"layer"
,
x_layer
.
id
());
Position
layer_pos
(
0
,
0
,
x_layer
.
z
());
PlacedVolume
layer_phv
=
envelopeVol
.
placeVolume
(
layer_vol
,
layer_pos
);
layer_phv
.
addPhysVolID
(
"layer"
,
x_layer
.
id
());
}
DetElement
det
(
detName
,
detID
);
Volume
motherVol
=
desc
.
pickMotherVolume
(
det
);
Transform3D
tr
(
RotationZYX
(
0
,
0
,
0
),
Position
(
0
,
0
,
ShiftZ
));
PlacedVolume
detPV
=
motherVol
.
placeVolume
(
envelopeVol
,
tr
);
Transform3D
tr
(
RotationZYX
(
0
,
0
,
0
),
Position
(
0
,
0
,
ShiftZ
));
PlacedVolume
detPV
=
motherVol
.
placeVolume
(
envelopeVol
,
tr
);
detPV
.
addPhysVolID
(
"system"
,
detID
);
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