]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Inclusion of the index of associated EMCAL cluster
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Sep 2006 09:03:06 +0000 (09:03 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Sep 2006 09:03:06 +0000 (09:03 +0000)
STEER/AliESDtrack.cxx
STEER/AliESDtrack.h

index ccc7cfbe40ce2048d79ffc4d5249ae4a5e9134ea..0c74baf2becc98b0d372d7b6831092cf724c98b6 100644 (file)
@@ -105,6 +105,7 @@ AliESDtrack::AliESDtrack() :
   fRICHdy(-1),
   fRICHmipX(-1),
   fRICHmipY(-1),
+  fEMCALindex(kEMCALNoMatch),
   fPoints(0),
   fFriendTrack(new AliESDfriendTrack())
 {
@@ -183,6 +184,7 @@ AliESDtrack::AliESDtrack(const AliESDtrack& track):
   fRICHdy(track.fRICHdy),
   fRICHmipX(track.fRICHmipX),
   fRICHmipY(track.fRICHmipY),
+  fEMCALindex(track.fEMCALindex),
   fPoints(0),
   fFriendTrack(0)
 {
@@ -333,6 +335,7 @@ void AliESDtrack::MakeMiniESDtrack(){
   fRICHdy = 0;      
   fRICHmipX = 0;
   fRICHmipY = 0;
+  fEMCALindex = kEMCALNoMatch;
 
   delete fFriendTrack; fFriendTrack = 0;
   delete fPoints; fPoints = 0;
index b6812c6bd66962c5cb7233df3ef7993dc20f8b0f..29f243b9a9e1694535a847e1f91c69eefd7893b6 100644 (file)
@@ -227,6 +227,10 @@ public:
     x=fRICHmipX; y=fRICHmipY;
   }
   Bool_t IsRICH()  const {return fFlags&kRICHpid;}
+  
+  Int_t GetEMCALcluster() {return fEMCALindex;}
+  void SetEMCALcluster(Int_t index) {fEMCALindex=index;}
+  Bool_t IsEMCAL() const {return fFlags&kEMCALmatch;}
 
   void   SetTrackPointArray(AliTrackPointArray *points);
   const AliTrackPointArray *GetTrackPointArray() const; 
@@ -248,6 +252,7 @@ public:
     kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDpid=0x0800,
     kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000,
     kRICHpid=0x20000,
+    kEMCALmatch=0x40000,
     kTRDbackup=0x80000,
     kTRDStop=0x20000000,
     kESDpid=0x40000000,
@@ -255,7 +260,8 @@ public:
   }; 
   enum {
     kNPlane = 6,
-    kNSlice = 3
+    kNSlice = 3,
+    kEMCALNoMatch = -999999999
   };
 protected:
   
@@ -337,6 +343,9 @@ protected:
   Float_t fRICHdy;         // y of the track impact minus y of the MIP
   Float_t fRICHmipX;       // x of the MIP in LORS
   Float_t fRICHmipY;       // y of the MIP in LORS
+  
+  // EMCAL related track information
+  Int_t fEMCALindex;       // index of associated EMCAL cluster (AliESDCaloCluster)
 
   AliTrackPointArray *fPoints;// Array of track space points in the global frame
 
@@ -346,7 +355,7 @@ protected:
 
   AliESDtrack & operator=(const AliESDtrack & ) {return *this;}
 
-  ClassDef(AliESDtrack,30)  //ESDtrack 
+  ClassDef(AliESDtrack,31)  //ESDtrack 
 };
 
 #endif