![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
20 #include "Gaudi/Property.h"
30 ISvcLocator* pSvcLocator ) :
33 m_cutFlowSvc(
"CutFlowSvc/CutFlowSvc",
name)
41 "handle to the ICutFlowSvc instance this filtering algorithm"
42 " will use for building the flow of cuts.");
45 "describe to the cutflowsvc what this filter does.")
70 if ( Gaudi::StateMachine::INITIALIZED <= FSMState() )
return StatusCode::SUCCESS;
73 bindPropertiesTo( serviceLocator()->getOptsSvc() );
77 if ( !isEnabled( ) )
return StatusCode::SUCCESS;
85 ATH_MSG_INFO(
"problem registering myself with cutflow-svc");
101 AthAlgorithm::setFilterPassed(state);
104 const EventContext& ctx = Gaudi::Hive::currentContext();
127 ATH_MSG_INFO(
"problem setting filter description with cutflow-svc");
def retrieve(aClass, aKey=None)
virtual void setFilterPassed(bool state) const
Set the filter passed flag to the specified state.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
const std::vector< float > & mcEventWeights() const
The weights of all the MC events used in the simulation.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual ~AthFilterAlgorithm()
Destructor:
CutIdentifier cutID()
return the CutIdentifier corresponding to the top-level cut of this filter algorithm
#define ATH_MSG_VERBOSE(x)
@ IS_SIMULATION
true: simulation, false: data
std::string m_filterDescr
filter description: describes what this filter does.
virtual StatusCode sysInitialize() override
Initialization method invoked by the framework.
ICutFlowSvc_t m_cutFlowSvc
handle to the service holding tables of cut-flows for filtering algs.
virtual StatusCode sysInitialize() override
Override sysInitialize.
AthFilterAlgorithm()
Default constructor:
::StatusCode StatusCode
StatusCode definition for legacy code.
void doNotResetSelfDescription(Gaudi::Details::PropertyBase &)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
bool m_resetSelfDescription
const SG::ReadHandleKey< xAOD::EventInfo > & eventInfoKey() const
EventInfo key for use in derived classes.
CutIdentifier m_cutID
The CutIdentifier for this filter algorithm.
ServiceHandle< ICutFlowSvc > & cutFlowSvc()
return a handle to an ICutFlowSvc instance
void setFilterDescription(const std::string &descr)
helper method to ease the setting of this filter's description in derived classes Note that this meth...
Handle class for reading from StoreGate.
bool eventType(EventType type) const
Check for one particular bitmask value.