]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fixing the dEdx information for TM clusters
authormcosenti <mcosenti@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 May 2013 17:51:34 +0000 (17:51 +0000)
committermcosenti <mcosenti@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 May 2013 17:51:34 +0000 (17:51 +0000)
PWGGA/EMCALTasks/AliAnalysisTaskEMCALPhoton.cxx
PWGGA/EMCALTasks/AliAnalysisTaskEMCALPhoton.h

index 940a4df1c8c6aaa4a918882c1b2e3fee4a417054..b39129e8d04e3f136655fd70c2f2724f17208934 100644 (file)
@@ -589,19 +589,15 @@ void AliAnalysisTaskEMCALPhoton::FillMyClusters()
       continue;
     }
     AliESDtrack* track = static_cast<AliESDtrack*>(fESD->GetTrack(matchIndex));
-    if(!track){
-      myclus->fTrEp = -1;
+    if(!track)
       continue;
-    }
-    if(!fPrTrCuts){
-      myclus->fTrEp = -1;
+    if(!fPrTrCuts)
       continue;
-    }
-    if(!fPrTrCuts->IsSelected(track)){
-      myclus->fTrEp = -1;
+    if(!fPrTrCuts->IsSelected(track))
       continue;
-    }
+    
     myclus->fTrEp = clus->E()/track->P();
+    myclus->fTrDedx = track->GetTPCsignal();
   }
   if(fDebug)
     printf("::FillMyClusters() returning...\n\n");
index 7222e043b7f97c739809d9880880e275c7f39fc0..204946d00d0ed1322c706dd6c5ff533f79a3ee22 100644 (file)
@@ -181,7 +181,7 @@ class AliPhotonClusterObj : public TObject
 {\r
   public: AliPhotonClusterObj() : \r
   TObject(), fE(0), fEt(0), fR(0), fEta(0), fPhi(0), fN(0),fEmax(0),fTmax(0), fIdmax(0), fEcross(0),fDisp(-1), \r
-        fM20(-1), fM02(-1),fTrDEta(0), fTrDPhi(0), fTrEp(0), fTrDedx(0), fTrIso01(0), fTrIso02(0), fTrIso03(0), fTrIso04(0), \r
+        fM20(-1), fM02(-1),fTrDEta(0), fTrDPhi(0), fTrEp(-1), fTrDedx(-1), fTrIso01(0), fTrIso02(0), fTrIso03(0), fTrIso04(0), \r
         fTrPhiBand01(0), fTrPhiBand02(0), fTrPhiBand03(0), fTrPhiBand04(0), fCellsAbsId(""),fMcLabel(-1)\r
         {;}\r
  public:\r