]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOF.cxx
Several pointers were set to zero in the default constructors to avoid memory managem...
[u/mrichter/AliRoot.git] / TOF / AliTOF.cxx
index 56c34e4618bf80067f03c1a0783e47fd4fb4c645..c76333dae3c6d719597fdfaf1fb8c04096ec07fa 100644 (file)
 
 /*
 $Log$
+Revision 1.29  2001/10/17 14:19:24  hristov
+delete replaced by delete []
+
+Revision 1.28  2001/10/05 12:02:01  vicinanz
+Minor improvements on Merger and SDigitizer
+
+Revision 1.27  2001/10/02 13:03:13  vicinanz
+Minor improvements on the code
+
 Revision 1.26  2001/09/27 10:39:20  vicinanz
 SDigitizer and Merger added
 
@@ -142,7 +151,9 @@ AliTOF::AliTOF()
   fIshunt   = 0;
   fSDigits       = 0 ;
   fDigits        = 0 ;
+  fReconParticles = 0;
   fName="TOF";
+  fMerger = 0;
 /* fp
   CreateTOFFolders();
 */
@@ -259,7 +270,7 @@ void AliTOF::CreateTOFFolders()
   fReTask = new TTask(GetName(), tempo);
   aliceRe->Add(fReTask) ;
 
-  delete tempo ;
+  delete [] tempo ;
  
   // creates the TOF geometry  folder
   geomF->AddFolder("TOF", "Geometry for TOF") ;
@@ -789,9 +800,9 @@ void AliTOF::TOFHits2SDigits()
                tofHit = (AliTOFhit*) TOFhits->UncheckedAt(hit);
                vol[0] = tofHit->GetSector();
                vol[1] = tofHit->GetPlate();
-               vol[2] = tofHit->GetPadx();
-               vol[3] = tofHit->GetPadz();
-               vol[4] = tofHit->GetStrip();
+               vol[2] = tofHit->GetStrip();
+               vol[3] = tofHit->GetPadx();
+               vol[4] = tofHit->GetPadz();
 
                // 95% of efficiency to be inserted here
                // edge effect to be inserted here