8#include "SameMotherMcCut.h"
10#include "DataFormatManager.h"
17 SameMotherMcCut::SameMotherMcCut() : TwoTrackCut(1) {
18 SetUnitName(
"SameMother", 0);
25 if (tr1->GetMotherIndex() < 0) {
return ForcedUpdate(0); }
26 if (tr2->GetMotherIndex() < 0) {
return ForcedUpdate(0); }
27 if (tr1->GetMotherIndex() == tr2->GetMotherIndex())
return ForcedUpdate(1);
28 return ForcedUpdate(0);
31 Bool_t SameMotherMcCut::Init(Int_t task_id) {
32 if (TwoTrackCut::Init() == kFALSE)
return kFALSE;
33 const Event* ev = DataFormatManager::Instance()->GetFormat(task_id, EFormatDepth::kBuffered);
34 if (ev->InheritsFrom(
"Hal::McEvent")) {
Track * GetTrack1() const
Track * GetTrack2() const