]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
postponing creation of branches after generation of ESD object
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Oct 2008 14:25:25 +0000 (14:25 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Oct 2008 14:25:25 +0000 (14:25 +0000)
HLT/TPCLib/AliHLTTPCEsdWriterComponent.cxx

index f19c60c71ce924d5a61283e3e0cf36c274728d89..281765b897596ba1067117e40a343f8573e63884 100644 (file)
@@ -462,7 +462,6 @@ int AliHLTTPCEsdWriterComponent::AliConverter::DoEvent(const AliHLTComponentEven
  
     if (pTree) {
       pTree->SetDirectory(0);
-      pESD->WriteToTree(pTree);
     }
 
     if ((iResult=fBase->ProcessBlocks(pTree, pESD, blocks, (int)evtData.fBlockCnt))>0) {
@@ -471,6 +470,7 @@ int AliHLTTPCEsdWriterComponent::AliConverter::DoEvent(const AliHLTComponentEven
        // the esd structure is written to the user info and is
        // needed in te ReadFromTree method to read all objects correctly
        pTree->GetUserInfo()->Add(pESD);
+       pESD->WriteToTree(pTree);
        iResult=PushBack(pTree, kAliHLTDataTypeESDTree|kAliHLTDataOriginTPC, 0);
       } else {
        iResult=PushBack(pESD, kAliHLTDataTypeESDObject|kAliHLTDataOriginTPC, 0);