We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20adf7c commit af83811Copy full SHA for af83811
1 file changed
Generators/src/GeneratorFromFile.cxx
@@ -107,17 +107,16 @@ Bool_t GeneratorFromFile::ReadEvent(FairPrimaryGenerator* primGen)
107
// filter the particles from Kinematics.root originally put by a generator
108
// and which are trackable
109
auto isFirstTrackableDescendant = [](TParticle const& p) {
110
- const int kDoneBit = 4;
+ const int kTransportBit = BIT(14);
111
// The particle should have not set kDone bit and its status should not exceed 1
112
- if (p.GetStatusCode() > 1 || p.TestBit(kDoneBit)) {
+ if (p.GetUniqueID() > 0 || !p.TestBit(kTransportBit)) {
113
return false;
114
}
115
return true;
116
};
117
118
for (int i = 0; i < branch->GetEntries(); ++i) {
119
auto& p = particles[i];
120
-
121
if (!isFirstTrackableDescendant(p)) {
122
continue;
123
0 commit comments