Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Merge requests
!166
Fix problem with primary particles from pluto, ref
#1790
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Fix problem with primary particles from pluto, ref
#1790
f.uhlig/cbmroot:fix_issue_1790
into
master
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Florian Uhlig
requested to merge
f.uhlig/cbmroot:fix_issue_1790
into
master
4 years ago
Overview
0
Commits
1
Pipelines
2
Changes
1
These primaries shouldn't be transported, refs
#1790
Edited
4 years ago
by
Florian Uhlig
0
0
Merge request reports
Compare
master
version 1
b3739bbf
4 years ago
master (base)
and
latest version
latest version
7710132c
1 commit,
4 years ago
version 1
b3739bbf
1 commit,
4 years ago
1 file
+
9
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
sim/transport/base/CbmStack.cxx
+
9
−
2
View file @ 7710132c
Edit in single-file editor
Open in Web IDE
Show full file
@@ -170,7 +170,10 @@ void CbmStack::PushTrack(Int_t toBeDone,
// Note that for particles created by TGeant4, toBeDone is kFALSE,
// meaning that particles will not be put onto the internal stack.
// Geant4 seems to have a separate, internal stack administration.
if
(
fdoTracking
&&
toBeDone
)
fStack
.
push
(
particle
);
if
(
fdoTracking
&&
toBeDone
)
{
particle
->
SetBit
(
1
);
fStack
.
push
(
particle
);
}
}
// -------------------------------------------------------------------------
@@ -212,7 +215,11 @@ TParticle* CbmStack::PopPrimaryForTracking(Int_t iPrim) {
// a primary.
TParticle
*
part
=
(
TParticle
*
)
fParticles
->
At
(
iPrim
);
assert
(
part
->
GetUniqueID
()
==
kPPrimary
);
return
part
;
if
(
!
part
->
TestBit
(
1
))
{
return
NULL
;
}
else
{
return
part
;
}
}
// -------------------------------------------------------------------------
Loading