Skip to content
Snippets Groups Projects

loopy unpacking and multi packing

Merged Sevda Esen requested to merge sevda-loopy-unpacking3 into master
3 files
+ 1
34
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -102,14 +102,6 @@ namespace DataPacking::Buffer {
for ( unsigned int id = 0; id < nlinks; ++id ) {
auto location = linkMgr->link( id )->path();
if ( !location.empty() && location.front() != '/' ) { location = "/Event/" + location; }
auto packedLocation = m_containerMap.find( location );
if ( packedLocation != end( m_containerMap ) ) {
++m_remapped;
location = packedLocation->second;
}
// TODO: make a derived map from m_encodingKey and m_containerMap, so that this can be written as:
// buffer.save<int32_t>( derived_map.at( linkMgr->link( id )->path() )
// and make sure that the map is re-derived if m_containerMap or m_encodingKey is modified
auto iloc = map.find( location );
if ( iloc == map.end() ) {
error() << "could not locate referred location " << location << " originally: " << linkMgr->link( id )->path()
@@ -176,9 +168,6 @@ namespace DataPacking::Buffer {
Gaudi::Property<bool> m_enableCheck{this, "EnableCheck", false};
// Mapping of reconstruction object to their location after packing
Gaudi::Property<std::map<std::string, std::string>> m_containerMap{this, "ContainerMap"};
mutable Gaudi::Accumulators::StatCounter<> m_nbPackedData{this, "# PackedData"};
mutable Gaudi::Accumulators::MsgCounter<MSG::ERROR> m_unregisterError{
this, "Problem unregistering data in PackerBaseAlg", 10};
Loading