diff --git a/Event/EventTPCnv/CMakeLists.txt b/Event/EventTPCnv/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..a9c7c1a5abc73994463bfa7473c328f955a861f6 --- /dev/null +++ b/Event/EventTPCnv/CMakeLists.txt @@ -0,0 +1,43 @@ +################################################################################ +# Package: EventTPCnv +################################################################################ + +# Declare the package name: +atlas_subdir( EventTPCnv ) + +# Declare the package's dependencies: +atlas_depends_on_subdirs( PUBLIC + Database/AthenaPOOL/AthenaPoolCnvSvc + Event/EventInfo + PRIVATE + AtlasTest/TestTools + Control/AthenaKernel ) + +# External dependencies: +find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) + +# Component(s) in the package: +atlas_add_tpcnv_library( EventTPCnv + src/*.cxx + PUBLIC_HEADERS EventTPCnv + INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} + LINK_LIBRARIES ${ROOT_LIBRARIES} AthenaPoolCnvSvcLib EventInfo TestTools AthenaKernel ) + +atlas_add_dictionary( EventTPCnvDict + EventTPCnv/EventTPCnvDict.h + EventTPCnv/selection.xml + INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} + LINK_LIBRARIES ${ROOT_LIBRARIES} AthenaPoolCnvSvcLib EventInfo TestTools AthenaKernel EventTPCnv ) + +atlas_add_dictionary( OLD_EventTPCnvDict + EventTPCnv/EventTPCnvDict.h + EventTPCnv/OLD_selection.xml + INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} + LINK_LIBRARIES ${ROOT_LIBRARIES} AthenaPoolCnvSvcLib EventInfo TestTools AthenaKernel EventTPCnv ) + +atlas_add_test( vectorize_test + SOURCES + test/vectorize_test.cxx + INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} + LINK_LIBRARIES ${ROOT_LIBRARIES} AthenaPoolCnvSvcLib EventInfo TestTools AthenaKernel EventTPCnv ) + diff --git a/Event/EventTPCnv/src/PileUpEventInfoCnv_p5.cxx b/Event/EventTPCnv/src/PileUpEventInfoCnv_p5.cxx index e16f2ac0597af6e7df562e0bd42565ae906a3ca1..71b7e0ef3b06d053d1da5b7a374e7f3715a81094 100644 --- a/Event/EventTPCnv/src/PileUpEventInfoCnv_p5.cxx +++ b/Event/EventTPCnv/src/PileUpEventInfoCnv_p5.cxx @@ -17,6 +17,8 @@ static EventInfoCnv_p4 evInfoConv; void PileUpEventInfoCnv_p5::transToPers(const PileUpEventInfo* trans, PileUpEventInfo_p5* pers, MsgStream &log) { evInfoConv.transToPers(trans, pers, log); + pers->m_subEvents.clear(); + /* size_t sub_ev_n = trans->m_subEvents.size(); pers->m_subEvents.resize(sub_ev_n); PileUpEventInfo::SubEvent::const_iterator sub_iter = trans->beginSubEvt(); @@ -28,7 +30,7 @@ void PileUpEventInfoCnv_p5::transToPers(const PileUpEventInfo* trans, PileUpEven evInfoConv.transToPers(sub_iter->pSubEvt, &p_sub_iter->m_subEventInfo, log); p_sub_iter++; sub_iter++; } - + */ } void PileUpEventInfoCnv_p5::persToTrans(const PileUpEventInfo_p5* pers, PileUpEventInfo* trans, MsgStream &log) diff --git a/Event/EventTPCnv/src/vectorize.cxx b/Event/EventTPCnv/src/vectorize.cxx index 6187ba1379652f48ac6a3f587f405903e9d14308..2d4169edf61a9f5a2177f5162b1c639e1370dc42 100644 --- a/Event/EventTPCnv/src/vectorize.cxx +++ b/Event/EventTPCnv/src/vectorize.cxx @@ -30,6 +30,7 @@ void UITostr(std::string &n, std::vector<unsigned int>::const_iterator &i, bool bugcompat){ int l = (*i) >> 16; + n.clear(); n.reserve(l); int rem = 16; @@ -103,6 +104,7 @@ void UITobitmap(std::vector<bool> &n, std::vector<unsigned int>::const_iterator &i, bool bugcompat) { + n.clear(); int l=(*i)>>16; n.reserve(l); int rem = 16;