|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ISF_ALGORITHMS_SIMEVENTFILTER_H
6 #define ISF_ALGORITHMS_SIMEVENTFILTER_H 1
15 #include "GaudiKernel/ToolHandle.h"
57 ToolHandleArray<IGenParticleFilter>
m_genParticleCommonFilters{
this,
"GenParticleCommonFilters", {},
"Tools for filtering out GenParticles for both selections."};
58 ToolHandleArray<IGenParticleFilter>
m_genParticleOldFilters{
this,
"GenParticleOldFilters", {},
"Tools for filtering out GenParticles with the old selection."};
59 ToolHandleArray<IGenParticleFilter>
m_genParticleNewFilters{
this,
"GenParticleNewFilters", {},
"Tools for filtering out GenParticles with the new selection."};
62 Gaudi::Property<bool>
m_invertfilter{
this,
"InvertFilter",
false,
"Invert filter decision."};
66 #endif // SimEventFilter currently will not compile in the AthSimulation Project
67 #endif //> !ISF_ALGORITHMS_SIMEVENTFILTER_H
virtual StatusCode execute(const EventContext &ctx) const override final
Athena algorithm's interface method execute()
bool passesFilters(HepMC::ConstGenParticlePtr part, const ToolHandleArray< IGenParticleFilter > &filters) const
check if the given particle passes all filters
ToolHandleArray< IGenParticleFilter > m_genParticleNewFilters
HepMC::GenParticle filters for new selection.
SimEventFilter(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters.
Gaudi::Property< bool > m_invertfilter
invert filter decision at the end
bool const RAWDATA *ch2 const
An algorithm that can be simultaneously executed in multiple threads.
ToolHandleArray< IGenParticleFilter > m_genParticleCommonFilters
Filter passes if a difference between the decision of m_genParticleOldFilters and m_genParticleNewFil...
a handle for applying algorithm filter decisions
virtual StatusCode finalize() override final
Athena algorithm's interface method finalize()
::StatusCode StatusCode
StatusCode definition for legacy code.
FilterReporterParams m_filterParams
SG::ReadHandleKey< McEventCollection > m_inputHardScatterEvgenKey
Input truth collections.
const GenParticle * ConstGenParticlePtr
ToolHandleArray< IGenParticleFilter > m_genParticleOldFilters
HepMC::GenParticle filters for old selection.
virtual StatusCode initialize() override final
Athena algorithm's interface method initialize()
virtual ~SimEventFilter()=default
Destructor.
Handle class for reading from StoreGate.