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
Commits
bf6fd2ed
Commit
bf6fd2ed
authored
10 months ago
by
John Chapman
Browse files
Options
Downloads
Patches
Plain Diff
Debugging changes
parent
a85e873b
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
Simulation/ISF/ISF_Fatras/ISF_FatrasToolsG4/src/G4ParticleDecayHelper.cxx
+17
-11
17 additions, 11 deletions
...SF_Fatras/ISF_FatrasToolsG4/src/G4ParticleDecayHelper.cxx
with
17 additions
and
11 deletions
Simulation/ISF/ISF_Fatras/ISF_FatrasToolsG4/src/G4ParticleDecayHelper.cxx
+
17
−
11
View file @
bf6fd2ed
...
...
@@ -239,17 +239,23 @@ void iFatras::G4ParticleDecayHelper::handleDecayParticles(const ISF::ISFParticle
decayProduct
->
setNextGeoID
(
particle
.
nextGeoID
()
);
}
//loop over all decay products
// register TruthIncident
ISF
::
ISFTruthIncident
truth
(
const_cast
<
ISF
::
ISFParticle
&>
(
particle
),
decayProducts
,
process
,
particle
.
nextGeoID
(),
// inherits from the parent
ISF
::
fKillsPrimary
);
m_truthRecordSvc
->
registerTruthIncident
(
truth
);
// At this point we need to update the properties of the
// ISFParticles produced in the interaction
truth
.
updateChildParticleProperties
();
auto
*
truthBinding
=
particle
.
getTruthBinding
();
// TEMPORARY
HepMC
::
ConstGenParticlePtr
hepTruthParticle
=
truthBinding
?
truthBinding
->
getTruthParticle
()
:
nullptr
;
// TEMPORARY
if
(
hepTruthParticle
&&
hepTruthParticle
->
end_vertex
())
{
// TEMPORARY
ATH_MSG_WARNING
(
"G4ParticleDecayHelper::handleDecayParticles(): Parent particle found with an end vertex attached. This should not happen!"
);
}
else
{
// register TruthIncident
ISF
::
ISFTruthIncident
truth
(
const_cast
<
ISF
::
ISFParticle
&>
(
particle
),
decayProducts
,
process
,
particle
.
nextGeoID
(),
// inherits from the parent
ISF
::
fKillsPrimary
);
m_truthRecordSvc
->
registerTruthIncident
(
truth
);
// At this point we need to update the properties of the
// ISFParticles produced in the interaction
truth
.
updateChildParticleProperties
();
}
// simulate the tracks of the daughter particles ------- run over decay products
for
(
ISF
::
ISFParticle
*
decayProduct
:
decayProducts
)
{
// feed it the particle broker with parent information
...
...
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