Skip to content
Snippets Groups Projects
Commit 6e9fb460 authored by Tomasz Bold's avatar Tomasz Bold
Browse files

serialisation works

Former-commit-id: ed1d172b
parent b96167e2
No related branches found
No related tags found
No related merge requests found
......@@ -67,8 +67,9 @@ StatusCode TriggerEDMDeserialiserAlg::execute_r(const EventContext& context) con
resize( bsize );
toBuffer( start, buff.get() );
RootType classDesc = RootType::ByName( transientType+"_v1" ); // TODO remove this dirty hack, needsdiscussion how to find the real type
/* TODO find out how to read the type informatin that is encoded in the payload, we will need to have less configuration, and thus more robust decoding
// this code is commented but will be used once this one bit is understood
RootType classDesc = RootType::ByName( transientType+"_v1" );
size_t usedBytes{ bsize };
void* obj = m_serializerSvc->deserialize( buff.get(), usedBytes, classDesc );
ATH_MSG_DEBUG( "Obtained object " << obj << " which used " << usedBytes << " bytes from available " << bsize );
......@@ -84,7 +85,7 @@ StatusCode TriggerEDMDeserialiserAlg::execute_r(const EventContext& context) con
} else {
ATH_MSG_WARNING( "Deserialisation of object of CLID " << clid << " and name " << name << " failed" );
}
*/
start = toNextFragment( start );
}
......
......@@ -37,7 +37,6 @@ class TriggerEDMSerialiserTool: public extends<AthAlgTool, HLTResultMTMakerTool>
private:
Gaudi::Property<std::vector<std::string>> m_collectionsToSerialize { this, "CollectionsToSerialize", {}, "TYPE#SG.aux1.aux2..etc key of collections to be streamed (like in StreamAOD), the type has to be an exact type i.e. with _vN not the alias type" };
Gaudi::Property<int> m_moduleID { this, "ModuleID", 0, "The HLT result fragment to which the output should be added"};
// internal structure to keep configuration organised conveniently
......
#
# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment