ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
PileUpComps
src
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
17
#include "
PileUpTools/PileUpToolBase.h
"
18
class
TestPileUpTool
:
public
PileUpToolBase
19
{
20
public
:
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
43
private
:
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
SubEventIterator
std::vector< xAOD::EventInfo::SubEvent >::const_iterator SubEventIterator
Definition
IPileUpTool.h:22
PileUpToolBase.h
helper base class IPileUpTool::toProcess().
PileUpToolBase::PileUpToolBase
PileUpToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
PileUpToolBase.cxx:7
TestPileUpTool::m_maxInTimePileUp
Gaudi::Property< unsigned int > m_maxInTimePileUp
Definition
TestPileUpTool.h:46
TestPileUpTool::prepareEvent
virtual StatusCode prepareEvent(const EventContext &ctx, unsigned int nInputEvents) override final
called before the bunchXing loop
Definition
TestPileUpTool.cxx:16
TestPileUpTool::processBunchXing
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
Definition
TestPileUpTool.cxx:31
TestPileUpTool::TestPileUpTool
TestPileUpTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TestPileUpTool.cxx:9
TestPileUpTool::m_doFiltering
Gaudi::Property< bool > m_doFiltering
Definition
TestPileUpTool.h:45
TestPileUpTool::mergeEvent
virtual StatusCode mergeEvent(const EventContext &ctx) override final
called at the end of the subevts loop.
Definition
TestPileUpTool.cxx:22
TestPileUpTool::m_seen
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...
Definition
TestPileUpTool.h:44
type
Generated on
for ATLAS Offline Software by
1.17.0