Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reconstruction_benchmarks
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
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
reconstruction_benchmarks
Commits
ce26e508
Commit
ce26e508
authored
2 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
fix: remaining eicd to edm4eic fixes
parent
2e7df167
Branches
Branches containing commit
No related tags found
1 merge request
!270
fix: remaining eicd to edm4eic fixes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/clustering/scripts/deprecated/barrel_clusters.cxx
+5
-5
5 additions, 5 deletions
benchmarks/clustering/scripts/deprecated/barrel_clusters.cxx
benchmarks/imaging_shower_ML/scripts/check_edep_dists.py
+1
-1
1 addition, 1 deletion
benchmarks/imaging_shower_ML/scripts/check_edep_dists.py
with
6 additions
and
6 deletions
benchmarks/clustering/scripts/deprecated/barrel_clusters.cxx
+
5
−
5
View file @
ce26e508
#include
<iostream>
#include
<iostream>
#include
"ROOT/RDataFrame.hxx"
#include
"ROOT/RDataFrame.hxx"
#include
"edm4hep/MCParticleCollection.h"
#include
"edm4hep/MCParticleCollection.h"
#include
"eic
d
/ClusterCollection.h"
#include
"
edm4
eic/ClusterCollection.h"
#include
"eic
d
/ClusterData.h"
#include
"
edm4
eic/ClusterData.h"
using
ROOT
::
RDataFrame
;
using
ROOT
::
RDataFrame
;
using
namespace
ROOT
::
VecOps
;
using
namespace
ROOT
::
VecOps
;
...
@@ -54,7 +54,7 @@ auto eta = [](ROOT::VecOps::RVec<edm4hep::MCParticleData> const& in) {
...
@@ -54,7 +54,7 @@ auto eta = [](ROOT::VecOps::RVec<edm4hep::MCParticleData> const& in) {
return
result
;
return
result
;
};
};
auto
delta_E_over_E
=
[](
std
::
vector
<
ROOT
::
Math
::
PxPyPzMVector
>
const
&
thrown
,
const
std
::
vector
<
eic
d
::
ClusterData
>&
clusters
)
{
auto
delta_E_over_E
=
[](
std
::
vector
<
ROOT
::
Math
::
PxPyPzMVector
>
const
&
thrown
,
const
std
::
vector
<
edm4
eic
::
ClusterData
>&
clusters
)
{
std
::
vector
<
double
>
result
;
std
::
vector
<
double
>
result
;
double
best
=
1000000.0
;
double
best
=
1000000.0
;
for
(
const
auto
&
p
:
thrown
)
{
for
(
const
auto
&
p
:
thrown
)
{
...
@@ -68,7 +68,7 @@ auto delta_E_over_E = [](std::vector<ROOT::Math::PxPyPzMVector> const& thrown, c
...
@@ -68,7 +68,7 @@ auto delta_E_over_E = [](std::vector<ROOT::Math::PxPyPzMVector> const& thrown, c
}
}
return
result
;
return
result
;
};
};
auto
delta_E
=
[](
std
::
vector
<
ROOT
::
Math
::
PxPyPzMVector
>
const
&
thrown
,
const
std
::
vector
<
eic
d
::
ClusterData
>&
clusters
)
{
auto
delta_E
=
[](
std
::
vector
<
ROOT
::
Math
::
PxPyPzMVector
>
const
&
thrown
,
const
std
::
vector
<
edm4
eic
::
ClusterData
>&
clusters
)
{
std
::
vector
<
double
>
result
;
std
::
vector
<
double
>
result
;
double
best
=
1000000.0
;
double
best
=
1000000.0
;
for
(
const
auto
&
p
:
thrown
)
{
for
(
const
auto
&
p
:
thrown
)
{
...
@@ -99,7 +99,7 @@ int barrel_clusters(const char* in_fname = "topside/rec_barrel_clusters.root")
...
@@ -99,7 +99,7 @@ int barrel_clusters(const char* in_fname = "topside/rec_barrel_clusters.root")
.
Define
(
"delta_E_over_E"
,
delta_E_over_E
,
{
"thrownP"
,
"SimpleClusters"
})
.
Define
(
"delta_E_over_E"
,
delta_E_over_E
,
{
"thrownP"
,
"SimpleClusters"
})
.
Define
(
"nclusters"
,
"SimpleClusters.size()"
)
.
Define
(
"nclusters"
,
"SimpleClusters.size()"
)
.
Define
(
"Ecluster"
,
.
Define
(
"Ecluster"
,
[](
const
std
::
vector
<
eic
d
::
ClusterData
>&
in
)
{
[](
const
std
::
vector
<
edm4
eic
::
ClusterData
>&
in
)
{
std
::
vector
<
double
>
res
;
std
::
vector
<
double
>
res
;
for
(
const
auto
&
i
:
in
)
for
(
const
auto
&
i
:
in
)
res
.
push_back
(
i
.
energy
);
res
.
push_back
(
i
.
energy
);
...
...
This diff is collapsed.
Click to expand it.
benchmarks/imaging_shower_ML/scripts/check_edep_dists.py
+
1
−
1
View file @
ce26e508
...
@@ -62,7 +62,7 @@ if __name__ == '__main__':
...
@@ -62,7 +62,7 @@ if __name__ == '__main__':
# parser.add_argument('--compact', type=str, default='', dest='compact', help='compact file')
# parser.add_argument('--compact', type=str, default='', dest='compact', help='compact file')
parser
.
add_argument
(
'
-m
'
,
'
--macros
'
,
type
=
str
,
default
=
'
rootlogon.C
'
,
dest
=
'
macros
'
,
parser
.
add_argument
(
'
-m
'
,
'
--macros
'
,
type
=
str
,
default
=
'
rootlogon.C
'
,
dest
=
'
macros
'
,
help
=
'
root macros to load (accept multiple paths separated by
\"
,
\"
)
'
)
help
=
'
root macros to load (accept multiple paths separated by
\"
,
\"
)
'
)
parser
.
add_argument
(
'
--branch
'
,
type
=
str
,
default
=
'
EcalBarrelImagingHitsReco
'
,
help
=
'
name of data branch (eic
d
::CalorimeterHitCollection)
'
)
parser
.
add_argument
(
'
--branch
'
,
type
=
str
,
default
=
'
EcalBarrelImagingHitsReco
'
,
help
=
'
name of data branch (
edm4
eic::CalorimeterHitCollection)
'
)
parser
.
add_argument
(
'
--truth-branch
'
,
type
=
str
,
default
=
'
MCParticles
'
,
help
=
'
name of truth mc branch
'
)
parser
.
add_argument
(
'
--truth-branch
'
,
type
=
str
,
default
=
'
MCParticles
'
,
help
=
'
name of truth mc branch
'
)
parser
.
add_argument
(
'
--edep-max
'
,
type
=
float
,
default
=
0.
,
help
=
'
maximum edep (GeV) to plot
'
)
parser
.
add_argument
(
'
--edep-max
'
,
type
=
float
,
default
=
0.
,
help
=
'
maximum edep (GeV) to plot
'
)
parser
.
add_argument
(
'
--edep-nbins
'
,
type
=
int
,
default
=
200
,
help
=
'
number of bins
'
)
parser
.
add_argument
(
'
--edep-nbins
'
,
type
=
int
,
default
=
200
,
help
=
'
number of bins
'
)
...
...
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