ATLAS Offline Software
Loading...
Searching...
No Matches
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
15
17#include "xAODEventInfo/EventInfo.h" /* SubEvent*/
18
19#include "GaudiKernel/ToolHandle.h"
20
21
22
24
26{
27public:
28 PileUpToolsAlg(const std::string& name, ISvcLocator* pSvcLocator);
29 virtual StatusCode initialize() override;
30 virtual StatusCode execute() override;
31 virtual StatusCode finalize() override;
32
33private:
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
a call-back interface for tools that merge pileup events information An IPileUpTool is called back fo...
std::vector< xAOD::EventInfo::SubEvent >::const_iterator SubEventIterator
Definition IPileUpTool.h:22
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
ToolHandleArray< IPileUpTool > m_puTools
virtual StatusCode initialize() override
PileUpToolsAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
StatusCode clearXing(SubEventIterator &fEvt, const SubEventIterator &lEvt)
virtual StatusCode finalize() override
virtual StatusCode execute() override
Property holding a SG store/key/clid from which a ReadHandle is made.