Adding TRD track from friend constainer (Alexander)
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Mar 2008 15:55:22 +0000 (15:55 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Mar 2008 15:55:22 +0000 (15:55 +0000)
PWG1/AliESDRecInfo.cxx
PWG1/AliESDRecInfo.h

index 2e2e1b584bb643b80286890dc96098d957974010..fc7a044aa34542d73a99f538ebfdac8433f77d19 100644 (file)
@@ -41,7 +41,7 @@
 #include "AliESDtrack.h"
 #include "AliTPCseed.h"
 #include "AliITStrackMI.h"
-#include "AliTRDtrack.h"
+#include "AliTRDtrackV1.h"
 #include "AliMCInfo.h"
 #include "AliESDRecInfo.h"
 
@@ -166,8 +166,11 @@ void AliESDRecInfo::SetESDtrack(const AliESDtrack *track){
     while (fTrackF->GetCalibObject(icalib)){
       cobject=fTrackF->GetCalibObject(icalib);
       if (dynamic_cast<AliTPCseed*>(cobject)){
-       if (fTPCtrack) delete fTPCtrack;
-       fTPCtrack = (AliTPCseed*)(dynamic_cast<AliTPCseed*>(cobject))->Clone();
+                               if (fTPCtrack) delete fTPCtrack;
+                               fTPCtrack = (AliTPCseed*)(dynamic_cast<AliTPCseed*>(cobject))->Clone();
+      } else if (dynamic_cast<AliTRDtrackV1*>(cobject)){
+                               if (fTRDtrack) delete fTRDtrack;
+                               fTRDtrack = (AliTRDtrackV1*)(dynamic_cast<AliTRDtrackV1*>(cobject))->Clone();
       }
       icalib++;
     }
index b33bc21a8642746cb33f755734790e6a858d7e35..661dc6dcd3b5d9e8589979d27d83a763a2f13554 100644 (file)
@@ -21,7 +21,7 @@ class AliV0;
 class AliESDkink;
 class AliESDfriendTrack;
 class AliITStrackMI;
-class AliTRDtrack;
+class AliTRDtrackV1;
 class AliTPCParam;
 class AliTPCseed;
 
@@ -50,7 +50,7 @@ public:
   AliESDfriendTrack *GetTrackF() const  { return fTrackF;}
   AliTPCseed *GetTPCtrack() const { return fTPCtrack;}
   AliITStrackMI *GetITStrack() const { return fITStrack;}
-  AliTRDtrack   *GetTRDtrack() const { return fTRDtrack;}
+  AliTRDtrackV1   *GetTRDtrack() const { return fTRDtrack;}
   Int_t      GetStatus(Int_t i) { return fStatus[i];}
 protected:
   //
@@ -90,7 +90,7 @@ private:
   AliESDfriendTrack *fTrackF;      // friend track
   AliTPCseed *fTPCtrack;        // tpc track
   AliITStrackMI *fITStrack;        // its track
-  AliTRDtrack   *fTRDtrack;        // trd track
+  AliTRDtrackV1   *fTRDtrack;        // trd track
   ClassDef(AliESDRecInfo,2)  // container for 
 };