From 04d7f2486d628ac94100469b6185270912129fa3 Mon Sep 17 00:00:00 2001 From: hdalsgaa Date: Tue, 24 Aug 2010 13:35:05 +0000 Subject: [PATCH 1/1] Making background map generation more compatible with phojet --- .../AliFMDAnalysisTaskGenerateCorrection.cxx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/PWG2/FORWARD/analysis/AliFMDAnalysisTaskGenerateCorrection.cxx b/PWG2/FORWARD/analysis/AliFMDAnalysisTaskGenerateCorrection.cxx index ab49f67a02f..5910a957737 100644 --- a/PWG2/FORWARD/analysis/AliFMDAnalysisTaskGenerateCorrection.cxx +++ b/PWG2/FORWARD/analysis/AliFMDAnalysisTaskGenerateCorrection.cxx @@ -230,15 +230,16 @@ void AliFMDAnalysisTaskGenerateCorrection::UserExec(Option_t */*option*/) AliGenPythiaEventHeader* pythiaGenHeader = dynamic_cast(genHeader); if (!pythiaGenHeader) { - std::cout<<" no pythia header!"<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"<