if (!fFileK) {
AliError(Form("AliMCEventHandler:Kinematics.root not found in directory %s ! \n", fPathName));
fInitOk = kFALSE;
- return kFALSE;
+ return kTRUE;
}
fEventsPerFile = fFileK->GetNkeys() - fFileK->GetNProcessIDs();
if (!fFileTR) {
AliError(Form("AliMCEventHandler:TrackRefs.root not found in directory %s ! \n", fPathName->Data()));
fInitOk = kFALSE;
- return kFALSE;
+ return kTRUE;
}
}
//
AliWarning(Form("AliMCEventHandler: Event #%5d not found\n", iev));
return kFALSE;
}
+
fDirK ->GetObject("TreeK", fTreeK);
// Connect TreeK to MCEvent
fMCEvent->ConnectTreeK(fTreeK);
// for running with galice and kinematics alone...
fileName.ReplaceAll("galice.root", "");
}
-
+ else if (fileName.BeginsWith("root:")) {
+ fileName.Append("?ZIP=");
+ }
*fPathName = fileName;
AliInfo(Form("Notify() Path: %s\n", fPathName->Data()));
void AliMCEventHandler::ResetIO()
{
// Clear header and stack
+
if (fInitOk) fMCEvent->Clean();
// Delete Tree E
delete fTreeE; fTreeE = 0;
-
+
// Reset files
if (fFileE) {delete fFileE; fFileE = 0;}
if (fFileK) {delete fFileK; fFileK = 0;}