|
ATLAS Offline Software
|
Go to the documentation of this file.
21 ISvcLocator* pSvcLocator ) :
35 if (
m_load.value().size() > 0 ) {
36 std::ostringstream
str;
37 str <<
"Will explicitly preload the following DataObjects:";
40 if (
obj.key() .empty() ) {
41 sc = StatusCode::FAILURE;
42 str <<
" ERROR: empty key is not allowed!";
49 if ( !setProperty(
"ExtraOutputs",
m_load.toString() ).isSuccess() ) {
62 return StatusCode::SUCCESS;
68 ATH_MSG_DEBUG(
"Executing " <<
name() <<
" running with store " << viewProxy->name() );
85 else if (
obj.key().rfind(
"DetectorStore", 0 ) != std::string::npos )
89 else if (
obj.className() ==
"SG::AuxElement" )
92 const auto split =
obj.key().rfind(
'.');
93 if (
split == std::string::npos) {
94 ATH_MSG_ERROR(
"Aux data specified, but key does not contain '.': " <<
obj.key() );
95 sc = StatusCode::FAILURE;
99 const auto parentKey =
obj.key().substr( 0,
split );
101 dp = viewProxy->proxy(
obj.clid(), parentVhk.
key() );
103 ATH_MSG_DEBUG(
"Found " << parentKey <<
" in " << viewProxy->name() <<
" (need aux data " <<
obj.key() <<
")" );
105 ATH_MSG_ERROR(
"Did not find " << parentKey <<
" in " << viewProxy->name() <<
" (need aux data " <<
obj.key() <<
")" );
106 sc = StatusCode::FAILURE;
112 ATH_MSG_ERROR(
"Did not find " <<
obj.key() <<
" in " << viewProxy->name() );
119 sc = StatusCode::FAILURE;
virtual ~ViewDataVerifier()
Destructor:
Gaudi::Property< DataObjIDColl > m_load
Containers to verify.
bool msgLvl(const MSG::Level lvl) const
const std::string & key() const
Return the StoreGate ID for the referenced object.
An algorithm that can be simultaneously executed in multiple threads.
const ExtendedEventContext & getExtendedEventContext(const EventContext &ctx)
Retrieve an extended context from a context object.
::StatusCode StatusCode
StatusCode definition for legacy code.
ViewDataVerifier()
Default constructor:
virtual StatusCode initialize() override
A property holding a SG store/key/clid from which a VarHandle is made.
#define ATH_MSG_WARNING(x)
virtual StatusCode execute(const EventContext &ctx) const override