]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Multiple deletion of the same object avoided (Yu.Belikov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 21 Oct 2001 19:06:43 +0000 (19:06 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 21 Oct 2001 19:06:43 +0000 (19:06 +0000)
TPC/AliBarrelReconstruction.C

index 9650ca6012845d4d20386b594e4d5c8c6f4ff414..eab6492a4f746c6b95352b5efc13f6a6d2b271a6 100644 (file)
@@ -268,8 +268,9 @@ Int_t ITSFindClusters(const Char_t *inname, const Char_t *outname, Int_t n) {
        //if not reconstructed ITS branch do reconstruction 
        ITS->MakeBranch("R",0);
        //////////////// Taken from ITSHitsToFastPoints.C ///////////////////////
-       AliITSsimulationFastPoints *sim = new AliITSsimulationFastPoints();
-       for (Int_t i=0;i<3;i++) { ITS->SetSimulationModel(i,sim); }
+       for (Int_t i=0;i<3;i++) { 
+         ITS->SetSimulationModel(i,new AliITSsimulationFastPoints()); 
+       }
        Int_t nsignal=25;
        Int_t size=-1;
        Int_t bgr_ev=Int_t(ev/nsignal);