Skip to content
Snippets Groups Projects
Commit 05cfd9d1 authored by Gerhard Raven's avatar Gerhard Raven
Browse files

better diagnostic in PackedProtoParticle

parent 931b91cd
No related branches found
No related tags found
1 merge request!4136SelectivePacker: Consistently check whether TES entries are explicitly requested
......@@ -31,7 +31,7 @@ void ProtoParticlePacker::pack( const Data& proto, PackedData& pproto, PackedDat
if ( proto.track() ) {
pproto.track = ( 0 == ver ? StandardPacker::reference32( &parent(), &pprotos, proto.track() )
: StandardPacker::reference64( &pprotos, proto.track() ) );
parent().debug() << "Found a track with parent " << proto.track()->parent()->name() << " and key "
parent().debug() << "Found a track with parent " << identifier( *proto.track() ) << " and key "
<< proto.track()->key() << endmsg;
parent().debug() << "Packed a track with key " << pproto.track << endmsg;
} else {
......@@ -41,7 +41,7 @@ void ProtoParticlePacker::pack( const Data& proto, PackedData& pproto, PackedDat
if ( proto.richPID() ) {
pproto.richPID = ( 0 == ver ? StandardPacker::reference32( &parent(), &pprotos, proto.richPID() )
: StandardPacker::reference64( &pprotos, proto.richPID() ) );
parent().debug() << "Found a richPID with parent " << proto.richPID()->parent()->name() << " and key "
parent().debug() << "Found a richPID with parent " << identifier( *proto.richPID() ) << " and key "
<< proto.richPID()->key() << endmsg;
parent().debug() << "Packed a richPID with key " << pproto.richPID << endmsg;
} else {
......@@ -51,7 +51,7 @@ void ProtoParticlePacker::pack( const Data& proto, PackedData& pproto, PackedDat
if ( proto.muonPID() ) {
pproto.muonPID = ( 0 == ver ? StandardPacker::reference32( &parent(), &pprotos, proto.muonPID() )
: StandardPacker::reference64( &pprotos, proto.muonPID() ) );
parent().debug() << "Found a muonPID with parent " << proto.muonPID()->parent()->name() << " and key "
parent().debug() << "Found a muonPID with parent " << identifier( *proto.muonPID() ) << " and key "
<< proto.muonPID()->key() << endmsg;
parent().debug() << "Packed a muonPID with key " << pproto.muonPID << endmsg;
} else {
......@@ -63,7 +63,7 @@ void ProtoParticlePacker::pack( const Data& proto, PackedData& pproto, PackedDat
for ( const auto& caloH : proto.calo() ) {
pprotos.refs().push_back( 0 == ver ? StandardPacker::reference32( &parent(), &pprotos, caloH )
: StandardPacker::reference64( &pprotos, caloH ) );
parent().debug() << "Found a caloHYPO with parent " << caloH->parent()->name() << " and key " << caloH->key()
parent().debug() << "Found a caloHYPO with parent " << identifier( *caloH ) << " and key " << caloH->key()
<< endmsg;
}
pproto.lastHypo = pprotos.refs().size();
......@@ -218,4 +218,4 @@ StatusCode ProtoParticlePacker::check( const Data& dataA, const Data& dataB ) co
}
return ( isOK ? StatusCode::SUCCESS : StatusCode::FAILURE );
}
\ No newline at end of file
}
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