/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Static Private Member Functions | Private Attributes
ConcreteTool Class Reference

#include <ConcreteTool.h>

Inheritance diagram for ConcreteTool:
Inheritance graph
[legend]
Collaboration diagram for ConcreteTool:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ConcreteTool (const std::string &, const std::string &, const IInterface *)
virtual ~ConcreteTool ()
StatusCode queryInterface (const InterfaceID &riid, void **ppvIf)
StatusCode initialize ()
StatusCode finalize ()
StatusCode doSomething (double &result)
StatusCode setProperty (const Property &p)

Static Private Member Functions

static const InterfaceID & interfaceID ()

Private Attributes

MsgStream m_log
double m_cut

Detailed Description

Definition at line 8 of file ConcreteTool.h.


Constructor & Destructor Documentation

ConcreteTool::ConcreteTool ( const std::string &  ,
const std::string &  ,
const IInterface *   
)

Definition at line 4 of file ConcreteTool.cc.

    : AlgTool(type,name,parent)
    , m_log(msgSvc(),name)
{
    declareProperty("Cut",m_cut = 0);
    m_log << MSG::INFO << "Created" << endreq;
}
ConcreteTool::~ConcreteTool ( ) [virtual]

Definition at line 11 of file ConcreteTool.cc.

{
}

Member Function Documentation

StatusCode ConcreteTool::queryInterface ( const InterfaceID &  riid,
void **  ppvIf 
)

Definition at line 21 of file ConcreteTool.cc.

{
    if ( riid == IVirtualTool::interfaceID() )  {
        *ppvIf = (IVirtualTool*)this;
        addRef();
        return StatusCode::SUCCESS;
    }
    return AlgTool::queryInterface( riid, ppvIf );
}
StatusCode ConcreteTool::initialize ( )

Definition at line 14 of file ConcreteTool.cc.

{
    m_log.setLevel( outputLevel() );
    m_log << MSG::INFO << "initialized with cut = " << m_cut << endreq;
    return StatusCode::SUCCESS;
}
StatusCode ConcreteTool::finalize ( )

Definition at line 31 of file ConcreteTool.cc.

{
    m_log << MSG::INFO << "finalized" << endreq;
    return StatusCode::SUCCESS;
}
StatusCode ConcreteTool::doSomething ( double &  result) [virtual]

Implements IVirtualTool.

Definition at line 37 of file ConcreteTool.cc.

{
    m_log << MSG::INFO << "doSomething(" << result << ") cut=" << m_cut << endreq;
    if (result < m_cut) {
        result = m_cut;
    }
    return StatusCode::SUCCESS;
}
StatusCode ConcreteTool::setProperty ( const Property &  p)

Definition at line 46 of file ConcreteTool.cc.

{
    string name = p.name();

    m_log << MSG::INFO << "ConcreteTool::setProperty("<<name<<") = " 
          << "Property::toString(): " << p.toString() << endreq;

    return AlgTool::setProperty(p);
}
static const InterfaceID& ConcreteTool::interfaceID ( ) [inline, static, private]

Reimplemented from IVirtualTool.

Definition at line 22 of file ConcreteTool.h.


Member Data Documentation

MsgStream ConcreteTool::m_log [private]

Definition at line 24 of file ConcreteTool.h.

double ConcreteTool::m_cut [private]

Definition at line 25 of file ConcreteTool.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:53:50 for ConfigurableExample by doxygen 1.7.4