3 #define GAUDIALG_GAUDIALGORITHM_CPP 1
48 "Skip execute if one or more of these TES objects exists" );
50 "Execute only if one or more of these TES objects exists" );
76 debug() <<
"Finalize base class GaudiAlgorithm" <<
endmsg;
89 return Error (
"Default GaudiAlgorithm execute method called !!" ) ;
97 {
m_evtColSvc = svc< INTupleSvc > (
"EvtTupleSvc" , true ) ; }
117 for( std::vector<std::string>::iterator it =
m_vetoObjs.begin();
119 if( exist<DataObject>(*it) ) {
120 debug() << *it <<
" found, skipping event " <<
endmsg;
129 for( std::vector<std::string>::iterator it =
m_requireObjs.begin();
131 if( exist<DataObject>(*it) ) {
virtual StatusCode setProperty(const Property &p)
Implementation of IProperty::setProperty.
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.
virtual StatusCode sysExecute()
The actions to be performed by the algorithm on an event.
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.
virtual StatusCode finalize()
standard finalization method
virtual StatusCode initialize()
standard initialization method
Property * declareProperty(const std::string &name, T &property, const std::string &doc="none") const
Declare the named property.
bool isFailure() const
Test for a status code of FAILURE.
SmartIF< INTupleSvc > & evtColSvc() const
Access the standard event collection service.
MSG::Level msgLevel() const
The current message service output level.
virtual StatusCode finalize()
standard finalization method
bool isValid() const
Allow for check if smart pointer is valid.
This class is used for returning status codes from appropriate routines.
MsgStream & debug() const
shortcut for the method msgStream ( MSG::DEBUG )
virtual StatusCode execute()
standard execution method
Base class from which all concrete algorithm classes should be derived.
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.
virtual StatusCode initialize()
standard initialization method
void reset(TYPE *ptr=0)
Set the internal pointer to the passed one disposing of the old one.
GaudiAlgorithm()
no public default constructor
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
virtual StatusCode sysExecute()
the generic actions for the execution.
virtual ~GaudiAlgorithm()
destructor, virtual and protected