PWGPP-3, PWGPP-4, ATO-52 - switch to configure the fraction of friend tracks using...
authormivanov <marian.ivanov@cern.ch>
Fri, 13 Jun 2014 04:57:52 +0000 (06:57 +0200)
committermivanov <marian.ivanov@cern.ch>
Fri, 13 Jun 2014 04:57:52 +0000 (06:57 +0200)
PWGPP/AliAnalysisTaskFilteredTree.cxx

index cc338d4..77500af 100644 (file)
@@ -308,6 +308,7 @@ void AliAnalysisTaskFilteredTree::UserExec(Option_t *)
   //if set, use the environment variables to set the downscaling factors
   //AliAnalysisTaskFilteredTree_fLowPtTrackDownscaligF
   //AliAnalysisTaskFilteredTree_fLowPtV0DownscaligF
+  //AliAnalysisTaskFilteredTree_fFriendDownscaling
   TString env;
   env = gSystem->Getenv("AliAnalysisTaskFilteredTree_fLowPtTrackDownscaligF");
   if (!env.IsNull())
@@ -322,6 +323,14 @@ void AliAnalysisTaskFilteredTree::UserExec(Option_t *)
     AliInfo(Form("fLowPtV0DownscaligF=%f",fLowPtTrackDownscaligF));
   }
 
+  env = gSystem->Getenv("AliAnalysisTaskFilteredTree_fFriendDownscaling");
+  if (!env.IsNull())
+  {
+    fFriendDownscaling=env.Atof();
+    AliInfo(Form(" fFriendDownscaling=%f",fFriendDownscaling));
+  }
+
+
   //
   if(fProcessAll) { 
     ProcessAll(fESD,fMC,fESDfriend); // all track stages and MC