1 #define GAUDIALG_GAUDIALGORITHM_CPP 1
41 "Skip execute if one or more of these TES objects exists" );
43 "Execute only if one or more of these TES objects exists" );
65 debug() <<
"Finalize base class GaudiAlgorithm" <<
endmsg;
78 return Error (
"Default GaudiAlgorithm execute method called !!" ) ;
86 {
m_evtColSvc = svc< INTupleSvc > (
"EvtTupleSvc" , true ) ; }
107 [&](
const std::string& loc) {
return this->exist<DataObject>(loc); } );
110 debug() << *it <<
" found, skipping event " <<
endmsg;
118 [&](
const std::string& loc) {
return this->exist<DataObject>(loc); } );
SmartIF< INTupleSvc > m_evtColSvc
Event Tag Collection Service.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
SmartIF< IAlgContextSvc > & contextSvc() const
get Algorithm Context Service
Helper "sentry" class to automatize the safe register/unregister the algorithm's context.
StatusCode initialize() override
standard initialization method
StatusCode Error(const std::string &msg, const StatusCode st=StatusCode::FAILURE, const size_t mx=10) const
Print the error message and return with the given StatusCode.
StatusCode setProperty(const Property &p) override
Implementation of IProperty::setProperty.
Property * declareProperty(const std::string &name, DataObjectHandle< T > &hndl, const std::string &doc="none") const
StatusCode finalize() override
standard finalization method
StatusCode execute() override
standard execution method
bool isFailure() const
Test for a status code of FAILURE.
SmartIF< INTupleSvc > & evtColSvc() const
Access the standard event collection service.
StatusCode sysExecute() override
the generic actions for the execution.
This class is used for returning status codes from appropriate routines.
StatusCode sysExecute() override
The actions to be performed by the algorithm on an event.
StatusCode finalize() override
standard finalization method
StatusCode initialize() override
standard initialization method
Base class from which all concrete algorithm classes should be derived.
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
bool registerContext() const
register for Algorithm Context Service?
std::vector< std::string > m_vetoObjs
skip the event if any of these objects are present in TES
std::vector< std::string > m_requireObjs
process the event only if one or more of these objects are present in TES
An abstract interface for Algorithm Context Service.
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
MSG::Level msgLevel() const
get the output level from the embedded MsgStream
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.