|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "EventInfo/EventInfo.h"
22 return StatusCode::SUCCESS;
31 return StatusCode::SUCCESS;
41 if (
event_const()->attribute<HepMC3::DoubleAttribute>(
"filterHT") != NULL){
42 std::shared_ptr<HepMC3::DoubleAttribute> fHT =
event_const()->attribute<HepMC3::DoubleAttribute>(
"filterHT");
43 double fHT_double = fHT->value();
44 dec_filtHT(0) = fHT_double;
48 if (
event_const()->attribute<HepMC3::DoubleAttribute>(
"filterMET") != NULL){
49 std::shared_ptr<HepMC3::DoubleAttribute> fMET =
event_const()->attribute<HepMC3::DoubleAttribute>(
"filterMET");
50 double fMET_double = fMET->value();
51 dec_filtMET(0) = fMET_double;
58 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
const McEventCollection * events_const() const
Access the current event's McEventCollection (const)
This class provides general information about an event. It extends EventInfo with a list of sub-evts ...
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_mcFilterMETKey
Base class for common behaviour of MC truth algorithms.
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_mcFilterHTKey
Handle class for adding a decoration to an object.
#define CHECK(...)
Evaluate an expression and check for errors.
virtual StatusCode initialize() override
Copy the filter values for each event.
This class provides general information about an event. Event information is provided by the accessor...
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
#define ATH_MSG_WARNING(x)
FillFilterValues(const std::string &name, ISvcLocator *svcLoc)
Constructor.
virtual StatusCode execute() override
size_type size() const noexcept
Returns the number of elements in the collection.
virtual StatusCode initialize() override
const HepMC::GenEvent * event_const() const
Access the current signal event (const)