]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
bug fix and adaptations to run in pPb
authormcosenti <mcosenti@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Sep 2013 17:24:26 +0000 (17:24 +0000)
committermcosenti <mcosenti@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Sep 2013 17:24:26 +0000 (17:24 +0000)
PWGGA/EMCALTasks/AliAnalysisTaskEMCALPhoton.cxx

index 4642ab7d4e823603703a1b9923ee156be219b4e9..ab7f96644e39a2cb279f42b50d5cbb7579a7b6e3 100644 (file)
@@ -281,7 +281,7 @@ void AliAnalysisTaskEMCALPhoton::UserExec(Option_t *)
 {
   // User exec, called once per event.
 
-  Bool_t isSelected = 0;
+  Bool_t isSelected = kTRUE;
   if(fPeriod.Contains("11")){
     if(fPeriod.Contains("11a"))
       isSelected =  (((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected() & AliVEvent::kEMC1);
@@ -468,7 +468,7 @@ void AliAnalysisTaskEMCALPhoton::UserExec(Option_t *)
   if(fIsMC)
     GetMcParts();
 
-  if(this->fDebug)
+  if(this->fDebug && fIsMC)
     printf("fMyMcParts nentries=%d",fMyMcParts->GetEntries());
   
   fTree->Fill();