]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixing minor bug recognizing diffractive events in simulation
authorcnattras <cnattras@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 27 Apr 2012 19:21:23 +0000 (19:21 +0000)
committercnattras <cnattras@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 27 Apr 2012 19:21:23 +0000 (19:21 +0000)
PWGLF/totEt/AliAnalysisTaskHadEt.cxx

index f34bdb4daf2d17357a5ee7c50d9a4e3c2ffb8f6c..6ddaa32b40ea8700f2ddbb118d8fb257f500a4a7 100644 (file)
@@ -177,6 +177,7 @@ Int_t res = CheckPhysicsSelection(fESDEvent->GetRunNumber()); // Check if the ph
   
 
   Int_t eventtype =    AliPWG0Helper::kInvalidProcess;
+  if(fIsSim && fRecAnalysis->DataSet()!=20100) eventtype = (Int_t) AliPWG0Helper::GetEventProcessType(MCEvent()->Header());
   fRecAnalysis->AnalyseEvent(fESDEvent,eventtype);
   if(fIsSim){
     AliMCEvent* mcEvent = MCEvent();
@@ -184,7 +185,6 @@ Int_t res = CheckPhysicsSelection(fESDEvent->GetRunNumber()); // Check if the ph
       AliFatal("ERROR: MC Event does not exist");
       return;
     }
-    if(fRecAnalysis->DataSet()!=20100) eventtype = (Int_t) AliPWG0Helper::GetEventProcessType(mcEvent->Header());
     if (fESDEvent){
       ((AliAnalysisHadEtMonteCarlo*)fMCAnalysis)->AnalyseEvent((AliVEvent*)mcEvent,(AliVEvent*)fESDEvent);