#include "AliRunTag.h"
#include "AliEventTag.h"
#include "AliLog.h"
+#include "AliESDpid.h"
ClassImp(AliESDInputHandler)
{
// destructor
if (fRunTag) delete fRunTag;
+ delete fESDpid;
}
//______________________________________________________________________________
}
//______________________________________________________________________________
-Bool_t AliESDInputHandler::GetCutSummaryForChain(Int_t *aTotal, Int_t *aAccepted, Int_t *aRejected)
+Bool_t AliESDInputHandler::GetCutSummaryForChain(Int_t *aTotal, Int_t *aAccepted, Int_t *aRejected)
{
// Get number of events in the full chain
// Count accepted and rejected events
Int_t iAcc = atoi(strtok(iTagInfo, ","));
Int_t iRej = atoi(strtok(NULL, ","));
+ free(iTagInfo);
iAccList += iAcc;
iRejList += iRej;
Int_t iAcc = atoi(strtok(iTagInfo, ","));
Int_t iRej = atoi(strtok(NULL, ","));
-
+ free(iTagInfo);
if ((iAcc == 0) && ((iRej+iAcc)>0))
iFilesEmpty++;
}
if (opt=="BIN0") return fEventCuts->GetStatistics("BIN0");
else return fEventCuts->GetStatistics("ALL");
}
+
+//______________________________________________________________________________
+void AliESDInputHandler::CreatePIDResponse(Bool_t isMC/*=kFALSE*/)
+{
+ //
+ // create the pid response object if it does not exist yet
+ //
+ if (fESDpid) return;
+ fESDpid=new AliESDpid(isMC);
+
+}
+