partially port of current dielectron package, containing bug fixes
authorcbaumann <cbaumann@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Apr 2013 14:56:24 +0000 (14:56 +0000)
committercbaumann <cbaumann@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Apr 2013 14:56:24 +0000 (14:56 +0000)
PWGDQ/dielectron/AliDielectronTrackCuts.h
PWGDQ/dielectron/AliDielectronVarManager.h

index 3cb62fb..a5514d9 100644 (file)
@@ -78,7 +78,7 @@ private:
   Bool_t fRequireTPCRefit;                             // require TPC refit
 
   Int_t fTPCNclRobustCut;                              // TPC Ncl cut, Robust, corresponds to 'crossed Rows' in ESDTrackCuts
-  Int_t fTPCcrossedOverFindable;                                  // TPC Crossed Rows / Findable Clusters Cut, analogous to ESDTrackCuts
+  Double_t fTPCcrossedOverFindable;                               // TPC Crossed Rows / Findable Clusters Cut, analogous to ESDTrackCuts
 
   Int_t fAODFilterBit;                                 // Filter bit for AOD analysis
   Int_t fWaiveITSNcls;                                 // max number of waived ITS clusters after first hit 
index a7d3ed6..da86aac 100644 (file)
@@ -1438,8 +1438,8 @@ inline void AliDielectronVarManager::FillVarDielectronPair(const AliDielectronPa
 
   }//if (mc->HasMC())
 
-  values[AliDielectronVarManager::kMomAsymDau1] = pair->GetFirstDaughter()->P()  / values[AliDielectronVarManager::kP];
-  values[AliDielectronVarManager::kMomAsymDau2] = pair->GetSecondDaughter()->P() / values[AliDielectronVarManager::kP];
+    values[AliDielectronVarManager::kMomAsymDau1] = (values[AliDielectronVarManager::kP] != 0)? pair->GetFirstDaughter()->P()  / values[AliDielectronVarManager::kP]: 0;
+       values[AliDielectronVarManager::kMomAsymDau2] = (values[AliDielectronVarManager::kP] != 0)? pair->GetSecondDaughter()->P()  / values[AliDielectronVarManager::kP]: 0;
 }
 
 inline void AliDielectronVarManager::FillVarKFParticle(const AliKFParticle *particle, Double_t * const values)