Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
atlas
athena
Merge requests
!38819
Hepmc3 nightly fixes 03122020 part 1
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Hepmc3 nightly fixes 03122020 part 1
averbyts/athena:hepmc3_nightly_fixes_03122020_part_1
into
master
Overview
5
Commits
28
Pipelines
1
Changes
4
Merged
Andrii Verbytskyi
requested to merge
averbyts/athena:hepmc3_nightly_fixes_03122020_part_1
into
master
4 years ago
Overview
5
Commits
28
Pipelines
1
Changes
4
Expand
In this MR:
Use auto to match GenParticlePtr/GenParticle*
Use C++11 loops for HEpMC3 compatibility
use ifdef to deal with sysntax update for
particles_size()
vs
particles().size()
use free function barcode for HepMC3 compatibility
Edited
4 years ago
by
Andrii Verbytskyi
0
0
Merge request reports
Viewing commit
ef86ce63
Prev
Next
Show latest version
4 files
+
27
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
ef86ce63
Migrate more files
· ef86ce63
Andrii Verbytskyi
authored
4 years ago
Calorimeter/CaloLocalHadCalib/src/GetLCDeadMaterialTree.cxx
+
4
−
0
Options
@@ -222,8 +222,12 @@ StatusCode GetLCDeadMaterialTree::execute()
******************************************** */
const
McEventCollection
*
truthEvent
=
nullptr
;
ATH_CHECK
(
evtStore
()
->
retrieve
(
truthEvent
,
"TruthEvent"
)
);
#ifdef HEPMC3
HepMC
::
ConstGenParticlePtr
gen
=
truthEvent
->
at
(
0
)
->
particles
().
front
();
#else
HepMC
::
GenEvent
::
particle_const_iterator
pit
=
truthEvent
->
at
(
0
)
->
particles_begin
();
const
HepMC
::
GenParticle
*
gen
=
*
pit
;
#endif
double
mc_eta
=
gen
->
momentum
().
pseudoRapidity
();
double
mc_phi
=
gen
->
momentum
().
phi
();
Loading