29 float fraction = (float(100.0) * (float)(
m_pass+1)) / (
float)
m_seen;
32 info() <<
name() <<
":Prescaler::execute - filter failed" <<
endmsg;
34 info() <<
name() <<
":Prescaler::execute - filter passed" <<
endmsg;
43 info() <<
name( ) <<
":Prescaler::finalize - total events: "
StatusCode initialize() override
StatusCode execute() override
int m_seen
Number of events seen.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Prescaler(std::string name, ISvcLocator *pSvcLocator)
Constructor(s)
DoubleProperty m_percentPass
Percentage of events that should be passed.
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
StatusCode initialize() override
standard initialization method
void setBounds(const T &lower, const T &upper)
Set both bounds (lower and upper) at the same time.
Property * declareProperty(const std::string &name, DataObjectHandle< T > &hndl, const std::string &doc="none") const
int m_pass
Number of events passed.
const std::string & name() const override
The identifying name of the algorithm object.
This class is used for returning status codes from appropriate routines.
StatusCode finalize() override
standard finalization method
The useful base class for data processing algorithms.
StatusCode finalize() override
void setFilterPassed(bool state) override
Set the filter passed flag to the specified state.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.