[AliESDEvent esd1;
AliESDEvent esd2;
esd2=esd1;])],
- [AC_DEFINE(HAVE_ESD_COPY)
- have_esd_copy=yes],
- [])
+ [have_esd_copy=yes],
+ [AC_DEFINE(HAVE_NOT_ESD_COPY)])
AC_MSG_CHECKING(for ESD assignment operator)
AC_MSG_RESULT([$have_esd_copy])
fESDs.push_back(newEntry);
}
if (tgtesd) {
-#ifdef HAVE_ESD_COPY
+#ifndef HAVE_NOT_ESD_COPY
*tgtesd=*pESD;
-#else
- TTree* pTmpTree=AliHLTEsdManager::EmbedIntoTree(pESD);
- if (pTmpTree) {
- tgtesd->ReadFromTree(pTmpTree);
- pTmpTree->GetEvent(0);
- pTmpTree->GetUserInfo()->Clear();
- delete pTmpTree;
- HLTDebug("data block %s written to target ESD", AliHLTComponent::DataType2Text(dt).c_str());
- } else {
- iResult=-ENOMEM;
+#else //HAVE_NOT_ESD_COPY
+ static bool warningPrinted=false;
+ if (!warningPrinted) {
+ HLTWarning("old version of AliESDEvent does not provide assignment operator, skip merging to global hltEsd");
}
-#endif
+ warningPrinted=true;
+#endif //HAVE_NOT_ESD_COPY
} else {
entry=Find(dt);
if (entry) {
{
// see header file for class documentation
int iResult=0;
-#ifdef HAVE_ESD_COPY
+#ifndef HAVE_NOT_ESD_COPY
if (fName.IsNull()) {
// this is the first event, create the file name
TString origin;
fpTree->GetUserInfo()->Clear();
}
}
-#else //HAVE_ESD_COPY
+#else //HAVE_NOT_ESD_COPY
// this is the old workaround, necessary for older AliRoot versions
// version<=v4-12-Release
gSystem->Exec(shellcmd);
}
}
-#endif //HAVE_ESD_COPY
+#endif //HAVE_NOT_ESD_COPY
return iResult;
}