20 float fraction = ( float( 100.0 ) * (float)(
m_pass + 1 ) ) / (
float)
m_seen;
23 info() <<
name() <<
":Prescaler::execute - filter failed" <<
endmsg;
25 info() <<
name() <<
":Prescaler::execute - filter passed" <<
endmsg;
StatusCode initialize() override
StatusCode execute() override
standard execution method
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)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
const std::string & name() const override
The identifying name of the algorithm object.
StatusCode initialize() override
standard initialization method
void setFilterPassed(bool state) const
Set the filter passed flag to the specified state.
constexpr static const auto SUCCESS
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.
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.