36 Task::EInitFlag TrackColDumAna::Init() {
37 Task::EInitFlag flag = TrackAna::Init();
38 Int_t event_col = fCutContainer->GetEventCollectionsNo();
39 if (event_col != 0)
return Task::EInitFlag::kFATAL;
42 fNewEvent = fCurrentEvent->GetNewEvent();
44 ioManager->
Register(Form(
"%s.", fNewEvent->ClassName()),
"HalEvents", fNewEvent, kTRUE);
48 void TrackColDumAna::ProcessEvent() {
49 fMemoryMap->PrepareMaps(fCurrentEventCollectionID);
50 CutCollection* cont = fCutContainer->GetEventCollection(fCurrentEventCollectionID);
51 for (fTrackIndex = 0; fTrackIndex < fMemoryMap->GetTemporaryTotalTracksNo(); fTrackIndex++) {
52 fCurrentTrack = fCurrentEvent->GetTrack(fTrackIndex);
53 for (
int j = 0; j < cont->
GetNextNo(); j++) {
55 if (fCutContainer->PassTrack(fCurrentTrack, fCurrentTrackCollectionID)) {
56 fCurrentTrack->SetStatus(fCurrentTrack->GetStatus() + fCurrentTrackCollectionID * 1000);
57 fMemoryMap->AddTrackToMapTrack(fCurrentEventCollectionID,
58 fCurrentTrackCollectionID,
65 fMemoryMap->BufferEvent(fCurrentEventCollectionID);