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
f45a96d2
Commit
f45a96d2
authored
6 years ago
by
Susumu Oda
Browse files
Options
Downloads
Patches
Plain Diff
Keep IdentifierHash before move and use it after move
parent
cae68f8a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/SCT_Clusterization.cxx
+6
-5
6 additions, 5 deletions
...Algs/InDetPrepRawDataFormation/src/SCT_Clusterization.cxx
with
6 additions
and
5 deletions
InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/SCT_Clusterization.cxx
+
6
−
5
View file @
f45a96d2
/*
Copyright (C) 2002-201
7
CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-201
8
CERN for the benefit of the ATLAS collaboration
*/
/** @file SCT_Clusterization.cxx
...
...
@@ -170,10 +170,10 @@ namespace InDet{
std
::
unique_ptr
<
SCT_ClusterCollection
>
clusterCollection
(
m_clusteringTool
->
clusterize
(
*
rd
,
*
m_manager
,
*
m_idHelper
));
if
(
clusterCollection
)
{
if
(
not
clusterCollection
->
empty
())
{
const
IdentifierHash
hash
(
clusterCollection
->
identifyHash
());
//Using get because I'm unsure of move semantec status
ATH_CHECK
(
clusterContainer
->
addOrDelete
(
std
::
move
(
clusterCollection
),
clusterCollection
->
identifyHash
()));
ATH_MSG_DEBUG
(
"Clusters with key '"
<<
clusterCollection
->
identifyHash
()
<<
"' added to Container
\n
"
);
ATH_CHECK
(
clusterContainer
->
addOrDelete
(
std
::
move
(
clusterCollection
),
hash
));
ATH_MSG_DEBUG
(
"Clusters with key '"
<<
hash
<<
"' added to Container
\n
"
);
}
else
{
ATH_MSG_DEBUG
(
"Don't write empty collections
\n
"
);
}
...
...
@@ -211,7 +211,8 @@ namespace InDet{
if
(
clusterCollection
&&
!
clusterCollection
->
empty
()){
ATH_MSG_VERBOSE
(
"REGTEST: SCT : clusterCollection contains "
<<
clusterCollection
->
size
()
<<
" clusters"
);
ATH_CHECK
(
clusterContainer
->
addOrDelete
(
std
::
move
(
clusterCollection
),
clusterCollection
->
identifyHash
()
));
const
IdentifierHash
hash
(
clusterCollection
->
identifyHash
());
ATH_CHECK
(
clusterContainer
->
addOrDelete
(
std
::
move
(
clusterCollection
),
hash
));
}
else
{
ATH_MSG_DEBUG
(
"No SCTClusterCollection to write"
);
}
...
...
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