ATLAS Offline Software
Loading...
Searching...
No Matches
TestPileUpTool.h
Go to the documentation of this file.
1/* -*- C++ -*- */
2
3/*
4 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef PILEUPCOMPS_TESTPILEUPTOOL_H
8#define PILEUPCOMPS_TESTPILEUPTOOL_H
14#include <vector>
15#include <utility> /* pair */
16
19{
20public:
22
23 TestPileUpTool(const std::string& type,
24 const std::string& name,
25 const IInterface* parent);
27
29
30 virtual StatusCode prepareEvent(const EventContext& ctx, unsigned int nInputEvents) override final;
33 virtual StatusCode mergeEvent(const EventContext& ctx) override final;
36 virtual StatusCode
37 processBunchXing(int bunchXing,
38 SubEventIterator bSubEvents,
39 SubEventIterator eSubEvents) override final;
42
43private:
44 std::vector<std::pair<unsigned int, int> > m_seen;
45 Gaudi::Property<bool> m_doFiltering{this, "DoFiltering", false, ""};
46 Gaudi::Property<unsigned int> m_maxInTimePileUp{this, "MaxInTimePileUp", 4, ""};
47};
48#endif
std::vector< xAOD::EventInfo::SubEvent >::const_iterator SubEventIterator
Definition IPileUpTool.h:22
helper base class IPileUpTool::toProcess().
PileUpToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< unsigned int > m_maxInTimePileUp
virtual StatusCode prepareEvent(const EventContext &ctx, unsigned int nInputEvents) override final
called before the bunchXing loop
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
TestPileUpTool(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< bool > m_doFiltering
virtual StatusCode mergeEvent(const EventContext &ctx) override final
called at the end of the subevts loop.
std::vector< std::pair< unsigned int, int > > m_seen
return false if not interested in certain xing times (in ns) implemented by default in PileUpToolBase...