]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGUD/DIFFRACTIVE/xsAndTwoProng/AliAnalysisTaskCDskimESD.cxx
bug fixed needed in order to be able to run on normal data again
[u/mrichter/AliRoot.git] / PWGUD / DIFFRACTIVE / xsAndTwoProng / AliAnalysisTaskCDskimESD.cxx
index 06d4c102eeb62e8c0916143a1acfabc29882d633..6b9c76921c3a12c321e5c6efcbe66e5cb53b8688 100644 (file)
@@ -236,8 +236,8 @@ void AliAnalysisTaskCDskimESD::UserExec(Option_t */*opt*/)
        //}
 
        AliESDEvent *esdin = dynamic_cast<AliESDEvent*>(InputEvent());
-       if (!esdin || !fInputTree || !fInputTreeCopy || !fOutputTree || !fTEinput
-           || !fTE) {
+       if (!esdin || !fInputTree || !fInputTreeCopy || !fOutputTree ||
+           (fDoMC && (!fTEinput || !fTE))) {
                // check whether everything is ready
                PostData(1, fOutputTree);
                PostData(2, fStatsFlow);