Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ class MCTrackT
}
bool getInhibited() const { return ((PropEncoding)mProp).inhibited; }

bool isTransported() const { return getToBeDone() && !getInhibited(); };

/// get the string representation of the production process
const char* getProdProcessAsString() const;

Expand Down
5 changes: 4 additions & 1 deletion run/O2HitMerger.h
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,10 @@ class O2HitMerger : public FairMQDevice
originbr->GetEntry(index);
for (Int_t i = 0; i < nprimaries[index]; i++) {
auto& track = incomingdata->at(i);
track.SetFirstDaughterTrackId(-1);
if (track.isTransported()) { // reset daughters only if track was transported, it will be fixed below
track.SetFirstDaughterTrackId(-1);
track.SetLastDaughterTrackId(-1);
}
targetdata->push_back(track);
}
incomingdata->clear();
Expand Down