12 #include <TClonesArray.h>
13 #include <TObjArray.h>
22 #include "NicaComplexTrack.h"
23 #include "NicaEvent.h"
28 NicaEvent::ShallowCopyEvent(fRealEvent);
30 fTotalTracksNo = fRealEvent->GetTotalTrackNo();
31 fTracks->ExpandCreateFast(fTotalTracksNo);
34 for (
int i = 0;
i < fTotalTracksNo;
i++) {
35 NicaComplexTrack* track = (NicaComplexTrack*)
fTracks->UncheckedAt(
i);
36 track->SetRealTrack(fRealEvent->GetTrack(
i));
37 track->NicaTrack::CopyData(fRealEvent->GetTrack(
i));
56 track->SetImgTrack(NULL);
59 track->SetImgTrack(mc);
60 track->SetMatchID(id_match);
67 if (fImgEvent && fRealEvent) {
68 if (fImgEvent->ExistInTree() && fRealEvent->ExistInTree()) {
return kTRUE; }