Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Peter Sherwood
athena
Commits
329b1c9a
Commit
329b1c9a
authored
4 years ago
by
Christian Grefe
Browse files
Options
Downloads
Patches
Plain Diff
Fix treatment of TRT eProbability vector
parent
03eb5d31
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
Tracking/TrkEvent/TrkTrackSummary/CMakeLists.txt
+1
-1
1 addition, 1 deletion
Tracking/TrkEvent/TrkTrackSummary/CMakeLists.txt
Tracking/TrkEvent/TrkTrackSummary/src/TrackSummary.cxx
+9
-3
9 additions, 3 deletions
Tracking/TrkEvent/TrkTrackSummary/src/TrackSummary.cxx
with
10 additions
and
4 deletions
Tracking/TrkEvent/TrkTrackSummary/CMakeLists.txt
+
1
−
1
View file @
329b1c9a
...
...
@@ -7,7 +7,7 @@ atlas_subdir( TrkTrackSummary )
atlas_add_library
(
TrkTrackSummary
src/*.cxx
PUBLIC_HEADERS TrkTrackSummary
LINK_LIBRARIES Identifier
LINK_LIBRARIES Identifier
TrkToolInterfaces
PRIVATE_LINK_LIBRARIES GaudiKernel
)
atlas_add_dictionary
(
TrkTrackSummaryDict
...
...
This diff is collapsed.
Click to expand it.
Tracking/TrkEvent/TrkTrackSummary/src/TrackSummary.cxx
+
9
−
3
View file @
329b1c9a
...
...
@@ -11,6 +11,7 @@
#include
"TrkTrackSummary/TrackSummary.h"
#include
"TrkTrackSummary/InDetTrackSummary.h"
#include
"TrkTrackSummary/MuonTrackSummary.h"
#include
"TrkToolInterfaces/ITRT_ElectronPidTool.h"
#include
"GaudiKernel/MsgStream.h"
std
::
atomic
<
unsigned
int
>
Trk
::
TrackSummary
::
s_numberOfInstantiations
{
0
};
...
...
@@ -19,7 +20,7 @@ const int Trk::TrackSummary::SummaryTypeNotSet=-1;
Trk
::
TrackSummary
::
TrackSummary
()
:
m_information
(
numberOfTrackSummaryTypes
,
SummaryTypeNotSet
),
m_eProbability
(
numberOfe
Probability
Types
,
0.5
),
m_eProbability
(
ITRT_ElectronPidTool
::
defaultElectron
Probability
()
),
m_dedx
(
-
1
),
m_nhitsdedx
(
-
1
),
m_nhitsoverflowdedx
(
-
1
),
...
...
@@ -105,8 +106,9 @@ Trk::TrackSummary& Trk::TrackSummary::operator+=(const TrackSummary& ts)
}
m_information
[
i
]
+=
ts
.
m_information
[
i
];
}
for
(
int
i
=
0
;
i
<
numberOfeProbabilityTypes
;
++
i
)
{
m_eProbability
[
i
]
*=
ts
.
m_eProbability
[
i
];
}
if
(
ts
.
m_eProbability
!=
ITRT_ElectronPidTool
::
defaultElectronProbability
())
{
m_eProbability
=
ts
.
m_eProbability
;
}
if
(
m_dedx
<
0
&&
ts
.
m_dedx
>=
0
)
{
m_dedx
=
ts
.
m_dedx
;
m_nhitsdedx
=
ts
.
m_nhitsdedx
;
...
...
@@ -198,6 +200,10 @@ T_out& dumpTrackSummary( T_out& out, const TrackSummary& trackSum )
out
<<
" * Electron probability from HT: "
<<
trackSum
.
getPID
(
eProbabilityHT
)
<<
"
\n
"
;
out
<<
" * Electron probability from ToT: "
<<
trackSum
.
getPID
(
eProbabilityToT
)
<<
"
\n
"
;
out
<<
" * Electron probability from Brem: "
<<
trackSum
.
getPID
(
eProbabilityBrem
)
<<
"
\n
"
;
out
<<
" * Electron probability from NN: "
<<
trackSum
.
getPID
(
eProbabilityNN
)
<<
"
\n
"
;
out
<<
" * TRT track occupancy: "
<<
trackSum
.
getPID
(
TRTTrackOccupancy
)
<<
"
\n
"
;
out
<<
" * dE/dx from TRT: "
<<
trackSum
.
getPID
(
TRTdEdx
)
<<
"
\n
"
;
out
<<
" * number of TRT hits used for dE/dx: "
<<
trackSum
.
getPID
(
eProbabilityNumberOfTRTHitsUsedFordEdx
)
<<
"
\n
"
;
out
<<
" --------------------------------- "
<<
"
\n
"
;
out
<<
" dE/dx from pixels : "
<<
trackSum
.
getPixeldEdx
()
<<
" MeV g^-1 cm^2"
<<
"
\n
"
;
...
...
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