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
239f7189
Commit
239f7189
authored
3 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
modified: config.yml
modified: simple_checking_crystal.cxx
parent
5b77ed0b
No related branches found
No related tags found
1 merge request
!20
Restructuring repo
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/calorimeters/config.yml
+1
-0
1 addition, 0 deletions
benchmarks/calorimeters/config.yml
benchmarks/calorimeters/simple_checking_crystal.cxx
+1
-1
1 addition, 1 deletion
benchmarks/calorimeters/simple_checking_crystal.cxx
with
2 additions
and
1 deletion
benchmarks/calorimeters/config.yml
+
1
−
0
View file @
239f7189
...
...
@@ -62,6 +62,7 @@ cal_bench:crystal_benchmark:
needs
:
-
[
"
cal_sim:crystal_emcal"
]
script
:
-
rootls -t sim_output/output_emcal_electrons.root
-
root -b -q benchmarks/calorimeters/simple_checking_crystal.cxx+
#cal_test_3_zdc_neutrons_reader:
...
...
This diff is collapsed.
Click to expand it.
benchmarks/calorimeters/simple_checking_crystal.cxx
+
1
−
1
View file @
239f7189
...
...
@@ -16,7 +16,7 @@ void simple_checking_crystal(const char* fname = "sim_output/output_emcal_electr
auto
nhits
=
[]
(
std
::
vector
<
dd4hep
::
sim
::
Geant4Calorimeter
::
Hit
*>&
hits
){
return
(
int
)
hits
.
size
();
};
auto
d1
=
d0
.
Define
(
"nhits"
,
nhits
,
{
"EcalHits"
});
auto
d1
=
d0
.
Define
(
"nhits"
,
nhits
,
{
"
Crystal
EcalHits"
});
auto
h0
=
d1
.
Histo1D
(
TH1D
(
"h0"
,
"nhits; "
,
20
,
0
,
20
),
"nhits"
);
auto
n0
=
d1
.
Filter
([](
int
n
){
return
(
n
>
0
);
},{
"nhits"
}).
Count
();
...
...
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