UInt_t R__s, R__c;
if (b.IsReading())
{
- /* Version_t v = */ b.ReadVersion(&R__s, &R__c);
+ Int_t i;
+ for (i = 0;i<fNCuts;i++) delete fCuts[i];
+ b.ReadVersion(&R__s, &R__c);
TObject::Streamer(b);
b >> fPID;
b >> fNCuts;
- for (Int_t i = 0;i<fNCuts;i++)
+ for (i = 0;i<fNCuts;i++)
{
- b >> fCuts[i];
+ b >> fCuts[i];
}
b.CheckByteCount(R__s, R__c,AliHBTParticleCut::IsA());
}
totalNevents++;
}
- /***************************/
- /***************************/
- /***************************/
- currentdir++;
- aFile->Close();
- aFile = 0x0;
+ /***************************/
+ /***************************/
+ /***************************/
+ currentdir++;
+ delete tree;
+ aFile->Close();
+ delete aFile;
+ aFile = 0x0;
}while(currentdir < Ndirs);
+ delete pbuffer;
+ delete tbuffer;
fIsRead = kTRUE;
return 0;
}