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
c4e3967a
Commit
c4e3967a
authored
5 years ago
by
scott snyder
Browse files
Options
Downloads
Patches
Plain Diff
MuonD3PDMaker: Remove use of BOOST_FOREACH.
Change to range-based for.
parent
9b9ac1c9
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
PhysicsAnalysis/D3PDMaker/MuonD3PDMaker/src/MuonTruthHitsFillerTool.cxx
+3
-6
3 additions, 6 deletions
...s/D3PDMaker/MuonD3PDMaker/src/MuonTruthHitsFillerTool.cxx
with
3 additions
and
6 deletions
PhysicsAnalysis/D3PDMaker/MuonD3PDMaker/src/MuonTruthHitsFillerTool.cxx
+
3
−
6
View file @
c4e3967a
/*
/*
Copyright (C) 2002-201
7
CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-201
9
CERN for the benefit of the ATLAS collaboration
*/
*/
// $Id$
/**
/**
* @file MuonD3PDMaker/src/MuonTruthHitsFillerTool.cxx
* @file MuonD3PDMaker/src/MuonTruthHitsFillerTool.cxx
* @author scott snyder <snyder@bnl.gov>, from code by Niels van Eldik.
* @author scott snyder <snyder@bnl.gov>, from code by Niels van Eldik.
...
@@ -16,7 +14,6 @@
...
@@ -16,7 +14,6 @@
#include
"TrkTruthData/PRD_MultiTruthCollection.h"
#include
"TrkTruthData/PRD_MultiTruthCollection.h"
#include
"AthenaKernel/errorcheck.h"
#include
"AthenaKernel/errorcheck.h"
#include
"HepMC/GenParticle.h"
#include
"HepMC/GenParticle.h"
#include
"boost/foreach.hpp"
namespace
D3PD
{
namespace
D3PD
{
...
@@ -128,14 +125,14 @@ StatusCode MuonTruthHitsFillerTool::fillHitCounts (int barcode)
...
@@ -128,14 +125,14 @@ StatusCode MuonTruthHitsFillerTool::fillHitCounts (int barcode)
typedef
Muon
::
MuonStationIndex
MSI
;
typedef
Muon
::
MuonStationIndex
MSI
;
bool
found
=
false
;
bool
found
=
false
;
BOOST_FOREACH
(
const
std
::
string
&
key
,
m_PRD_TruthNames
)
{
for
(
const
std
::
string
&
key
:
m_PRD_TruthNames
)
{
const
PRD_MultiTruthCollection
*
collection
=
0
;
const
PRD_MultiTruthCollection
*
collection
=
0
;
if
(
!
evtStore
()
->
retrieve
(
collection
,
key
).
isSuccess
())
{
if
(
!
evtStore
()
->
retrieve
(
collection
,
key
).
isSuccess
())
{
ATH_MSG_WARNING
(
"PRD_MultiTruthCollection "
<<
key
<<
" NOT found"
);
ATH_MSG_WARNING
(
"PRD_MultiTruthCollection "
<<
key
<<
" NOT found"
);
continue
;
continue
;
}
}
BOOST_FOREACH
(
const
PRD_MultiTruthCollection
::
value_type
&
mc
,
*
collection
)
{
for
(
const
PRD_MultiTruthCollection
::
value_type
&
mc
:
*
collection
)
{
// check if gen particle same as input
// check if gen particle same as input
if
(
mc
.
second
->
barcode
()
!=
barcode
)
continue
;
if
(
mc
.
second
->
barcode
()
!=
barcode
)
continue
;
found
=
true
;
found
=
true
;
...
...
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