add the possibility of changing the downscaling factors via shell environment (for...
authormkrzewic <mkrzewic@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Aug 2013 15:41:03 +0000 (15:41 +0000)
committermkrzewic <mkrzewic@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Aug 2013 15:41:03 +0000 (15:41 +0000)
PWGPP/AliAnalysisTaskFilteredTree.cxx

index aa9a8d4..40f90e7 100644 (file)
@@ -14,6 +14,7 @@
 **************************************************************************/\r
 \r
 #include "iostream"\r
+#include "TSystem.h"\r
 \r
 #include <TPDGCode.h>\r
 #include <TDatabasePDG.h>\r
@@ -296,6 +297,23 @@ void AliAnalysisTaskFilteredTree::UserExec(Option_t *)
     }\r
   }\r
 \r
+  //if set, use the environment variables to set the downscaling factors\r
+  //AliAnalysisTaskFilteredTree_fLowPtTrackDownscaligF\r
+  //AliAnalysisTaskFilteredTree_fLowPtV0DownscaligF\r
+  TString env;\r
+  env = gSystem->Getenv("AliAnalysisTaskFilteredTree_fLowPtTrackDownscaligF");\r
+  if (!env.IsNull())\r
+  {\r
+    fLowPtTrackDownscaligF=env.Atof();\r
+    AliInfo(Form("fLowPtTrackDownscaligF=%f",fLowPtTrackDownscaligF));\r
+  }\r
+  env = gSystem->Getenv("AliAnalysisTaskFilteredTree_fLowPtV0DownscaligF");\r
+  if (!env.IsNull())\r
+  {\r
+    fLowPtV0DownscaligF=env.Atof();\r
+    AliInfo(Form("fLowPtV0DownscaligF=%f",fLowPtTrackDownscaligF));\r
+  }\r
+\r
   //\r
   if(fProcessAll) { \r
     ProcessAll(fESD,fMC,fESDfriend); // all track stages and MC\r