]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDTrdTrack.h
Implemented Copy() function for all esd objects to allow for assignment of AliESDEven...
[u/mrichter/AliRoot.git] / STEER / AliESDTrdTrack.h
index 248f85fe1754716754f4f57bc133c0c5c782ebb6..23c7e0844ae711aab2502b7a31b2c4e6e5d96d79 100644 (file)
@@ -1,9 +1,9 @@
 #ifndef ALIESDTRDTRACK_H
 #define ALIESDTRDTRACK_H
 
-//
 //  Tracks from the TRD Global Tracking Unit (GTU, trigger)
-//  
+//  Stored in the ESD object
+//  Author: B.Vulpescu
 
 #include "TObject.h"
 
@@ -15,20 +15,20 @@ class AliESDTrdTrack : public TObject {
   virtual ~AliESDTrdTrack(){};
   AliESDTrdTrack(const AliESDTrdTrack& track);
   AliESDTrdTrack& operator=(const AliESDTrdTrack& track);
+  virtual void Copy(TObject &obj) const;
 
-  Float_t GetYproj()     { return fYproj; };
-  Float_t GetZproj()     { return fZproj; };
-  Float_t GetSlope()     { return fSlope; };
-  Int_t   GetDetector()  { return fDetector; };
-  Int_t   GetTracklets() { return fNtracklets; };
-  Int_t   GetPlanes()    { return fNplanes; };
-  Int_t   GetClusters()  { return fNclusters; };
-  Float_t GetPt()        { return fPt; };
-  Float_t GetPhi()       { return fPhi; };
-  Float_t GetEta()       { return fEta; };
-  Int_t   GetLabel()     { return fLabel; };
-  Float_t GetPID()       { return fPID; };
-  Bool_t  IsElectron()   { return fIsElectron; }
+  Double_t GetYproj()     const { return fYproj; };
+  Double_t GetZproj()     const { return fZproj; };
+  Double_t GetSlope()     const { return fSlope; };
+  Char_t   GetDetector()  const { return fDetector; };
+  Short_t   GetTracklets() const { return fNtracklets; };
+  Char_t   GetPlanes()    const { return fNplanes; };
+  Short_t   GetClusters()  const { return fNclusters; };
+  Double_t GetPt()        const { return fPt; };
+  Double_t GetPhi()       const { return fPhi; };
+  Double_t GetEta()       const { return fEta; };
+  Int_t   GetLabel()     const { return fLabel; };
+  Double_t GetPID()       const { return fPID; };
 
   void SetYproj(Float_t val)     { fYproj = val; };
   void SetZproj(Float_t val)     { fZproj = val; };
@@ -42,25 +42,25 @@ class AliESDTrdTrack : public TObject {
   void SetEta(Float_t val)       { fEta = val; };
   void SetLabel(Int_t val)       { fLabel = val; };
   void SetPID(Float_t val)       { fPID = val; };
-  void SetIsElectron(Bool_t val) { fIsElectron = val; };
 
  protected:
 
-  Float_t fYproj;                                   // Average values calculated
-  Float_t fZproj;                                   // from the tracklets 
-  Float_t fSlope;                                   //
-  Int_t   fDetector;                                // First detector in the module
-  Int_t   fNtracklets;                              // Number of tracklets
-  Int_t   fNplanes;                                 // Number of TRD planes
-  Int_t   fNclusters;                               // Total number of clusters
-  Float_t fPt;                                      // Transverse momentum
-  Float_t fPhi;                                     // Phi angle at the vertex
-  Float_t fEta;                                     // Eta at the vertex
-  Int_t   fLabel;                                   // Track label
-  Float_t fPID;                                     // PID electron likelihood
-  Bool_t  fIsElectron;                              // Electron flag
+  Double32_t fYproj;                                   // Average values calculated
+  Double32_t fZproj;                                   // from the tracklets 
+  Double32_t fSlope;                                   // slope of the tracklet
+  Double32_t fPt;                                      // Transverse momentum
+  Double32_t fPhi;                                     //  Phi angle at the vertex
+  Double32_t fEta;                                     // Eta at the vertex
+  Double32_t fPID;                                     //[0.,1.,8] PID electron likelihood
 
-  ClassDef(AliESDTrdTrack,1)
+  Int_t fLabel;                                        // Track label
+  Short_t   fNtracklets;                               // Number of tracklets
+  Short_t   fNclusters;                                // Total number of clusters
+  Char_t   fNplanes;                                  // Number of TRD planes
+  Char_t   fDetector;                                 // First detector in the module
+
+
+  ClassDef(AliESDTrdTrack,2)
 
 };