ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
PileUpComps
src
PileUpToolsAlg.h
Go to the documentation of this file.
1
/* -*- C++ -*- */
2
3
/*
4
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#ifndef PILEUPCOMPS_PILEUPTOOLSALG_H
8
#define PILEUPCOMPS_PILEUPTOOLSALG_H
13
14
#include "
AthenaBaseComps/AthAlgorithm.h
"
15
16
#include "
PileUpTools/IPileUpTool.h
"
17
#include "
xAODEventInfo/EventInfo.h
"
/* SubEvent*/
18
19
#include "GaudiKernel/ToolHandle.h"
20
21
22
24
25
class
PileUpToolsAlg
:
public
AthAlgorithm
26
{
27
public
:
28
PileUpToolsAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
29
virtual
StatusCode
initialize
()
override
;
30
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
31
virtual
StatusCode
finalize
()
override
;
32
33
private
:
34
StatusCode
clearXing
(
SubEventIterator
& fEvt,
35
const
SubEventIterator
& lEvt);
36
ToolHandleArray<IPileUpTool>
m_puTools
{
this
,
"PileUpTools"
,{},
"IPileUpTools to be run for each event"
};
37
38
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{
this
,
"EventInfoKey"
,
"EventInfo"
,
"ReadHandleKey for xAOD::EventInfo"
};
39
};
40
41
42
#endif
AthAlgorithm.h
IPileUpTool.h
a call-back interface for tools that merge pileup events information An IPileUpTool is called back fo...
SubEventIterator
std::vector< xAOD::EventInfo::SubEvent >::const_iterator SubEventIterator
Definition
IPileUpTool.h:22
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
PileUpToolsAlg::m_puTools
ToolHandleArray< IPileUpTool > m_puTools
Definition
PileUpToolsAlg.h:36
PileUpToolsAlg::initialize
virtual StatusCode initialize() override
Definition
PileUpToolsAlg.cxx:18
PileUpToolsAlg::PileUpToolsAlg
PileUpToolsAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
PileUpToolsAlg.cxx:11
PileUpToolsAlg::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
PileUpToolsAlg.cxx:36
PileUpToolsAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
PileUpToolsAlg.h:38
PileUpToolsAlg::clearXing
StatusCode clearXing(SubEventIterator &fEvt, const SubEventIterator &lEvt)
Definition
PileUpToolsAlg.cxx:142
PileUpToolsAlg::finalize
virtual StatusCode finalize() override
Definition
PileUpToolsAlg.cxx:135
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0