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

more debugging

Former-commit-id: 6f167d45
parent 2001c488
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@
#include "AthenaKernel/StorableConversions.h"
#include "AthContainersInterfaces/IAuxStoreIO.h"
#include "AthContainers/AuxTypeRegistry.h"
#include "AthContainers/debug.h"
#include "xAODCore/AuxContainerBase.h"
#include "TrigSerializeResult/StringSerializer.h"
......@@ -103,16 +104,18 @@ StatusCode TriggerEDMSerialiserTool::fillPayload( const void* data, size_t sz, s
StatusCode TriggerEDMSerialiserTool::fillDynAux( const Address& address, DataObject* dObj, std::vector<uint32_t>& buffer ) const {
// TODO, check if we can cache this informion after it is filled once
ATH_MSG_DEBUG("About to start streaming aux data of " << address.key );
DataBucketBase* dObjAux = dynamic_cast<DataBucketBase*>(dObj);
ATH_CHECK( dObjAux != nullptr );
const xAOD::AuxContainerBase* auxStore = dObjAux->template cast<xAOD::AuxContainerBase> (nullptr, true);
if ( auxStore == nullptr ) {
ATH_MSG_DEBUG( "Can't obtain AuxStoreIO of " << address.key << " no dynamic variables presumably" );
ATH_MSG_DEBUG( "Can't obtain AuxContainerBase of " << address.key << " no dynamic variables presumably" );
return StatusCode::SUCCESS;
}
ATH_MSG_DEBUG( "dump aux store" );
SGdebug::dump_aux_vars( *auxStore );
const SG::auxid_set_t& selected = address.sel.getSelectedAuxIDs( auxStore->getDynamicAuxIDs() );
if ( selected.empty() ) {
......@@ -136,7 +139,7 @@ StatusCode TriggerEDMSerialiserTool::fillDynAux( const Address& address, DataObj
ATH_MSG_DEBUG( "CLID " << clid );
RootType classDesc = RootType::ByName( typeName );
size_t sz=0;
const void* rawptr = auxStore->getData( auxVarID );
ATH_CHECK( rawptr != nullptr );
......@@ -148,8 +151,11 @@ StatusCode TriggerEDMSerialiserTool::fillDynAux( const Address& address, DataObj
ATH_MSG_DEBUG(" v: " << v );
}
}
size_t sz=0;
void* mem = m_serializerSvc->serialize( rawptr, classDesc, sz );
if ( mem == nullptr or sz == 0 ) {
ATH_MSG_ERROR( "Serialisation of " << address.type <<"#" << address.key << "."<< name << " unsuccessful" );
......
......@@ -351,9 +351,9 @@ serialiser = TriggerEDMSerialiserTool(name="Serialiser", OutputLevel=VERBOSE)
serialiser.CollectionsToSerialize = [ "xAOD::TrigCompositeContainer_v1#remap_EgammaCaloDecisions",
"xAOD::TrigCompositeAuxContainer_v1#remap_EgammaCaloDecisionsAux.",
"xAOD::TrigEMClusterContainer_v1#HLT_xAOD__TrigEMClusterContainer_L2CaloClusters",
"xAOD::TrigEMClusterAuxContainer_v2#HLT_xAOD__TrigEMClusterContainer_L2CaloClustersAux.eta",
"xAOD::TrigEMClusterAuxContainer_v2#HLT_xAOD__TrigEMClusterContainer_L2CaloClustersAux.RoIword.clusterQuality.e233.e237.e277.e2tsts1.ehad1.emaxs1.energy.energySample.et.eta.eta1.fracs1.nCells.phi.rawEnergy.rawEnergySample.rawEt.rawEta.rawPhi.viewIndex.weta2.wstot",
"xAOD::TrigElectronContainer_v1#HLT_xAOD__TrigElectronContainer_L2ElectronFex",
"xAOD::TrigElectronAuxContainer_v1#HLT_xAOD__TrigElectronContainer_L2ElectronFexAux.eta.phi.rawEnergy.rawEt.rawEta.nCells.energy.et.e237.e277.fracs1.weta2.ehad1.e232.wstot" ]
"xAOD::TrigElectronAuxContainer_v1#HLT_xAOD__TrigElectronContainer_L2ElectronFexAux.pt.eta.phi.rawEnergy.rawEt.rawEta.nCells.energy.et.e237.e277.fracs1.weta2.ehad1.e232.wstot" ]
#"xAOD::TrigElectronAuxContainer_v1#HLT_xAOD__TrigElectronContainer_L2ElectronFexAux." ]
stmaker = StreamTagMakerTool()
......
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