]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/FORWARD/analysis/AliFMDAnalysisTaskGenerateCorrection.cxx
Making background map generation more compatible with phojet
[u/mrichter/AliRoot.git] / PWG2 / FORWARD / analysis / AliFMDAnalysisTaskGenerateCorrection.cxx
index ab49f67a02f80d20b795259f167596f87048a27e..5910a9577374cc131bb9da17f3e6cb19c4f4966d 100644 (file)
@@ -230,15 +230,16 @@ void AliFMDAnalysisTaskGenerateCorrection::UserExec(Option_t */*option*/)
   
   AliGenPythiaEventHeader* pythiaGenHeader = dynamic_cast<AliGenPythiaEventHeader*>(genHeader);
   if (!pythiaGenHeader) {
-    std::cout<<" no pythia header!"<<std::endl;
-    return; 
+    std::cout<<" no pythia header! - NSD selection unusable"<<std::endl;
+    //return; 
   }
-  
-  Int_t pythiaType = pythiaGenHeader->ProcessType();
   Bool_t nsd = kTRUE;
-  if(pythiaType==92 || pythiaType==93)
-    nsd = kFALSE;
-  
+  if(pythiaGenHeader) {
+    Int_t pythiaType = pythiaGenHeader->ProcessType();
+    
+    if(pythiaType==92 || pythiaType==93)
+      nsd = kFALSE;
+  }
   //if(pythiaType==94){
   //  std::cout<<"double diffractive"<<std::endl;
   //  return;