From Jens: Allow for custom header replicator in AOD
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 29 Jan 2013 15:05:22 +0000 (15:05 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 29 Jan 2013 15:05:22 +0000 (15:05 +0000)
STEER/AOD/AliAODExtension.cxx

index 9707104..49ee0f8 100644 (file)
@@ -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;