Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
physics_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
physics_benchmarks
Commits
472f936d
Commit
472f936d
authored
1 month ago
by
bspage912
Committed by
Dmitry Kalinkin
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
Implemented association based electron ID for Generated and matched jet sections
parent
df0f903f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/Jets-HF/jets/analysis/jets.cxx
+25
-25
25 additions, 25 deletions
benchmarks/Jets-HF/jets/analysis/jets.cxx
with
25 additions
and
25 deletions
benchmarks/Jets-HF/jets/analysis/jets.cxx
+
25
−
25
View file @
472f936d
...
@@ -236,31 +236,31 @@ const int seabornBlue = TColor::GetColor(100, 149, 237);
...
@@ -236,31 +236,31 @@ const int seabornBlue = TColor::GetColor(100, 149, 237);
recoChargedJetEvsEtaHist
->
Fill
(
jetMom
.
PseudoRapidity
(),
recoNRG
[
i
]);
recoChargedJetEvsEtaHist
->
Fill
(
jetMom
.
PseudoRapidity
(),
recoNRG
[
i
]);
if
(
ECut
)
recoChargedJetPhiVsEtaECutHist
->
Fill
(
jetMom
.
PseudoRapidity
(),
jetMom
.
Phi
());
if
(
ECut
)
recoChargedJetPhiVsEtaECutHist
->
Fill
(
jetMom
.
PseudoRapidity
(),
jetMom
.
Phi
());
// Find Jets with Electrons
bool
noElectron
=
true
;
bool
noElectron
=
true
;
if
(
ECut
)
for
(
unsigned
int
m
=
partsBegin
[
i
];
m
<
partsEnd
[
i
];
m
++
)
// Loop over jet constituents
{
{
// Find Jets with Electrons
int
elecIndex
=
-
1
;
for
(
unsigned
int
m
=
partsBegin
[
i
];
m
<
partsEnd
[
i
];
m
++
)
// Loop over jet constituents
double
elecIndexWeight
=
-
1.0
;
int
chargePartIndex
=
recoPartIndex
[
m
];
// ReconstructedChargedParticle Index for m'th Jet Component
for
(
unsigned
int
n
=
0
;
n
<
recoPartAssocRec
.
GetSize
();
n
++
)
// Loop Over All ReconstructedChargedParticleAssociations
{
{
int
elecIndex
=
-
1
;
if
(
recoPartAssocRec
[
n
]
==
chargePartIndex
)
// Select Entry Matching the ReconstructedChargedParticle Index
double
elecIndexWeight
=
-
1.0
;
int
chargePartIndex
=
recoPartIndex
[
m
];
// ReconstructedChargedParticle Index for m'th Jet Component
for
(
unsigned
int
n
=
0
;
n
<
recoPartAssocRec
.
GetSize
();
n
++
)
// Loop Over All ReconstructedChargedParticleAssociations
{
{
if
(
recoPartAssoc
Rec
[
n
]
==
chargePartIndex
)
// Select Entry Matching the Rec
on
s
tr
uctedChargedParticle Index
if
(
recoPartAssoc
Weight
[
n
]
>
elecIndexWeight
)
// Find Particle with Greatest Weight = C
ontr
ibuted Most Hits to Track
{
{
if
(
recoPartAssocWeight
[
n
]
>
elecIndexWeight
)
// Find Particle with Greatest Weight = Contributed Most Hits to Track
elecIndex
=
recoPartAssocSim
[
n
];
// Get Index of MCParticle Associated with ReconstructedChargedParticle
{
elecIndexWeight
=
recoPartAssocWeight
[
n
];
elecIndex
=
recoPartAssocSim
[
n
];
// Get Index of MCParticle Associated with ReconstructedChargedParticle
elecIndexWeight
=
recoPartAssocWeight
[
n
];
}
}
}
}
}
if
(
pdgMCPart
[
elecIndex
]
==
11
)
// Test if Matched Particle is an Electron
noElectron
=
false
;
}
}
if
(
pdgMCPart
[
elecIndex
]
==
11
)
// Test if Matched Particle is an Electron
noElectron
=
false
;
}
if
(
ECut
)
{
for
(
unsigned
int
j
=
partsBegin
[
i
];
j
<
partsEnd
[
i
];
j
++
)
for
(
unsigned
int
j
=
partsBegin
[
i
];
j
<
partsEnd
[
i
];
j
++
)
{
{
// partsbegin and partsEnd specify the entries from _ReconstructedChargedJets_particles.index that make up the jet
// partsbegin and partsEnd specify the entries from _ReconstructedChargedJets_particles.index that make up the jet
...
@@ -347,16 +347,16 @@ const int seabornBlue = TColor::GetColor(100, 149, 237);
...
@@ -347,16 +347,16 @@ const int seabornBlue = TColor::GetColor(100, 149, 237);
genChargedJetEvsEtaHist
->
Fill
(
jetMom
.
PseudoRapidity
(),
genNRG
[
i
]);
genChargedJetEvsEtaHist
->
Fill
(
jetMom
.
PseudoRapidity
(),
genNRG
[
i
]);
if
(
ECut
)
genChargedJetPhiVsEtaECutHist
->
Fill
(
jetMom
.
PseudoRapidity
(),
jetMom
.
Phi
());
if
(
ECut
)
genChargedJetPhiVsEtaECutHist
->
Fill
(
jetMom
.
PseudoRapidity
(),
jetMom
.
Phi
());
// Find Jets with Electrons
bool
noElectron
=
true
;
bool
noElectron
=
true
;
if
(
ECut
)
for
(
unsigned
int
m
=
genPartsBegin
[
i
];
m
<
genPartsEnd
[
i
];
m
++
)
{
{
// Find Jets with Electrons
if
(
pdg
[
genPartIndex
[
m
]]
==
11
)
for
(
unsigned
int
m
=
genPartsBegin
[
i
];
m
<
genPartsEnd
[
i
];
m
++
)
noElectron
=
false
;
{
}
if
(
mcM
[
genPartIndex
[
m
]]
>
0.00050
&&
mcM
[
genPartIndex
[
m
]]
<
0.00052
)
noElectron
=
false
;
}
if
(
ECut
)
{
for
(
unsigned
int
j
=
genPartsBegin
[
i
];
j
<
genPartsEnd
[
i
];
j
++
)
for
(
unsigned
int
j
=
genPartsBegin
[
i
];
j
<
genPartsEnd
[
i
];
j
++
)
{
{
// partsbegin and partsEnd specify the entries from _ReconstructedChargedJets_particles.index that make up the jet
// partsbegin and partsEnd specify the entries from _ReconstructedChargedJets_particles.index that make up the jet
...
@@ -438,7 +438,7 @@ const int seabornBlue = TColor::GetColor(100, 149, 237);
...
@@ -438,7 +438,7 @@ const int seabornBlue = TColor::GetColor(100, 149, 237);
// Find Jets with Electrons
// Find Jets with Electrons
for
(
unsigned
int
m
=
genPartsBegin
[
i
];
m
<
genPartsEnd
[
i
];
m
++
)
for
(
unsigned
int
m
=
genPartsBegin
[
i
];
m
<
genPartsEnd
[
i
];
m
++
)
{
{
if
(
mcM
[
genPartIndex
[
m
]]
>
0.00050
&&
mcM
[
genPartIndex
[
m
]]
<
0.00052
)
if
(
pdg
[
genPartIndex
[
m
]]
==
11
)
hasElectron
=
true
;
hasElectron
=
true
;
}
}
//if(hasElectron) continue;
//if(hasElectron) continue;
...
...
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