Added protection in case standard AOD event is not created.
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Jan 2010 08:37:32 +0000 (08:37 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Jan 2010 08:37:32 +0000 (08:37 +0000)
ANALYSIS/AliAnalysisTaskSE.cxx

index 8b99e60..883257d 100644 (file)
@@ -189,7 +189,7 @@ void AliAnalysisTaskSE::CreateOutputObjects()
     if (handler) {
        fOutputAOD   = handler->GetAOD();
        fTreeA = handler->GetTree();
-       if (!(handler->IsStandard())) {
+       if (fOutputAOD && !(handler->IsStandard())) {
            if ((handler->NeedsHeaderReplication()) && !(fgAODHeader)) 
                {
                 if (fDebug > 1) AliInfo("Replicating header");