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
aae726fc
Commit
aae726fc
authored
4 years ago
by
Markus FRANK
Committed by
MarkusFrankATcernch
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix EDM module
parent
995a535b
No related branches found
Branches containing commit
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
+6
-6
6 additions, 6 deletions
DDG4/edm4hep/Geant4Output2EDM4hep.cpp
with
6 additions
and
6 deletions
DDG4/edm4hep/Geant4Output2EDM4hep.cpp
+
6
−
6
View file @
aae726fc
...
...
@@ -442,7 +442,7 @@ void Geant4Output2EDM4hep::saveCollection(OutputContext<G4Event>& /*ctxt*/, G4VH
&
m_store
->
get
<
edm4hep
::
MCParticleCollection
>
(
"MCParticles"
));
//-------------------------------------------------------------------
if
(
typeid
(
Geant4Tracker
::
Hit
)
==
coll
->
type
().
type
){
if
(
typeid
(
Geant4Tracker
::
Hit
)
==
coll
->
type
().
type
()
){
edm4hep
::
SimTrackerHitCollection
*
sthc
=
const_cast
<
edm4hep
::
SimTrackerHitCollection
*>
(
&
m_store
->
get
<
edm4hep
::
SimTrackerHitCollection
>
(
colName
));
...
...
@@ -478,7 +478,7 @@ void Geant4Output2EDM4hep::saveCollection(OutputContext<G4Event>& /*ctxt*/, G4VH
}
//-------------------------------------------------------------------
}
else
if
(
typeid
(
Geant4Calorimeter
::
Hit
)
==
coll
->
type
().
type
){
else
if
(
typeid
(
Geant4Calorimeter
::
Hit
)
==
coll
->
type
().
type
()
){
Geant4Sensitive
*
sd
=
coll
->
sensitive
();
int
hit_creation_mode
=
sd
->
hitCreationMode
();
...
...
@@ -534,7 +534,7 @@ void Geant4Output2EDM4hep::saveCollection(OutputContext<G4Event>& /*ctxt*/, G4VH
}
else
{
printout
(
ERROR
,
"Geant4Output2EDM4hep"
,
" unknown type in Geant4HitCollection %s "
,
coll
->
type
().
type
.
name
()
);
coll
->
type
().
type
()
.
name
()
);
}
}
...
...
@@ -563,13 +563,13 @@ void Geant4Output2EDM4hep::createCollections(OutputContext<G4Event>& ctxt){
continue
;
}
if
(
typeid
(
Geant4Tracker
::
Hit
)
==
coll
->
type
().
type
){
if
(
typeid
(
Geant4Tracker
::
Hit
)
==
coll
->
type
().
type
()
){
m_store
->
create
<
edm4hep
::
SimTrackerHitCollection
>
(
colName
);
m_file
->
registerForWrite
(
colName
);
printout
(
DEBUG
,
"Geant4Output2EDM4hep"
,
"+++ created collection %s"
,
colName
.
c_str
()
);
}
else
if
(
typeid
(
Geant4Calorimeter
::
Hit
)
==
coll
->
type
().
type
){
else
if
(
typeid
(
Geant4Calorimeter
::
Hit
)
==
coll
->
type
().
type
()
){
m_store
->
create
<
edm4hep
::
SimCalorimeterHitCollection
>
(
colName
);
m_file
->
registerForWrite
(
colName
);
...
...
@@ -583,7 +583,7 @@ void Geant4Output2EDM4hep::createCollections(OutputContext<G4Event>& ctxt){
}
else
{
printout
(
WARNING
,
"Geant4Output2EDM4hep"
,
" unknown type in Geant4HitCollection %s "
,
coll
->
type
().
type
.
name
()
);
" unknown type in Geant4HitCollection %s "
,
coll
->
type
().
type
()
.
name
()
);
}
}
...
...
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