Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
athena
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Fernando Torales Acosta
athena
Commits
e5ad9e67
Commit
e5ad9e67
authored
3 years ago
by
Matt Posik
Browse files
Options
Downloads
Plain Diff
Merge branch 'module_frame' of
https://eicweb.phy.anl.gov/EIC/detectors/athena
into module_frame
parents
a3c22818
2200fa05
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
+8
-0
8 additions, 0 deletions
.gitlab-ci.yml
scripts/test_ACTS.cxx
+48
-0
48 additions, 0 deletions
scripts/test_ACTS.cxx
views/view1.yml
+1
-1
1 addition, 1 deletion
views/view1.yml
with
57 additions
and
1 deletion
.gitlab-ci.yml
+
8
−
0
View file @
e5ad9e67
...
...
@@ -67,6 +67,7 @@ common:detector:
-
mkdir -p results
-
mkdir -p config
-
mkdir -p doc
-
mkdir -p geo
-
print_env.sh
compile
:
...
...
@@ -143,6 +144,13 @@ overlap_check:
-
echo "$(cat doc/overlap_check.out | grep ovlp | wc -l) overlaps..."
-
if [[ "$(cat doc/overlap_check.out | grep ovlp | wc -l)" -gt "0" ]] ; then echo "Overlaps exist!" &&
false
; fi
tracking_geometry_debug
:
stage
:
test
needs
:
-
[
"
common:detector"
]
script
:
-
root -b -q "scripts/test_ACTS.cxx+(\"${DETECTOR_PATH}/athena.xml\")" ||
true
| tee geo/tracking_geometry_debug.out
detector:config_testing
:
stage
:
test
needs
:
...
...
This diff is collapsed.
Click to expand it.
scripts/test_ACTS.cxx
0 → 100644
+
48
−
0
View file @
e5ad9e67
R__LOAD_LIBRARY
(
libDDCore
.
so
)
R__LOAD_LIBRARY
(
libActsPluginDD4hep
.
so
)
R__LOAD_LIBRARY
(
libDDG4
.
so
)
R__LOAD_LIBRARY
(
libDDG4IO
.
so
)
#include
"DD4hep/Detector.h"
#include
"DD4hep/DetElement.h"
#include
"DD4hep/Objects.h"
#include
"DD4hep/Detector.h"
#include
"DDG4/Geant4Data.h"
#include
"DDRec/CellIDPositionConverter.h"
#include
"DDRec/SurfaceManager.h"
#include
"DDRec/Surface.h"
#include
"TCanvas.h"
#include
"TChain.h"
#include
"Acts/Geometry/TrackingGeometry.hpp"
#include
"Acts/Geometry/TrackingVolume.hpp"
#include
"Acts/Plugins/DD4hep/ConvertDD4hepDetector.hpp"
/** Example loading ACTs.
*
*
*/
void
test_ACTS
(
const
char
*
compact
=
"athena.xml"
){
using
namespace
ROOT
::
Math
;
// -------------------------
// Get the DD4hep instance
// Load the compact XML file
// Initialize the position converter tool
dd4hep
::
Detector
&
detector
=
dd4hep
::
Detector
::
getInstance
();
detector
.
fromCompact
(
compact
);
dd4hep
::
rec
::
CellIDPositionConverter
cellid_converter
(
detector
);
//std::unique_ptr<const Acts::TrackingGeometry>
auto
acts_tracking_geometry
=
Acts
::
convertDD4hepDetector
(
detector
.
world
(),
Acts
::
Logging
::
Level
::
VERBOSE
);
if
(
acts_tracking_geometry
)
{
if
(
acts_tracking_geometry
->
highestTrackingVolume
())
{
std
::
cout
<<
" volume name
\n
"
;
std
::
cout
<<
acts_tracking_geometry
->
highestTrackingVolume
()
->
volumeName
()
<<
std
::
endl
;
}
else
{
std
::
cout
<<
"derp
\n
"
;
}
}
}
This diff is collapsed.
Click to expand it.
views/view1.yml
+
1
−
1
View file @
e5ad9e67
...
...
@@ -13,7 +13,7 @@ dawn_view_01:ev002:
rules
:
-
if
:
'
$DETECTOR_EVENT_VIEWS
==
"ON"'
script
:
-
./bin/make_dawn_views -t view01_ev00
1
-d scripts/view1 -s
2
-
./bin/make_dawn_views -t view01_ev00
2
-d scripts/view1 -s
2
view_01
:
stage
:
test
...
...
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