#include "AliJetEmbeddingFromAODTask.h"
-//#include <iostream>
-
#include <TFile.h>
#include <TTree.h>
#include <TClonesArray.h>
#include <TObjString.h>
#include <TGrid.h>
#include <TH2C.h>
+#include <TList.h>
+#include <TStreamerInfo.h>
#include "AliVEvent.h"
#include "AliAODTrack.h"
fCurrentFileID(0),
fCurrentAODFileID(-1),
fCurrentAODFile(0),
+ fPicoTrackVersion(0),
fAODHeader(0),
fAODVertex(0),
fAODTracks(0),
fCurrentFileID(0),
fCurrentAODFileID(-1),
fCurrentAODFile(0),
+ fPicoTrackVersion(0),
fAODHeader(0),
fAODVertex(0),
fAODTracks(0),
return kFALSE;
}
+ const TList *clist = fCurrentAODFile->GetStreamerInfoCache();
+ if(clist) {
+ TStreamerInfo *cinfo = static_cast<TStreamerInfo*>(clist->FindObject("AliPicoTrack"));
+ if(cinfo)
+ fPicoTrackVersion = cinfo->GetClassVersion();
+ else
+ fPicoTrackVersion = 0;
+ }
+
if (fQAhistos)
fHistFileIDs->Fill(fCurrentFileID, fCurrentAODFileID);
aodtrack->GetTrackPhiOnEMCal() < 190 * TMath::DegToRad())
isEmc = kTRUE;
}
- else { /*not AOD mode, let's see if it is PicoTrack*/
+ else if (fPicoTrackVersion > 0) { /*not AOD mode, let's see if it is PicoTrack*/
AliPicoTrack *ptrack = dynamic_cast<AliPicoTrack*>(track);
if (ptrack) {
- type = ptrack->GetTrackType();
+ if (fPicoTrackVersion >= 3)
+ type = ptrack->GetTrackType();
+ else
+ type = ptrack->GetLabel();
isEmc = ptrack->IsEMCAL();
}
}
AddCell(amp, cellNum, time);
}
}
+
+ AliDebug(2,Form("Added cells = %d, total cells = %d", fAddedCells, totalCells));
}
}