]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correction for vertex replication.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 29 Sep 2009 07:31:18 +0000 (07:31 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 29 Sep 2009 07:31:18 +0000 (07:31 +0000)
ANALYSIS/AliAnalysisTaskSE.cxx

index 56c30af01fa2d8f8518f0a0278a78aef3c0e451e..e9df19c5abc88cbe2f16ab8114de802abe7dab6b 100644 (file)
@@ -293,7 +293,7 @@ void AliAnalysisTaskSE::Exec(Option_t* option)
                TClonesArray* tracks = (dynamic_cast<AliAODEvent*>(InputEvent()))->GetTracks();
                new (fgAODTracks) TClonesArray(*tracks);
            }
-           if ((handler->NeedsVerticesBranchReplication()) && (fgAODVertices))
+           if ((handler->NeedsVerticesBranchReplication() || merging) && (fgAODVertices))
            {
                TClonesArray* vertices = (dynamic_cast<AliAODEvent*>(InputEvent()))->GetVertices();
                new (fgAODVertices) TClonesArray(*vertices);