]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSTrackSegment.h
Inheritance from TObject. Automatic streamers.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegment.h
index f7e400140dc7ce089125e94e6bcb63cb0aef7f4f..2f6e55c566660c6747d3b02ff06f842de30b461c 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ALIPHOSSUBTRACK_H
-#define ALIPHOSSUBTRACK_H
+#ifndef ALIPHOSTRACKSEGMENT_H
+#define ALIPHOSTRACKSEGMENT_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
 // --- ROOT system ---
 
 #include "TObject.h"
-#include "TVector3.h"
 
 // --- Standard library ---
 
 // --- AliRoot header files ---
 
 #include "AliPHOSEmcRecPoint.h"
-#include "AliPHOSPpsdRecPoint.h"
-
-typedef TClonesArray TrackSegmentsList ; 
+#include "AliPHOSRecPoint.h"
 
 class AliPHOSTrackSegment : public TObject  {
 
 public:
 
-  AliPHOSTrackSegment() {}       // ctor 
-  AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint , AliPHOSPpsdRecPoint * PpsdUp, 
-                     AliPHOSPpsdRecPoint * PpsdLow  ) ; // ctor
+  AliPHOSTrackSegment() {} 
+  AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint , 
+                     AliPHOSRecPoint * PpsdUp) ;
   AliPHOSTrackSegment(const AliPHOSTrackSegment & ts) ;  // ctor                   
-  virtual ~AliPHOSTrackSegment() {} // dtor 
+  virtual ~AliPHOSTrackSegment() {  } 
 
   void Copy(TObject & obj) ;  
-  virtual Int_t  DistancetoPrimitive(Int_t px, Int_t py);
-  virtual void   Draw(Option_t * option="") ;
-  virtual void   ExecuteEvent(Int_t event, Int_t px, Int_t py);
-  Float_t GetEnergy() ;   // Returns energy in EMC
-  
-  Float_t GetDistanceInPHOSPlane(void) ;   // Computes in PHOS plane the relative position between EMC and PPSD clusters 
-  virtual Int_t  GetPHOSMod(void) ; 
-  TVector3 GetMomentumDirection() ;        // Returns the momentum direction
-  void    GetPosition( TVector3 & pos ) ;  // Returns positions of hit
-  Int_t * GetPrimariesEmc(Int_t & number) ;
-  Int_t * GetPrimariesPpsdLow(Int_t & number) ;
-  Int_t * GetPrimariesPpsdUp(Int_t & number) ;
-  AliPHOSEmcRecPoint *   GetEmcRecPoint() const ;  
-  Int_t                  GetEmcRecPointIndex() {return fEmcRecPoint; }
-  Int_t   GetIndexInList() const { return fIndexInList ; } 
-  AliPHOSPpsdRecPoint *  GetPpsdLowRecPoint() const ;
-  Int_t                  GetPpsdLowRecPointIndex() {return fPpsdLowRecPoint ; }
-  AliPHOSPpsdRecPoint *  GetPpsdUpRecPoint() const ; 
-  Int_t                  GetPpsdUpRecPointIndex() {return fPpsdUpRecPoint ; }
-  virtual void  Paint(Option_t * option="");
-  void    Print() ;
-  void    SetIndexInList(Int_t val) { fIndexInList = val ; } 
+
+  Int_t   GetIndexInList() const {  return fIndexInList ;   } 
+  Int_t   GetEmcIndex()    const {  return fEmcRecPoint ;   }
+  Int_t   GetCpvIndex()    const {  return fPpsdUpRecPoint; }
+
+  virtual void  Print(Option_t * option) const;
+  void    SetIndexInList(Int_t val){ fIndexInList = val ;     } 
+  void    SetCpvRecPoint(AliPHOSRecPoint * PpsdUpRecPoint ); //sets PPSD up Rec Point
+
+  typedef TClonesArray TrackSegmentsList ; 
  
-  
-private:
+ private:
   
   Int_t fEmcRecPoint ;     // The EMC reconstructed point index in array stored in TreeR/PHOSEmcRP
   Int_t fIndexInList ;     // the index of this TrackSegment in the list stored in TreeR (to be set by analysis)
-  Int_t fPpsdLowRecPoint ; // The PPSD reconstructed point from the lower layer index in array stored in TreeR/PHOSPpsdRP
-  Int_t fPpsdUpRecPoint ;  // The PPSD reconstructed point from the upper layer index in array stored in TreeR/PHOSPpsdRP
-
+  Int_t fPpsdUpRecPoint ;  // The CPV reconstructed point from the upper layer index in array stored in TreeR/PHOSPpsdRP
+  
   ClassDef(AliPHOSTrackSegment,1)  // Track segment in PHOS
 
 };
 
-#endif // AliPHOSSUBTRACK_H
+#endif // ALIPHOSTRACKSEGMENT_H