Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
athena
Manage
Activity
Members
Labels
Plan
Issues
38
Issue boards
Milestones
Wiki
Code
Merge requests
34
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
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
No related merge requests found
Changes
3
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:
...
@@ -11,9 +11,22 @@ workflow:
default
:
default
:
before_script
:
before_script
:
-
mkdir -p images && mkdir -p doc/
-
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/accelerator.git
-
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
&& ln -s accelerator/eic
-
mkdir build && cd build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j20 && make install && cd ..
-
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
:
artifacts
:
paths
:
paths
:
-
images/
-
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>
#include
<XML/Helper.h>
///////////////////////////
///////////////////////////
// Central Ion GEM
// 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>
#include
<XML/Helper.h>
///////////////////////////
///////////////////////////
// Central Ion GEM
// Central Ion GEM
...
@@ -8,45 +13,45 @@ using namespace dd4hep;
...
@@ -8,45 +13,45 @@ using namespace dd4hep;
static
Ref_t
createDetector
(
Detector
&
desc
,
xml_h
handle
,
SensitiveDetector
sens
)
static
Ref_t
createDetector
(
Detector
&
desc
,
xml_h
handle
,
SensitiveDetector
sens
)
{
{
xml
::
DetElement
detElem
=
handle
;
xml
::
DetElement
detElem
=
handle
;
std
::
string
detName
=
detElem
.
nameStr
();
std
::
string
detName
=
detElem
.
nameStr
();
int
detID
=
detElem
.
id
();
int
detID
=
detElem
.
id
();
xml
::
Component
dims
=
detElem
.
dimensions
();
xml
::
Component
dims
=
detElem
.
dimensions
();
double
RIn
=
dims
.
rmin
();
double
RIn
=
dims
.
rmin
();
double
ROut
=
dims
.
rmax
();
double
ROut
=
dims
.
rmax
();
double
SizeZ
=
dims
.
z_length
();
double
SizeZ
=
dims
.
z_length
();
double
ShiftZ
=
dims
.
z_offset
();
double
ShiftZ
=
dims
.
z_offset
();
double
PosZ
=
dims
.
z
();
double
PosZ
=
dims
.
z
();
double
lay_RIn
=
dims
.
rmin1
();
double
lay_RIn
=
dims
.
rmin1
();
double
lay_ROut
=
dims
.
rmax1
();
double
lay_ROut
=
dims
.
rmax1
();
double
lay_dz
=
dims
.
dz
();
double
lay_dz
=
dims
.
dz
();
Material
mat_iron
=
desc
.
material
(
"Iron"
);
Material
mat_iron
=
desc
.
material
(
"Iron"
);
Material
mat_vac
=
desc
.
material
(
"Vacuum"
);
Material
mat_vac
=
desc
.
material
(
"Vacuum"
);
//Outer volume
//
Outer volume
Tube
ci_Hcal_Solid
(
RIn
,
ROut
,
SizeZ
/
2.
,
0.
,
360
*
dd4hep
::
deg
);
Tube
ci_Hcal_Solid
(
RIn
,
ROut
,
SizeZ
/
2.
,
0.
,
360
*
dd4hep
::
deg
);
Volume
envelopeVol
(
"ci_Hcal_Logic"
,
ci_Hcal_Solid
,
mat_vac
);
Volume
envelopeVol
(
"ci_Hcal_Logic"
,
ci_Hcal_Solid
,
mat_vac
);
//Iron tube for the layers
//
Iron tube for the layers
Tube
ci_Hcal_detSolid
(
lay_RIn
,
lay_ROut
,
lay_dz
/
2.
,
0.
,
360
*
dd4hep
::
deg
);
Tube
ci_Hcal_detSolid
(
lay_RIn
,
lay_ROut
,
lay_dz
/
2.
,
0.
,
360
*
dd4hep
::
deg
);
//Adding layers to placed detector volume
//
Adding layers to placed detector volume
for
(
xml_coll_t
li
(
detElem
,
_U
(
layer
));
li
;
++
li
){
for
(
xml_coll_t
li
(
detElem
,
_U
(
layer
));
li
;
++
li
)
{
xml_comp_t
x_layer
=
li
;
xml_comp_t
x_layer
=
li
;
std
::
string
layer_name
=
detName
+
_toString
(
x_layer
.
id
(),
"_layer%d"
);
std
::
string
layer_name
=
detName
+
_toString
(
x_layer
.
id
(),
"_layer%d"
);
Volume
layer_vol
(
layer_name
,
ci_Hcal_detSolid
,
mat_iron
);
Volume
layer_vol
(
layer_name
,
ci_Hcal_detSolid
,
mat_iron
);
layer_vol
.
setVisAttributes
(
detElem
.
visStr
());
layer_vol
.
setVisAttributes
(
detElem
.
visStr
());
sens
.
setType
(
"calorimeter"
);
sens
.
setType
(
"calorimeter"
);
layer_vol
.
setSensitiveDetector
(
sens
);
layer_vol
.
setSensitiveDetector
(
sens
);
Position
layer_pos
(
0
,
0
,
x_layer
.
z
());
Position
layer_pos
(
0
,
0
,
x_layer
.
z
());
PlacedVolume
layer_phv
=
envelopeVol
.
placeVolume
(
layer_vol
,
layer_pos
);
PlacedVolume
layer_phv
=
envelopeVol
.
placeVolume
(
layer_vol
,
layer_pos
);
layer_phv
.
addPhysVolID
(
"layer"
,
x_layer
.
id
());
layer_phv
.
addPhysVolID
(
"layer"
,
x_layer
.
id
());
}
}
DetElement
det
(
detName
,
detID
);
DetElement
det
(
detName
,
detID
);
Volume
motherVol
=
desc
.
pickMotherVolume
(
det
);
Volume
motherVol
=
desc
.
pickMotherVolume
(
det
);
Transform3D
tr
(
RotationZYX
(
0
,
0
,
0
),
Position
(
0
,
0
,
ShiftZ
));
Transform3D
tr
(
RotationZYX
(
0
,
0
,
0
),
Position
(
0
,
0
,
ShiftZ
));
PlacedVolume
detPV
=
motherVol
.
placeVolume
(
envelopeVol
,
tr
);
PlacedVolume
detPV
=
motherVol
.
placeVolume
(
envelopeVol
,
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