11#include "GaudiKernel/IEvtSelector.h"
21 const std::string& eiContKey,
27 if(newEv->evtStore()==
nullptr && subev_store!=
nullptr) newEv->
setEvtStore(subev_store);
36 addSubEvent( targetEv, se, eiContainer, eiContKey );
48 const std::string& eiContKey,
60 if(newEv->evtStore()==
nullptr && ev2add_store!=
nullptr) newEv->
setEvtStore(ev2add_store);
68 for(
const auto& subev: ev2add->
subEvents() ) {
69 addSubEvent( targetEv, subev, eiContainer, eiContKey );
Helper class to provide constant type-safe access to aux data.
provides the relative beam intensity as a function of the bunch xing.
xAOD::EventInfo * addSubEvent(xAOD::EventInfo *targetEv, const xAOD::EventInfo::SubEvent &subev, xAOD::EventInfoContainer *eiContainer, const std::string &eiContKey, StoreGateSvc *subev_store)
const T * back() const
Access the last element in the collection as an rvalue.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
ElementLink implementation for ROOT usage.
Helper class to provide constant type-safe access to aux data.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
The Athena Transient Store API.
Class describing the properties of one pileup sub-event.
uint16_t index() const
Get the index of the sub-event.
int16_t time() const
Get the time wrt. the signal event (which has time() == 0)
const EventInfo_v1 * ptr() const
Get a pointer to the EventInfo object describing the pileup event.
PileUpType type() const
Get the type of the pileup event.
const std::vector< float > & mcEventWeights() const
The weights of all the MC events used in the simulation.
void addSubEvent(const SubEvent &subEvent)
Add one sub-event to the existing list.
const std::vector< SubEvent > & subEvents() const
Get the pileup events that were used in the simulation.
void setEvtStore(StoreGateSvc *svc)
Set the pointer to the event store associated with this event.
PileUpType
Enumerator describing the types of pileup events.
EventInfoContainer_v1 EventInfoContainer
Define the latest version of the container.
EventInfo_v1 EventInfo
Definition of the latest event info version.