23 float fraction = ( float( 100.0 ) * (float)(
m_pass + 1 ) ) / (
float)
m_seen;
26 info() <<
name() <<
":Prescaler::execute - filter failed" <<
endmsg;
28 info() <<
name() <<
":Prescaler::execute - filter passed" <<
endmsg;
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...
const std::string & name() const override
The identifying name of the algorithm object.
void setFilterPassed(bool state) const override
Set the filter passed flag to the specified state.
Prescaler(std::string name, ISvcLocator *pSvcLocator)
Constructor(s)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
StatusCode initialize() override
standard initialization method
int m_pass
Number of events passed.
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.
constexpr static const auto SUCCESS
StatusCode finalize() override
Gaudi::CheckedProperty< double > m_percentPass
Percentage of events that should be passed.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.