10#include "SplittingToStatusTask.h"
12#include "ComplexEvent.h"
13#include "ComplexTrack.h"
14#include "DataFormatManager.h"
15#include "DataManager.h"
17#include "MemoryMapManager.h"
21#include <RtypesCore.h>
24 SplittingToStatusTask::SplittingToStatusTask() {
AddTags(
"splitting task"); }
26 SplittingToStatusTask::~SplittingToStatusTask() {}
31 if (ev ==
nullptr)
return Task::EInitFlag::kFATAL;
32 if (
dynamic_cast<const ComplexEvent*
>(ev) ==
nullptr) {
return Task::EInitFlag::kFATAL; }
47 Event* im = ev->GetImgEvent();
49 int size = fSplitFlag.size();
50 if (size < im->GetTotalTrackNo()) fSplitFlag.resize(im->
GetTotalTrackNo());
56 if (tr->GetMatchID() > -1) { ++fSplitFlag[tr->GetMatchID()]; }
60 Int_t match = z->GetMatchID();
62 if (fSplitFlag[match] > 1)
71 EventAna(other), fSplitFlag(other.fSplitFlag) {}
73 SplittingToStatusTask& SplittingToStatusTask::operator=(
const SplittingToStatusTask& other) {
74 if (
this == &other)
return *
this;
76 fSplitFlag = other.fSplitFlag;
void Register(const char *name, const char *folderName, TNamed *obj, Bool_t toFile)
virtual Task::EInitFlag CheckFormat()
MemoryMapManager * fMemoryMap
EventAna & operator=(const EventAna &other)
virtual Task::EInitFlag Init()
virtual void AddTags(TString tag)
Int_t GetTotalTrackNo() const
Track * GetTrack(Int_t i) const
Event * GetTemporaryEvent()
virtual Task::EInitFlag CheckFormat()
virtual void Exec(Option_t *opt="")
virtual Task::EInitFlag Init()
void SetStatus(Int_t status)