]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Making background map generation more compatible with phojet
authorhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Aug 2010 13:35:05 +0000 (13:35 +0000)
committerhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Aug 2010 13:35:05 +0000 (13:35 +0000)
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;