From: agheata Date: Tue, 29 Jan 2013 15:05:22 +0000 (+0000) Subject: From Jens: Allow for custom header replicator in AOD X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=97aa6e1755e989c03e6880d7f3d5895248fc0f0d From Jens: Allow for custom header replicator in AOD --- diff --git a/STEER/AOD/AliAODExtension.cxx b/STEER/AOD/AliAODExtension.cxx index 9707104374f..49ee0f8e91e 100644 --- a/STEER/AOD/AliAODExtension.cxx +++ b/STEER/AOD/AliAODExtension.cxx @@ -207,7 +207,9 @@ Bool_t AliAODExtension::Init(Option_t *option) TString test(o->ClassName()); test.ToUpper(); - if (test.BeginsWith("ALIAODHEADER")) + // check if there is a replicator for the header + Bool_t headerHasReplicator = fRepFiMap && (fRepFiMap->FindObject(o->GetName())!=0x0); + if (test.BeginsWith("ALIAODHEADER") && !headerHasReplicator) { // do not allow to drop header branch mustKeep=kTRUE;