|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #include "Gaudi/Property.h"
24 struct DataObjIDSorter {
25 bool operator()(
const DataObjID*
a,
const DataObjID*
b ) {
return a->fullKey() <
b->fullKey(); }
30 std::vector<const DataObjID*> sortedDataObjIDColl(
const DataObjIDColl& coll )
32 std::vector<const DataObjID*>
v;
33 v.reserve( coll.size() );
34 for (
const DataObjID&
id : coll )
v.push_back( &
id );
43 ISvcLocator* pSvcLocator ) :
69 std::ostringstream
str;
70 str <<
"Will explicitly preload the following DataObjects:";
73 if (
e.key().empty()) {
74 sc = StatusCode::FAILURE;
75 str <<
" ERROR: empty key is not allowed!";
91 return StatusCode::SUCCESS;
106 for (DataObjID
obj : outputDataObjs() ) {
108 std::string::size_type ppos =
obj.key().find (
'.');
109 if (ppos <
obj.key().size()-1) {
110 obj.updateKey (
obj.key().substr (0, ppos));
117 DataObjIDColl toLoad;
118 for (
const DataObjID*
obj : sortedDataObjIDColl (
m_load)) {
121 toLoad.emplace(*
obj);
126 return StatusCode::FAILURE;
129 ATH_MSG_DEBUG(
"Will not auto-load proxy for non-EventStore object: "
145 ATH_MSG_ERROR(
"autoload of objects failed. aborting event processing");
146 sc = StatusCode::FAILURE;
159 DataObjIDColl toLoad;
164 obj.updateKey( vhk.objKey() );
169 if (!setProperty(
"ExtraOutputs",
p).isSuccess()) {
192 if (
dp->provider() == 0) {
193 ATH_MSG_DEBUG(
" obj " <<
obj <<
" has no provider, and is only Transient" );
A property holding a SG store/key/clid from which a VarHandle is made.
const ServiceHandle< IProxyDict > & storeHandle() const
Return handle to the referenced store.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
Helpers for checking error return status codes and reporting errors.
A property holding a SG store/key/clid from which a VarHandle is made.
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
#define ATH_MSG_WARNING(x)
static StoreID::type findStoreID(const std::string &storeName)