-new variables
authorjbook <jbook@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Mar 2013 14:32:30 +0000 (14:32 +0000)
committerjbook <jbook@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Mar 2013 14:32:30 +0000 (14:32 +0000)
PWGDQ/dielectron/AliDielectronVarManager.cxx
PWGDQ/dielectron/AliDielectronVarManager.h

index 9ae2af4..56af1b5 100644 (file)
@@ -180,7 +180,8 @@ const char* AliDielectronVarManager::fgkParticleNames[AliDielectronVarManager::k
   {"PseudoProperTimeResolution", "(#tau-#tau^{MC truth})",                         "(#mus)"},
   {"PseudoProperTimePull",   "#frac{(#tau-#tau^{MC truth})}{#tau error}",          ""},
   {"TRDpidEffPair",          "#epsilon^{TRD pair}(PID)",                           ""},
-
+  {"MomAsymDau1",            "#it{p}^{leg1}/#it{p}^{pair}",                        ""},
+  {"MomAsymDau2",            "#it{p}^{leg2}/#it{p}^{pair}",                        ""},
   //
   {"X",                      "x_{prim.vtx}",                                       "(cm)"},
   {"Y",                      "y_{prim.vtx}",                                       "(cm)"},
index 9bccbf6..54b4465 100644 (file)
@@ -233,6 +233,8 @@ public:
     kPseudoProperTimeResolution,     // resolution for pseudo proper decay time (reconstructed - MC truth)
     kPseudoProperTimePull,   // normalizd resolution for pseudo proper time = (reco - MC truth)/dReco
     kTRDpidEffPair,          // TRD pid efficieny from conversion electrons
+    kMomAsymDau1,            // momentum fraction of daughter1
+    kMomAsymDau2,            // momentum fraction of daughter2
     kPairMax,                 //
   // Event specific variables
     kXvPrim=kPairMax,        // prim vertex
@@ -1433,7 +1435,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];
 }
 
 inline void AliDielectronVarManager::FillVarKFParticle(const AliKFParticle *particle, Double_t * const values)