33 float fraction = (float(100.0) * (float)(
m_pass+1)) / (
float)
m_seen;
36 info() <<
name() <<
":Prescaler::execute - filter failed" <<
endmsg;
38 info() <<
name() <<
":Prescaler::execute - filter passed" <<
endmsg;
47 info() <<
name( ) <<
":Prescaler::finalize - total events: "
int m_seen
Number of events seen.
MsgStream & info() const
shortcut for the method msgStream ( MSG::INFO )
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
DoubleProperty m_percentPass
Percentage of events that should be passed.
virtual ~Prescaler()
Destructor.
virtual StatusCode initialize()
standard initialization method
Property * declareProperty(const std::string &name, T &property, const std::string &doc="none") const
Declare the named property.
StatusCode finalize()
standard finalization method
StatusCode initialize()
standard initialization method
int m_pass
Number of events passed.
virtual StatusCode finalize()
standard finalization method
This class is used for returning status codes from appropriate routines.
virtual void setFilterPassed(bool state)
Set the filter passed flag to the specified state.
virtual const std::string & name() const
The identifying name of the algorithm object.
The useful base class for data processing algorithms.
StatusCode execute()
standard execution method
Prescaler(const std::string &name, ISvcLocator *pSvcLocator)
Constructor(s)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.