]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
changing default trigger selection for MC
authorcnattras <christine.nattrass@cern.ch>
Sat, 8 Feb 2014 21:07:28 +0000 (16:07 -0500)
committercnattras <christine.nattrass@cern.ch>
Sat, 8 Feb 2014 21:07:28 +0000 (16:07 -0500)
PWGLF/totEt/AliAnalysisTaskHadEt.cxx

index 51938ab1d4bda3e4c6d86ad0b400481c0c16ad20..f74425c5aeb075208fae2df6edda83c4b02c2d89 100644 (file)
@@ -62,6 +62,7 @@ ClassImp(AliAnalysisTaskHadEt)
     AliFatal("Input handler needed");
     return;
   }
+  inputHandler->SetNeedField(); 
 
   //pid response object
   fPIDResponse=inputHandler->GetPIDResponse();
@@ -238,7 +239,9 @@ if (!fESDEvent) {
 
   Int_t eventtype =    AliPWG0Helper::kInvalidProcess;
   if(fIsSim && fRecAnalysis->DataSet()!=20100) eventtype = (Int_t) AliPWG0Helper::GetEventProcessType(MCEvent()->Header());
-  fRecAnalysis->AnalyseEvent(fESDEvent,eventtype);
+  //only do the analysis if it meets the offline trigger cut
+  if(kIsOfflineV0AND) fRecAnalysis->AnalyseEvent(fESDEvent,eventtype);
+  //else{cout<<"Not analyzing this event!  Does not meet trigger condition!"<<endl;}
   if(fIsSim){
     AliMCEvent* mcEvent = MCEvent();
     if(!mcEvent){