Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
detector_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
21
Issue boards
Milestones
Wiki
Code
Merge requests
7
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
benchmarks
detector_benchmarks
Commits
2eb641ec
Commit
2eb641ec
authored
4 years ago
by
Tom Polakovic
Browse files
Options
Downloads
Patches
Plain Diff
Added another benchamark for roman pots.
parent
3807747b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+10
-1
10 additions, 1 deletion
.gitlab-ci.yml
trackers/roman_pot_hit_eta.cxx
+62
-0
62 additions, 0 deletions
trackers/roman_pot_hit_eta.cxx
with
72 additions
and
1 deletion
.gitlab-ci.yml
+
10
−
1
View file @
2eb641ec
...
@@ -97,7 +97,7 @@ roman_pot_simu:
...
@@ -97,7 +97,7 @@ roman_pot_simu:
-
bash trackers/roman_pot_simu.sh
-
bash trackers/roman_pot_simu.sh
allow_failure
:
true
allow_failure
:
true
roman_pot_
benchmark
:
roman_pot_
nhits
:
stage
:
benchmarks
stage
:
benchmarks
tags
:
tags
:
-
sodium
-
sodium
...
@@ -107,6 +107,15 @@ roman_pot_benchmark:
...
@@ -107,6 +107,15 @@ roman_pot_benchmark:
-
root -b -q trackers/simple_tracking.cxx+
-
root -b -q trackers/simple_tracking.cxx+
allow_failure
:
true
allow_failure
:
true
roman_pot_eta
:
stage
:
benchmarks
tags
:
-
sodium
script
:
-
cp NPDet/src/GenericDetectors/trackers/compact/elements.xml trackers/.
-
cp NPDet/src/GenericDetectors/trackers/compact/materials.xml trackers/.
-
root -b -q trackers/roman_pot_eta.cxx+
allow_failure
:
true
deploy_results
:
deploy_results
:
stage
:
deploy
stage
:
deploy
...
...
This diff is collapsed.
Click to expand it.
trackers/roman_pot_hit_eta.cxx
0 → 100644
+
62
−
0
View file @
2eb641ec
//R__LOAD_LIBRARY(libfmt.so)
//#include "fmt/core.h"
R__LOAD_LIBRARY
(
libDDG4IO
.
so
)
//
//#include "DD4hep/Detector.h"
#include
"DDG4/Geant4Data.h"
//#include "DDRec/CellIDPositionConverter.h"
//#include "DDRec/SurfaceManager.h"
//#include "DDRec/Surface.h"
#include
"ROOT/RDataFrame.hxx"
//
//#include "lcio2/MCParticleData.h"
//#include "lcio2/ReconstructedParticleData.h"
//#include "Math/Vector3D.h"
//#include "Math/Vector4D.h"
//#include "Math/VectorUtil.h"
#include
"TCanvas.h"
//#include "TLegend.h"
//#include "TMath.h"
//#include "TRandom3.h"
//#include "TFile.h"
//#include "TH1F.h"
//#include "TH1D.h"
//#include "TTree.h"
#include
"TChain.h"
//#include "TF1.h"
#include
<random>
//#include "lcio2/TrackerRawDataData.h"
//#include "lcio2/TrackerRawData.h"
void
simple_tracking2
(
const
char
*
fname
=
"../sim_output/roman_pot_out.root"
){
ROOT
::
EnableImplicitMT
();
// Tell ROOT you want to go parallel
double
degree
=
TMath
::
Pi
()
/
180.0
;
TChain
*
t
=
new
TChain
(
"EVENT"
);
t
->
Add
(
fname
);
ROOT
::
RDataFrame
d0
(
*
t
);
auto
hits_eta
=
[
&
](
const
std
::
vector
<
dd4hep
::
sim
::
Geant4Tracker
::
Hit
*>&
hits
){
std
::
vector
<
double
>
result
;
for
(
const
auto
&
h
:
hits
){
result
.
push_back
(
h
->
momentum
.
eta
());
}
return
result
;
};
auto
d1
=
d0
.
Define
(
"hits_eta"
,
hits_eta
,
{
"ForwardRomanPotHits"
});
auto
h1
=
d1
.
Histo1D
(
TH1D
(
"h1"
,
"hits_eta"
,
300
,
0
,
20
),
"hits_eta"
);
auto
n1
=
h1
->
GetMean
();
std
::
cout
<<
"Pseudorapidity of hits: "
<<
n1
<<
std
::
endl
;
TCanvas
*
c
=
new
TCanvas
();
h1
->
DrawClone
();
if
(
n1
<
5
)
{
std
::
quick_exit
(
1
);
}
}
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