ATLAS Offline Software
IBkgStreamsCache.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
12 #ifndef PILEUPTOOLS_IBKGSTREAMSCACHE_H
13 #define PILEUPTOOLS_IBKGSTREAMSCACHE_H
14 
15 #include "GaudiKernel/IAlgTool.h"
17 
18 class IBeamIntensity;
19 
24 class IBkgStreamsCache : virtual public IAlgTool {
25 public:
31  virtual StatusCode setup(int firstXing,
32  unsigned int nXings,
33  unsigned int firstStore,
34  IBeamIntensity* iBM)=0;
36  virtual void newEvent() = 0;
38  virtual void resetEvtsPerXingScaleFactor(float sf) = 0;
47  virtual StatusCode addSubEvts(unsigned int iXing,
48  xAOD::EventInfo* overEvent,
49  int t0BinCenter, bool loadEventProxies, unsigned int BCID) = 0;
56  virtual StatusCode addSubEvts(unsigned int iXing,
57  xAOD::EventInfo* overlaidEvent,
58  int t0BinCenter) = 0;
60  virtual unsigned int nStores() const = 0;
61 
64 };
65 #endif // PILEUPTOOLS_IBKGSTREAMSCACHE_H
IBkgStreamsCache
Interface to in-memory cache for pileup events.
Definition: IBkgStreamsCache.h:24
PixelByteStreamErrors::BCID
@ BCID
Definition: PixelByteStreamErrors.h:13
IBkgStreamsCache::newEvent
virtual void newEvent()=0
inform concrete cache that we start overlaying a new event
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IBkgStreamsCache::addSubEvts
virtual StatusCode addSubEvts(unsigned int iXing, xAOD::EventInfo *overEvent, int t0BinCenter, bool loadEventProxies, unsigned int BCID)=0
Read input events in bkg stores and link them to overlay store.
IBkgStreamsCache::resetEvtsPerXingScaleFactor
virtual void resetEvtsPerXingScaleFactor(float sf)=0
rescale number of events per crossing
IBkgStreamsCache::DeclareInterfaceID
DeclareInterfaceID(IBkgStreamsCache, 1, 0)
Creates the InterfaceID and interfaceID() method.
EventInfo.h
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
mapkey::sf
@ sf
Definition: TElectronEfficiencyCorrectionTool.cxx:38
IBkgStreamsCache::setup
virtual StatusCode setup(int firstXing, unsigned int nXings, unsigned int firstStore, IBeamIntensity *iBM)=0
IBkgStreamsCache::nStores
virtual unsigned int nStores() const =0
how many stores in cache
IBkgStreamsCache::addSubEvts
virtual StatusCode addSubEvts(unsigned int iXing, xAOD::EventInfo *overlaidEvent, int t0BinCenter)=0
Read input events in bkg stores and link them to overlay store.
IBeamIntensity
Definition: IBeamIntensity.h:17