modified AddTask_dNdPtpPb.C to be able to set trigger and cut selection from outside
authorpluettig <philipp.luettig@cern.ch>
Wed, 23 Jul 2014 15:46:27 +0000 (17:46 +0200)
committerpluettig <philipp.luettig@cern.ch>
Wed, 23 Jul 2014 15:46:27 +0000 (17:46 +0200)
PWGLF/SPECTRA/ChargedHadrons/dNdPt/macros/AddTask_dNdPtpPb.C

index 21e599c..959b58c 100644 (file)
@@ -1,4 +1,4 @@
-void AddTask_dNdPtpPb()
+void AddTask_dNdPtpPb(UInt_t uTriggerMask = AliVEvent::kINT7, Int_t iCutMode = 2014 )
 {
 /*
 CheckLoadLibrary("libPWG0base");
@@ -44,7 +44,7 @@ CheckLoadLibrary("libPWG0selectors");
   //
   // Create standard esd track cuts
   //
-  Int_t cutMode = 2014;
+  Int_t cutMode = iCutMode;
 
   gROOT->LoadMacro("$ALICE_ROOT/PWGLF/SPECTRA/ChargedHadrons/dNdPt/macros/CreatedNdPtTrackCuts.C");
   //gROOT->LoadMacro("./CreatedNdPtTrackCuts.C");
@@ -66,7 +66,7 @@ CheckLoadLibrary("libPWG0selectors");
   task->SetUseMCInfo(hasMC);
 
   // trigger  
-  task->SelectCollisionCandidates(AliVEvent::kINT7); 
+  task->SelectCollisionCandidates(uTriggerMask); 
 
   //
   // set analysis options from the Helper here !!!
@@ -92,7 +92,7 @@ CheckLoadLibrary("libPWG0selectors");
   
   //fdNdPtAnalysis->SetTrigger(trigger);
  // fdNdPtAnalysis->SetTriggerMask(AliVEvent::kCINT5);
-  fdNdPtAnalysis->SetTriggerMask(AliVEvent::kINT7);
+  fdNdPtAnalysis->SetTriggerMask(uTriggerMask);
   //fdNdPtAnalysis->SetTriggerMask(AliVEvent::kEMC1);  
   if(hasMC) 
   {