]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 8b99e60943f49c9932f89b28c3d3d798b9fa6c76..883257d7672d8ac33152946f2728ea38989b57bf 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");