do not print the event history to screen when pythia is selected as a generator
authorrbertens <rbertens@cern.ch>
Tue, 30 Sep 2014 12:29:06 +0000 (14:29 +0200)
committerrbertens <rbertens@cern.ch>
Tue, 30 Sep 2014 12:29:18 +0000 (14:29 +0200)
PWGJE/EMCALJetTasks/macros/AddTaskJetEmbeddingFromGen.C

index 8bee89e..59a9f39 100644 (file)
@@ -36,6 +36,8 @@ AliJetEmbeddingFromGenTask* AddTaskJetEmbeddingFromGen(
   //-------------------------------------------------------
 
   AliJetEmbeddingFromGenTask *jetEmb = new AliJetEmbeddingFromGenTask(taskName,drawQA);
+  // if pythia is used as a generator, tell it not to print the event history to the screen
+  if(TString(genGen->IsA()->GetName()).EqualTo("AliGenPythia")) genGen->AliGenPythia::SetEventListRange(0, 0);
   jetEmb->SetGen(genGen);
   jetEmb->SetTracksName(tracksName);
   jetEmb->SetEtaRange(minEta, maxEta);