ATLAS Offline Software
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
9 
15 
17 #include "xAODEventInfo/EventInfo.h" /* SubEvent*/
18 
19 #include "GaudiKernel/ToolHandle.h"
20 
21 
22 
24 
26 {
27 public:
28  PileUpToolsAlg(const std::string& name, ISvcLocator* pSvcLocator);
29  virtual StatusCode initialize() override;
30  virtual StatusCode execute() override;
31  virtual StatusCode finalize() override;
32 
33 private:
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
PileUpToolsAlg::finalize
virtual StatusCode finalize() override
Definition: PileUpToolsAlg.cxx:135
PileUpToolsAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: PileUpToolsAlg.h:38
PileUpToolsAlg::initialize
virtual StatusCode initialize() override
Definition: PileUpToolsAlg.cxx:18
SG::ReadHandleKey< xAOD::EventInfo >
AthAlgorithm.h
PileUpToolsAlg
Definition: PileUpToolsAlg.h:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IPileUpTool.h
a call-back interface for tools that merge pileup events information An IPileUpTool is called back fo...
AthAlgorithm
Definition: AthAlgorithm.h:47
PileUpToolsAlg::clearXing
StatusCode clearXing(SubEventIterator &fEvt, const SubEventIterator &lEvt)
Definition: PileUpToolsAlg.cxx:142
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
EventInfo.h
PileUpToolsAlg::m_puTools
ToolHandleArray< IPileUpTool > m_puTools
Definition: PileUpToolsAlg.h:36
SubEventIterator
std::vector< xAOD::EventInfo::SubEvent >::const_iterator SubEventIterator
Definition: IPileUpTool.h:22
PileUpToolsAlg::PileUpToolsAlg
PileUpToolsAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: PileUpToolsAlg.cxx:11
PileUpToolsAlg::execute
virtual StatusCode execute() override
Definition: PileUpToolsAlg.cxx:36