2 #include "GaudiKernel/MsgStream.h"
3 #include "GaudiKernel/AlgFactory.h"
20 static void dump() { cout <<
"MyObject (C/D): " << c_instances <<
"/" << d_instances <<endl;}
35 declareProperty(
"Input",
m_inputs,
"List of required inputs");
36 declareProperty(
"Output",
m_outputs,
"List of provided outputs");
49 info() <<
":HiveTestAlgorithm::initialize " <<
endmsg;
58 int evt = getContext()->evt();
60 info() <<
":HiveTestAlgorithm::getting inputs... " << evt <<
endmsg;
62 for(vector<string>::iterator
i = m_inputs.begin();
i != m_inputs.end();
i++) {
64 info() <<
"Got data " << *i <<
" with value " << obj->
getData() <<
endmsg;
67 info() <<
":HiveTestAlgorithm::registering outputs... " << evt <<
endmsg;
69 for(vector<string>::iterator
i = m_outputs.begin();
i != m_outputs.end();
i++) {
79 info() <<
name( ) <<
":HiveTestAlgorithm::finalize - total events: " << m_total <<
endmsg;
static atomic< int > c_instances
#define DECLARE_ALGORITHM_FACTORY(x)
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
MyObject(const MyObject &o)
virtual const std::vector< std::string > get_outputs()
static atomic< int > d_instances
This class is used for returning status codes from appropriate routines.
The useful base class for data processing algorithms.
virtual ~HiveTestAlgorithm()
Destructor.
HiveTestAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor(s)
virtual const std::vector< std::string > get_inputs()
std::vector< std::string > m_outputs
std::vector< std::string > m_inputs
A DataObject is the base class of any identifiable object on any data store.