5#ifndef MCTRUTHSIMALGS_MERGETRUTHPARTICLESTOOL_H
6#define MCTRUTHSIMALGS_MERGETRUTHPARTICLESTOOL_H
12#include "Gaudi/Property.h"
13#include "GaudiKernel/ServiceHandle.h"
14#include "GaudiKernel/ToolHandle.h"
16#include "GaudiKernel/SystemOfUnits.h"
26 const std::string& name,
27 const IInterface* parent);
32 virtual StatusCode
prepareEvent(
const EventContext& ctx,
unsigned int nInputEvents)
override final;
35 virtual StatusCode
mergeEvent(
const EventContext& ctx)
override final;
the preferred mechanism to access information from the different event stores in a pileup job.
StatusCode record(const xAOD::TruthParticleContainer *pTruthParticles, const std::string &truthParticleContainerName) const
Gaudi::Property< std::string > m_inTimeOutputTruthParticleCollKey
Gaudi::Property< std::string > m_inputTruthParticleCollKey
virtual StatusCode processTruthParticleContainer(const xAOD::TruthParticleContainer *inputTruthParticleContainer, xAOD::TruthParticleContainer *outputTruthParticleContainer, int eventNumber)
TruthParticleContainer Loop.
virtual StatusCode mergeEvent(const EventContext &ctx) override final
called at the end of the subevts loop.
xAOD::TruthParticleContainer * m_inTimeOutputTruthParticleContainer
virtual StatusCode prepareEvent(const EventContext &ctx, unsigned int nInputEvents) override final
called before the subevts loop.
MergeTruthParticlesTool(const std::string &type, const std::string &name, const IInterface *parent)
StatusCode initialize() override final
Initialize.
ServiceHandle< PileUpMergeSvc > m_pMergeSvc
virtual StatusCode processBunchXing(int bunchXing, SubEventIterator bSubEvents, SubEventIterator eSubEvents) override final
called for each active bunch-crossing to process current SubEvents bunchXing is in ns
virtual StatusCode processAllSubEvents(const EventContext &ctx) override final
Merge the Truth TruthParticleContainers using the PileUpMergeSvc.
Gaudi::Property< bool > m_includeSignalTruthParticles
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.