]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFTrackV2.h
updating of the TOF volume numbering (ALICE-INT-2003-038)
[u/mrichter/AliRoot.git] / TOF / AliTOFTrackV2.h
index caec5f0e92e8e89f28a37b02c426ff301a7b7d41..d092eaabd495846a056b01ba3078cc093cc3a661 100644 (file)
@@ -22,6 +22,7 @@ class AliTOFTrackV2 : public TObject{
   AliTOFTrackV2(Int_t trackLabel, Int_t matchingStatus, Float_t tpcMom, Float_t dEdX, Float_t* tpcXYZ, Float_t* tpcPtPz, Float_t* trdXYZ, Float_t* trdPxPyPz);
   ~AliTOFTrackV2(){};
 
+  void AddRecLength(Float_t deltaRecLength)              {fRecTrackLength+=deltaRecLength;}
   void UpdateTrack(Int_t tofDigitTrackLabel, Int_t matching, Float_t tof);
   void UpdateTrack(Int_t pdgCode, Float_t trackLength);
 
@@ -43,9 +44,11 @@ class AliTOFTrackV2 : public TObject{
   void SetPzTRD(Float_t pzTRD)                           {fPzTRD=pzTRD;}
   void SetMatchingStatus(Int_t matching)                 {fMatchingStatus=matching;}
   void SetLength(Float_t length)                         {fLength=length;}
+  void SetRecLength(Float_t rlength)                     {fRecTrackLength=rlength;}
   void SetTof(Float_t tof)                               {fTof=tof;}
   void SetMassTOF(Float_t massTOF)                       {fMassTOF=massTOF;}
-  
+  void SetVertex(Float_t xvtx,Float_t yvtx,Float_t zvtx) {fXRecVtx=xvtx; fYRecVtx=yvtx; fZRecVtx=zvtx;}
+  void SetMomVertex(Float_t pxvtx,Float_t pyvtx,Float_t pzvtx) {fPxRecVtx=pxvtx; fPyRecVtx=pyvtx; fPzRecVtx=pzvtx;}
 
   Int_t    GetTrackLabel()         const {return fTrackLabel;}
   Int_t    GetTOFDigitTrackLabel() const {return fTOFDigitTrackLabel;}
@@ -65,9 +68,16 @@ class AliTOFTrackV2 : public TObject{
   Float_t  GetPzTRD()              const {return fPzTRD;}
   Int_t    GetMatchingStatus()     const {return fMatchingStatus;}
   Float_t  GetLength()             const {return fLength;}
+  Float_t  GetRecLength()          const {return fRecTrackLength;}
   Float_t  GetTof()                const {return fTof;}
   Float_t  GetMassTOF()            const {return fMassTOF;}
-  
+  Float_t  GetXVtx()               const {return fXRecVtx;}
+  Float_t  GetYVtx()               const {return fYRecVtx;}
+  Float_t  GetZVtx()               const {return fZRecVtx;}
+  Float_t  GetPxVtx()              const {return fPxRecVtx;}
+  Float_t  GetPyVtx()              const {return fPyRecVtx;}
+  Float_t  GetPzVtx()              const {return fPzRecVtx;}
+
  private:
   Int_t    fTrackLabel;         // track label (rt->GetLabel()) as coming from TPC reconstruction
   Int_t    fTOFDigitTrackLabel; // track label stored into the TOF digit
@@ -89,10 +99,19 @@ class AliTOFTrackV2 : public TObject{
   Int_t    fMatchingStatus; // matching status (not only for MC events)
                             // see details in the implementation file
   Float_t  fLength  ; // Track length [cm] from the origin to the TOF [cm]
+                      // GEANT track length to be compared with that coming from
+                      // reconstruction in order to evaluate the resolution
   Float_t  fTof;      // Time [ns] determined by the TOF digit assigned to the track
   Float_t  fMassTOF;  // Mass [GeV] determined by fTOF,fLength, and reconstructed momentum in TPC
+  Float_t  fXRecVtx;  // x component of the reconstructed vertex position MRF
+  Float_t  fYRecVtx;  // y component of the reconstructed vertex position MRF
+  Float_t  fZRecVtx;  // z component of the reconstructed vertex position MRF
+  Float_t  fPxRecVtx;  // x component of the reconstructed vertex momentum MRF
+  Float_t  fPyRecVtx;  // y component of the reconstructed vertex momentum MRF
+  Float_t  fPzRecVtx;  // z component of the reconstructed vertex momentum MRF
+  Float_t  fRecTrackLength; // reconstructed track length (coarse)
 
-  ClassDef(AliTOFTrackV2,1)   // TOF Reconstructed track
+  ClassDef(AliTOFTrackV2,2)   // TOF Reconstructed track
 };
 
 #endif /* ALITOFTRACKV2_H */