1 #include "GaudiAlg/Prescaler.h"
3 #include "GaudiKernel/MsgStream.h"
29 float fraction = (float(100.0) * (float)(
m_pass+1)) / (
float)
m_seen;
31 setFilterPassed(
false );
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...
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Prescaler(std::string name, ISvcLocator *pSvcLocator)
Constructor(s)
DoubleProperty m_percentPass
Percentage of events that should be passed.
StatusCode initialize() override
standard initialization method
void setBounds(const T &lower, const T &upper)
Set both bounds (lower and upper) at the same time.
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
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)