fCPVRecPoints(0)
{
// ctor
+ fEMCRecPoints = new TObjArray(100) ;
+ fCPVRecPoints = new TObjArray(100) ;
}
//____________________________________________________________________________
fCPVRecPoints(0)
{
// ctor
+ fEMCRecPoints = new TObjArray(100) ;
+ fCPVRecPoints = new TObjArray(100) ;
}
//____________________________________________________________________________
//____________________________________________________________________________
void AliPHOSTrackSegmentMaker::SetInput(TTree *clustersTree)
{
- // Read the clusters tree and creates the
- // arrays with the EMC and CPV
- // clusters.
- // and set the corresponding branch addresses
+ // Read the clusters tree and set addresses to the
+ // arrays with the EMC and CPV clusters
TBranch *emcbranch = clustersTree->GetBranch("PHOSEmcRP");
if (!emcbranch) {
AliError("can't get the branch with the PHOS EMC clusters !");
return;
}
- fEMCRecPoints = new TObjArray(100) ;
emcbranch->SetAddress(&fEMCRecPoints);
+ fEMCRecPoints->Delete();
emcbranch->GetEntry(0);
TBranch *cpvbranch = clustersTree->GetBranch("PHOSCpvRP");
AliError("can't get the branch with the PHOS CPV clusters !");
return;
}
- fCPVRecPoints = new TObjArray(100) ;
cpvbranch->SetAddress(&fCPVRecPoints);
+ fCPVRecPoints->Delete();
cpvbranch->GetEntry(0);
}