Propagate SetUseMCchain to the generated LEGO test
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Aug 2012 08:26:11 +0000 (08:26 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Aug 2012 08:26:11 +0000 (08:26 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index 7d5096b..0a79514 100644 (file)
@@ -3912,6 +3912,8 @@ void AliAnalysisAlien::WriteAnalysisMacro()
          out << "   plugin->SetNtestFiles(" << fNtestFiles << ");" << endl;
          if (!fFriendChainName.IsNull()) 
             out << "   plugin->SetFriendChainName(\"" << fFriendChainName << "\");" << endl;
+         if (IsUseMCchain())
+            out << "   plugin->SetUseMCchain();" << endl;
          out << "   mgr->SetGridHandler(plugin);" << endl;
          if (AliAnalysisManager::GetAnalysisManager()) {
             out << "   mgr->SetDebugLevel(" << AliAnalysisManager::GetAnalysisManager()->GetDebugLevel() << ");" << endl;