changes from Alexis
authormcosenti <mcosenti@cern.ch>
Thu, 14 Aug 2014 17:44:47 +0000 (14:44 -0300)
committermcosenti <mcosenti@cern.ch>
Thu, 14 Aug 2014 17:44:47 +0000 (14:44 -0300)
PWGGA/CaloTrackCorrelations/macros/AddTaskIsoPhoton.C

index e760b2e..3eb5088 100644 (file)
@@ -18,6 +18,8 @@ AliAnalysisTaskCaloTrackCorrelation *AddTaskIsoPhoton(const Float_t  cone
                                                       const Int_t    disttobad     = 0,
                                                       const Int_t    nlmMax        =  2,
                                                       const Bool_t   qaan          = kFALSE,
+                                                      const Bool_t   primvtx       = kTRUE,
+                                                      const Bool_t   notrackcut    = kTRUE,
                                                       const Int_t    debug         = -1,
                                                       const Bool_t   print         = kFALSE
                                                       )
@@ -297,8 +299,14 @@ AliCaloTrackReader * ConfigureReader(TString inputDataType = "AOD", Bool_t useKi
   reader->SwitchOnEventTriggerAtSE();
   
   reader->SetZvertexCut(10.);               // Open cut
+  if(primvtx)
   reader->SwitchOnPrimaryVertexSelection(); // and besides primary vertex
+  else
+  reader->SwitchOffPrimaryVertexSelection(); 
+  if(notrackcut)
   reader->SwitchOnRejectNoTrackEvents();
+  else
+  reader->SwitchOffRejectNoTrackEvents();
  
   reader->SwitchOffPileUpEventRejection();   // remove pileup
   reader->SwitchOffV0ANDSelection() ;        // and besides v0 AND
@@ -784,3 +792,4 @@ UInt_t SetTriggerMaskFromName(TString trigger)
   }
 }
 
+