Vertex replicated on demand.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Sep 2009 14:17:21 +0000 (14:17 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Sep 2009 14:17:21 +0000 (14:17 +0000)
ANALYSIS/AliAnalysisTaskSE.cxx

index 6445749..56c30af 100644 (file)
@@ -186,7 +186,7 @@ void AliAnalysisTaskSE::CreateOutputObjects()
                fgAODTracks->SetName("tracks");
                handler->AddBranch("TClonesArray", &fgAODTracks);
            }    
-           if ((handler->NeedsVerticesBranchReplication()) && !(fgAODVertices))
+           if ((handler->NeedsVerticesBranchReplication() || merging) && !(fgAODVertices))
            {
                if (fDebug > 1) AliInfo("Replicating vertices branch\n");
                fgAODVertices = new TClonesArray("AliAODVertex",500);