// $Id: MyDataAlgorithm.cpp,v 1.4 2006/11/30 10:35:26 mato Exp $ // Include files #include "GaudiKernel/AlgFactory.h" #include "GaudiKernel/DataObject.h" #include "MyDataAlgorithm.h" // Static Factory declaration DECLARE_ALGORITHM_FACTORY(MyDataAlgorithm) // Constructor //------------------------------------------------------------------------------ MyDataAlgorithm::MyDataAlgorithm(const std::string& name, ISvcLocator* ploc) : GaudiAlgorithm(name, ploc) { //------------------------------------------------------------------------------ } //------------------------------------------------------------------------------ StatusCode MyDataAlgorithm::initialize() { //------------------------------------------------------------------------------ MsgStream log(msgSvc(), name()); log << MSG::INFO << "initializing...." << endmsg; log << MSG::INFO << "....initialization done" << endmsg; return StatusCode::SUCCESS; } //------------------------------------------------------------------------------ StatusCode MyDataAlgorithm::execute() { //------------------------------------------------------------------------------ MsgStream log( msgSvc(), name() ); log << MSG::INFO << "executing...." << endmsg; get("Rec/Muon/Digits"); get("Rec/Muon/Foos"); log << MSG::INFO << "....execution done" << endmsg; return StatusCode::SUCCESS; } //------------------------------------------------------------------------------ StatusCode MyDataAlgorithm::finalize() { //------------------------------------------------------------------------------ MsgStream log(msgSvc(), name()); log << MSG::INFO << "finalizing...." << endmsg; return StatusCode::SUCCESS; }