Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
Davide Di Croce
athena
Commits
12a5d48c
Commit
12a5d48c
authored
1 year ago
by
Andrii Verbytskyi
Committed by
Frank Winklmeier
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Replace some functions with templates in MCTruthClassifier
Replace some functions with templates in MCTruthClassifier
parent
10b9cee2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
PhysicsAnalysis/MCTruthClassifier/MCTruthClassifier/MCTruthClassifier.h
+2
-2
2 additions, 2 deletions
...s/MCTruthClassifier/MCTruthClassifier/MCTruthClassifier.h
PhysicsAnalysis/MCTruthClassifier/Root/MCRecoToTruth.cxx
+1
-7
1 addition, 7 deletions
PhysicsAnalysis/MCTruthClassifier/Root/MCRecoToTruth.cxx
with
3 additions
and
9 deletions
PhysicsAnalysis/MCTruthClassifier/MCTruthClassifier/MCTruthClassifier.h
+
2
−
2
View file @
12a5d48c
...
...
@@ -223,9 +223,9 @@ private:
#ifndef GENERATIONBASE
/*Disable when no recostruction packages are expected*/
double
fracParticleInJet
(
const
xAOD
::
TruthParticle
*
,
const
xAOD
::
Jet
*
,
bool
DR
,
bool
nparts
)
const
;
void
findJetConstituents
(
const
xAOD
::
Jet
*
,
std
::
set
<
const
xAOD
::
TruthParticle
*>&
constituents
,
bool
DR
)
const
;
static
double
deltaR
(
const
xAOD
::
TruthParticle
&
v1
,
const
xAOD
::
Jet
&
v2
);
//
#endif
// Now that we use TLorentzVector for the momentum base class, this is straightforward
template
<
class
A
,
class
B
>
inline
double
deltaR
(
A
&
v1
,
B
&
v2
)
const
{
return
v1
.
p4
().
DeltaR
(
v2
.
p4
());}
void
findAllJetMothers
(
const
xAOD
::
TruthParticle
*
,
std
::
set
<
const
xAOD
::
TruthParticle
*>&
)
const
;
void
findParticleDaughters
(
const
xAOD
::
TruthParticle
*
,
std
::
set
<
const
xAOD
::
TruthParticle
*>&
)
const
;
...
...
This diff is collapsed.
Click to expand it.
PhysicsAnalysis/MCTruthClassifier/Root/MCRecoToTruth.cxx
+
1
−
7
View file @
12a5d48c
...
...
@@ -387,13 +387,7 @@ MCTruthClassifier::getGenPart(const xAOD::TrackParticle* trk, Info* info /*= nul
return
(
theGenParticle
);
}
// Now that we use TLorentzVector for the momentum base class, this is straightforward
double
MCTruthClassifier
::
deltaR
(
const
xAOD
::
TruthParticle
&
v1
,
const
xAOD
::
Jet
&
v2
)
{
// Should this use delta y though?
return
v1
.
p4
().
DeltaR
(
v2
.
p4
());
}
void
MCTruthClassifier
::
findJetConstituents
(
const
xAOD
::
Jet
*
jet
,
std
::
set
<
const
xAOD
::
TruthParticle
*>&
constituents
,
...
...
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