|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "EventInfo/EventInfo.h"
21 return StatusCode::SUCCESS;
30 return StatusCode::SUCCESS;
43 for (
size_t iw = 0; iw < nw; ++iw) {
53 ATH_MSG_DEBUG(
"Copied HepMC signal event weight(s) to EventInfo");
56 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
SG::WriteDecorHandleKey< xAOD::EventInfo > m_mcWeightsKey
const McEventCollection * events_const() const
Access the current event's McEventCollection (const)
This class represents the "type of event" where the type is given by one or more "characteristics".
This class provides general information about an event. It extends EventInfo with a list of sub-evts ...
virtual StatusCode execute() override
CopyEventWeight(const std::string &name, ISvcLocator *svcLoc)
Constructor.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Base class for common behaviour of MC truth algorithms.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode initialize() override
Copy the weight vector for each event.
Handle class for adding a decoration to an object.
Handle class for adding a decoration to an object.
#define CHECK(...)
Evaluate an expression and check for errors.
This class provides general information about an event. Event information is provided by the accessor...
void set_mc_event_weight(float weight, unsigned int iweight=0, unsigned int nWeightsMax=0)
Add in MC weight. For more than 1 weight, add with iweight > 0.
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)
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)
EventType * event_type()
the type of the event, e.g. simulation, testbeam, etc