]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCLaserTrack.h
Fixes for Coverity defects
[u/mrichter/AliRoot.git] / TPC / AliTPCLaserTrack.h
index 2e1d471dcc198cbc8876c5bee5c197d92c5ea394..50e404ba669aa19d4cb03f3032094adff23de18b 100644 (file)
@@ -1,11 +1,17 @@
-#ifndef ALITPCLASERTRACK
-#define ALITPCLASERTRACK
+#ifndef ALITPCLASERTRACK_H
+#define ALITPCLASERTRACK_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
+////////////////////////////////////////////////////////////////////////////
+//
+// Surveyed Laser Track positions
+//
+////////////////////////////////////////////////////////////////////////////
 
 #include <TString.h>
 
 #include "AliExternalTrackParam.h"
+#include "TVectorD.h"
 
 class TObjArray;
 
@@ -14,6 +20,7 @@ class TObjArray;
 class AliTPCLaserTrack : public AliExternalTrackParam {
 public:
   AliTPCLaserTrack();
+  ~AliTPCLaserTrack();
   AliTPCLaserTrack(const AliTPCLaserTrack &ltr);
   AliTPCLaserTrack(const Int_t id, const Int_t side, const Int_t rod,
                    const Int_t bundle, const Int_t beam,
@@ -22,7 +29,7 @@ public:
                    const Double_t covar[15], const Float_t rayLength=0);
   
   AliTPCLaserTrack& operator = (const  AliTPCLaserTrack &source);
-  
+  void UpdatePoints();   // update track points
   static void LoadTracks();
   static TObjArray* GetTracks() {return fgArrLaserTracks;}
   
@@ -51,6 +58,15 @@ public:
   void SetBeam  (Int_t beam)  {fBeam   = beam;  }
   void SetRayLength (Float_t len) {fRayLength = len;}
   
+  const TVectorD* GetVecSec() const { return fVecSec; }
+  const TVectorD* GetVecP2()  const { return fVecP2;  }
+  const TVectorD* GetVecPhi() const { return fVecPhi; }
+  const TVectorD* GetVecGX()  const { return fVecGX;  }
+  const TVectorD* GetVecGY()  const { return fVecGY;  }
+  const TVectorD* GetVecGZ()  const { return fVecGZ;  }
+  const TVectorD* GetVecLX()  const { return fVecLX;  }
+  const TVectorD* GetVecLY()  const { return fVecLY;  }
+  const TVectorD* GetVecLZ()  const { return fVecLZ;  }
   
 private:
   Int_t fId;              //Laser beam id            (0-335)
@@ -62,8 +78,17 @@ private:
   Float_t fRayLength;     //distance from the last common point of the laser Rays
                           //(Splitter box on the A-Side at the bottom of the TPC)
                           //to each mirror [cm](needed for an exact drift velocity estimation)
-  
-  
+public:
+  TVectorD *fVecSec;      //                - sector numbers
+  TVectorD *fVecP2;       //                - P2  
+  TVectorD *fVecPhi;       //               - global phi
+  TVectorD *fVecGX;       // points vectors - globalX
+  TVectorD *fVecGY;       // points vectors - globalY
+  TVectorD *fVecGZ;       // points vectors - globalZ
+  TVectorD *fVecLX;       // points vectors - localX
+  TVectorD *fVecLY;       // points vectors - localY
+  TVectorD *fVecLZ;       // points vectors - localZ
+private:  
   static TObjArray* fgArrLaserTracks; //! Array of all Laser Tracks,
                                         //  keeps instances of this class;
   
@@ -74,7 +99,7 @@ private:
   
 //    static const char* fgkDataFileName = "$ALIC_ROOT/TPC/Calib/LaserTracks.root";  //Path to the Data File
   
-  ClassDef(AliTPCLaserTrack,2)        // Laser Track positions and track identification
+  ClassDef(AliTPCLaserTrack,3)        // Laser Track positions and track identification
 };
 
 #endif