ATLAS Offline Software
Loading...
Searching...
No Matches
MergeHijingParsTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MCTRUTHSIMALGS_MERGEHIJINGPARSTOOL_H
6#define MCTRUTHSIMALGS_MERGEHIJINGPARSTOOL_H
7
9
14
15#include "GaudiKernel/ServiceHandle.h"
16
17#include <string>
18
27public:
28 MergeHijingParsTool(const std::string& type,
29 const std::string& name,
30 const IInterface* parent);
31 virtual StatusCode initialize() override final;
34 virtual StatusCode prepareEvent(const EventContext& ctx, unsigned int nInputEvents) override final;
37 virtual StatusCode mergeEvent(const EventContext& ctx) override final;
40 virtual StatusCode processBunchXing(int bunchXing,
41 SubEventIterator bSubEvents,
42 SubEventIterator eSubEvents) override final;
45 virtual bool toProcess(int bunchXing) const override final;
49 virtual StatusCode processAllSubEvents(const EventContext& ctx) override final;
50private:
51 ServiceHandle<PileUpMergeSvc> m_pMergeSvc{this, "PileUpMergeSvc", "PileUpMergeSvc", ""};
52 SG::WriteHandleKey<HijingEventParams> m_outputObjectKey{this, "HijingParamsKey", "Hijing_event_params", ""};
54 bool m_firstSubEvent{true};
55};
56#endif //MCTRUTHSIMALGS_MERGEHIJINGPARSTOOL_H
std::vector< xAOD::EventInfo::SubEvent >::const_iterator SubEventIterator
Definition IPileUpTool.h:22
the preferred mechanism to access information from the different event stores in a pileup job.
helper base class IPileUpTool::toProcess().
Property holding a SG store/key/clid from which a WriteHandle is made.
Handle class for recording to StoreGate.
virtual bool toProcess(int bunchXing) const override final
return false if not interested in certain xing times (in ns) implemented by default in PileUpToolBase...
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
MergeHijingParsTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode processAllSubEvents(const EventContext &ctx) override final
Propagate the HijingParsections to the output StoreGate.
virtual StatusCode mergeEvent(const EventContext &ctx) override final
called at the end of the subevts loop.
SG::WriteHandle< HijingEventParams > m_outputObject
ServiceHandle< PileUpMergeSvc > m_pMergeSvc
virtual StatusCode initialize() override final
SG::WriteHandleKey< HijingEventParams > m_outputObjectKey
virtual StatusCode prepareEvent(const EventContext &ctx, unsigned int nInputEvents) override final
called before the subevts loop.
PileUpToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Property holding a SG store/key/clid from which a WriteHandle is made.