Add option to select physical primaries
authorsaiola <salvatore.aiola@cern.ch>
Wed, 9 Jul 2014 15:08:16 +0000 (11:08 -0400)
committersaiola <salvatore.aiola@cern.ch>
Wed, 9 Jul 2014 15:08:16 +0000 (11:08 -0400)
PWG/EMCAL/macros/AddTaskMCTrackSelector.C

index b0d9010..032dd63 100644 (file)
@@ -1,10 +1,9 @@
-// $Id$
-
 AliEmcalMCTrackSelector* AddTaskMCTrackSelector(
-  const char *outname    = "MCParticles",
+  const char *outname    = "mcparticles",
   Bool_t      nk         = kFALSE,
   Bool_t      ch         = kFALSE,
-  Double_t    etamax     = 1
+  Double_t    etamax     = 1,
+  Bool_t      physPrim   = kTRUE
 )
 {  
   // Get the pointer to the existing analysis manager via the static access method.
@@ -34,6 +33,7 @@ AliEmcalMCTrackSelector* AddTaskMCTrackSelector(
   eTask->SetRejectNK(nk);
   eTask->SetChargedMC(ch);
   eTask->SetEtaMax(etamax);
+  eTask->SetOnlyPhysPrim(physPrim);
 
   //-------------------------------------------------------
   // Final settings, pass to manager and set the containers