Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
07d92185
Commit
07d92185
authored
1 year ago
by
Markus Frank
Committed by
MarkusFrankATcernch
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix compile error on MacOS
parent
33479963
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
DDG4/edm4hep/Geant4Output2EDM4hep.cpp
+3
-2
3 additions, 2 deletions
DDG4/edm4hep/Geant4Output2EDM4hep.cpp
with
3 additions
and
2 deletions
DDG4/edm4hep/Geant4Output2EDM4hep.cpp
+
3
−
2
View file @
07d92185
...
...
@@ -442,7 +442,7 @@ void Geant4Output2EDM4hep::saveCollection(OutputContext<G4Event>& /*ctxt*/, G4VH
//-------------------------------------------------------------------
if
(
typeid
(
Geant4Tracker
::
Hit
)
==
coll
->
type
().
type
()
){
// Create the hit container even if there are no entries!
auto
&
hits
=
m_trackerHits
[
colName
]
=
{}
;
auto
&
hits
=
m_trackerHits
[
colName
]
=
edm4hep
::
SimTrackerHitCollection
()
;
for
(
unsigned
i
=
0
;
i
<
nhits
;
++
i
){
auto
sth
=
hits
->
create
();
const
Geant4Tracker
::
Hit
*
hit
=
coll
->
hit
(
i
);
...
...
@@ -473,7 +473,8 @@ void Geant4Output2EDM4hep::saveCollection(OutputContext<G4Event>& /*ctxt*/, G4VH
Geant4Sensitive
*
sd
=
coll
->
sensitive
();
int
hit_creation_mode
=
sd
->
hitCreationMode
();
// Create the hit container even if there are no entries!
auto
&
hits
=
m_calorimeterHits
[
colName
]
=
{};
auto
&
hits
=
m_calorimeterHits
[
colName
]
=
std
::
make_pair
(
edm4hep
::
SimCalorimeterHitCollection
(),
edm4hep
::
CaloHitContributionCollection
());
for
(
unsigned
i
=
0
;
i
<
nhits
;
++
i
){
auto
sch
=
hits
.
first
->
create
();
const
Geant4Calorimeter
::
Hit
*
hit
=
coll
->
hit
(
i
);
...
...
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