fEMCRecPoints(NULL),
fCPVRecPoints(NULL),
fTrackSegments(NULL),
- fRecParticles(NULL)
+ fRecParticles(NULL),
+ fEnergyCorrectionOn(kTRUE)
{
// ctor
}
fEMCRecPoints(NULL),
fCPVRecPoints(NULL),
fTrackSegments(NULL),
- fRecParticles(NULL)
+ fRecParticles(NULL),
+ fEnergyCorrectionOn(kTRUE)
{
// ctor
+ fEMCRecPoints = new TObjArray(100) ;
+ fCPVRecPoints = new TObjArray(100) ;
fRecParticles = new TClonesArray("AliPHOSRecParticle",100) ;
fRecParticles->SetName("RECPARTICLES");
fEMCRecPoints(pid.fEMCRecPoints),
fCPVRecPoints(pid.fCPVRecPoints),
fTrackSegments(pid.fTrackSegments),
- fRecParticles(pid.fRecParticles)
+ fRecParticles(pid.fRecParticles),
+ fEnergyCorrectionOn(pid.fEnergyCorrectionOn)
{
// Copy constructor
}
fCPVRecPoints->Delete();
delete fCPVRecPoints;
}
+ if (fRecParticles) {
+ fRecParticles->Delete();
+ delete fRecParticles;
+ }
}
//____________________________________________________________________________
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);
}