// Class storing and managing events //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
ClassImp(AliAODRun)
/**************************************************************************/
-AliAODRun::AliAODRun()
+AliAODRun::AliAODRun():
+ fEvents(new TObjArray())
{
//contructor
- fEvents = new TObjArray();//create array for AliAODs
if(!fEvents) Fatal("AliAODRun::AliAODRun","Can not allocate memory");
fEvents->SetOwner(); //array is an owner: when is deleted or cleared it deletes objects that it contains
}
}
/**************************************************************************/
-void AliAODRun::AddParticle(Int_t event, AliAODParticle* part)
+void AliAODRun::AddParticle(Int_t event, AliVAODParticle* part)
{
//Adds particle to event
//if there is no event of this number, crate it and add to the collection