Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
calypso
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue 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
Savannah Rose Shively
calypso
Commits
a6db2db9
Commit
a6db2db9
authored
2 years ago
by
Savannah Rose Shively
Browse files
Options
Downloads
Patches
Plain Diff
move things to the correct loop. big sads.
parent
c0f40fac
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
Tracker/TrackerRecAlgs/PairVertex/scripts/PairVertexReader.py
+1
-1
1 addition, 1 deletion
...ker/TrackerRecAlgs/PairVertex/scripts/PairVertexReader.py
Tracker/TrackerRecAlgs/PairVertex/src/PairVertexAlg.cxx
+17
-18
17 additions, 18 deletions
Tracker/TrackerRecAlgs/PairVertex/src/PairVertexAlg.cxx
with
18 additions
and
19 deletions
Tracker/TrackerRecAlgs/PairVertex/scripts/PairVertexReader.py
+
1
−
1
View file @
a6db2db9
...
...
@@ -381,7 +381,7 @@ def GeneralPlotter(arrDict,dcuts=[],lcuts=[],showplot=True,savefig=False):
#EXECUTE
if
__name__
==
"
__main__
"
:
DP_fnames
=
[
'
Ntuple_A
mm_316
MeV_
2
Em
6
_
'
]
# Ntuple_Aee_10MeV_1Em5_
Ntuple_Amm_316MeV_2Em6_
Ntuple_Aee_10MeV_1Em
4
_ Ntuple_A
ee_100
MeV_
1
Em
5
_
DP_fnames
=
[
'
Ntuple_A
ee_10
MeV_
1
Em
4
_
'
]
# Ntuple_Aee_10MeV_1Em5_
Ntuple_Aee_10
0
MeV_1Em
5
_ Ntuple_A
mm_316
MeV_
2
Em
6
_
for
f
in
DP_fnames
:
user_input
=
f
t
=
TChain
(
"
events
"
)
...
...
This diff is collapsed.
Click to expand it.
Tracker/TrackerRecAlgs/PairVertex/src/PairVertexAlg.cxx
+
17
−
18
View file @
a6db2db9
...
...
@@ -447,7 +447,7 @@ StatusCode PairVertexAlg::execute(const EventContext &ctx) const
//loop over all clusters
if
(
clusterContainer
->
size
()
>
0
)
{
for
(
auto
collection
:
*
clusterContainer
)
for
(
auto
collection
:
*
clusterContainer
)
//
{
Identifier
id
=
collection
->
identify
();
int
station
=
m_idHelper
->
station
(
id
);
...
...
@@ -489,25 +489,24 @@ StatusCode PairVertexAlg::execute(const EventContext &ctx) const
if
(
pdgID
<
0
){
TotalEnergyDeposited_daughterPos
+=
edeposit
;}
}
}
m_clusterETotPos
.
push_back
(
TotalEnergyDeposited_daughterPos
);
m_clusterETotNeg
.
push_back
(
TotalEnergyDeposited_daughterNeg
);
m_clusterETot
.
push_back
(
TotalEnergyDeposited
);
m_clusterLocation
.
push_back
(
clusterLocation
);
m_clusterIsDaughter
.
push_back
(
isDaughter
);
if
(
TotalEnergyDeposited
>
0
)
{
m_clusterEFracPos
.
push_back
(
TotalEnergyDeposited_daughterPos
/
TotalEnergyDeposited
);
m_clusterEFracNeg
.
push_back
(
TotalEnergyDeposited_daughterNeg
/
TotalEnergyDeposited
);
}
else
{
m_clusterEFracPos
.
push_back
(
NaN
);
m_clusterEFracNeg
.
push_back
(
NaN
);
}
}
}
}
m_clusterETotPos
.
push_back
(
TotalEnergyDeposited_daughterPos
);
m_clusterETotNeg
.
push_back
(
TotalEnergyDeposited_daughterNeg
);
m_clusterETot
.
push_back
(
TotalEnergyDeposited
);
m_clusterLocation
.
push_back
(
clusterLocation
);
m_clusterIsDaughter
.
push_back
(
isDaughter
);
if
(
TotalEnergyDeposited
>
0
)
{
m_clusterEFracPos
.
push_back
(
TotalEnergyDeposited_daughterPos
/
TotalEnergyDeposited
);
m_clusterEFracNeg
.
push_back
(
TotalEnergyDeposited_daughterNeg
/
TotalEnergyDeposited
);
}
else
{
m_clusterEFracPos
.
push_back
(
NaN
);
m_clusterEFracNeg
.
push_back
(
NaN
);
}
clustercount
++
;
}
m_clusterCount
=
clustercount
;
...
...
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