]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coding violation fixies (Marian)
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Nov 2007 18:38:31 +0000 (18:38 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Nov 2007 18:38:31 +0000 (18:38 +0000)
TPC/AliTPCLaserTracks.cxx
TPC/AliTPCLaserTracks.h

index 26ebcecd7d6ae446be537efa10035db3d83b05e0..da54ba9688e2051c5943689181a62dcc14e39ef4 100644 (file)
@@ -327,6 +327,9 @@ void AliTPCLaserTracks::WriteTreeDesignData()
 //_______________________________________________________________________
 TPolyLine3D* AliTPCLaserTracks::GetLine()
 {
+  //
+  // Make a polilyne object oout of the points
+  //
    if ( fNpoints ) return new TPolyLine3D(fNpoints,fXarr,fYarr,fZarr);
 
     return 0x0;
@@ -335,7 +338,10 @@ TPolyLine3D* AliTPCLaserTracks::GetLine()
 //_______________________________________________________________________
 TObjArray* AliTPCLaserTracks::GetLines(Char_t* file, Char_t *cuts)
 {
-
+  //
+  // Read the input files with the laser track 
+  // Make a array of polylines for visualization
+  
     TObjArray *array = new TObjArray;
 
     TFile *f = TFile::Open(file,"read");
@@ -446,7 +452,7 @@ AliTPCLaserTracks::~AliTPCLaserTracks()
     //
 
 //    if ( fP ) delete fP;
-    if ( fXarr ) delete fXarr;
-    if ( fYarr ) delete fYarr;
-    if ( fZarr ) delete fZarr;
+    if ( fXarr ) delete [] fXarr;
+    if ( fYarr ) delete [] fYarr;
+    if ( fZarr ) delete [] fZarr;
 }
index fd37b2699c04b310ac179cc0c8dbd6bcba3f6c59..c4f5b387bb4ccd87d15dcc914d827daab7fe7681 100644 (file)
@@ -8,12 +8,11 @@
 ////////////////////////////////////////////////////////////////////////////
 
 class TString;
-//class TPolyLine3D;
+class TPolyLine3D;
 class TObjArray;
 class TGraph;
 class TVector3;
 
-#include <TPolyLine3D.h>
 
 ////////////////////////////////////////////////////////////////////////
 //              Class AliTPCLaserTracks
@@ -27,17 +26,17 @@ public:
     AliTPCLaserTracks(const AliTPCLaserTracks &param); // copy constructor
     AliTPCLaserTracks &operator = (const AliTPCLaserTracks & param);
 
-    Int_t GetId()    {return fId;     }
-    Int_t GetSide()  {return fSide;   }
-    Int_t GetRod()   {return fRod;    }
-    Int_t GetBundle(){return fBundle; }
-    Int_t GetBeam()  {return fBeam;   }
-
-    Double_t GetX()    {return fX;    }
-    Double_t GetY()    {return fY;    }
-    Double_t GetZ()    {return fZ;    }
-    Double_t GetPhi()  {return fPhi;  }
-    Double_t GetTheta(){return fTheta;}
+    Int_t GetId()    const {return fId;     }
+    Int_t GetSide()  const {return fSide;   }
+    Int_t GetRod()   const {return fRod;    }
+    Int_t GetBundle() const {return fBundle; }
+    Int_t GetBeam()  const {return fBeam;   }
+
+    Double_t GetX()  const  {return fX;    }
+    Double_t GetY()  const   {return fY;    }
+    Double_t GetZ()  const  {return fZ;    }
+    Double_t GetPhi() const  {return fPhi;  }
+    Double_t GetTheta() const{return fTheta;}
 
     TPolyLine3D *GetLine();
     Int_t SetPoint(Int_t point, Double_t x, Double_t y, Double_t z);