ATLAS Offline Software
IEventInfoCnvTool.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: IEventInfoCnvTool.h 793563 2017-01-23 21:59:34Z leggett $
8 #ifndef XAODCNVINTERFACES_IEVENTINFOCNVTOOL_H
9 #define XAODCNVINTERFACES_IEVENTINFOCNVTOOL_H
10 
11 // Gaudi/Athena include(s):
12 #include "GaudiKernel/IAlgTool.h"
13 #include "GaudiKernel/ThreadLocalContext.h"
14 
15 // Forward declaration(s):
16 namespace xAOD {
17  class EventInfo_v1;
19 }
20 class EventInfo;
21 
22 namespace xAODMaker {
23 
25  static const InterfaceID
26  IID_IEventInfoCnvTool( "xAODMaker::IEventInfoCnvTool", 1, 0 );
27 
40  class IEventInfoCnvTool : public virtual IAlgTool {
41 
42  public:
44  virtual StatusCode convert( const EventInfo* aod,
45  xAOD::EventInfo* xaod,
46  bool pileUpInfo = false,
47  bool copyPileUpLinks = true,
48  const EventContext& ctx = Gaudi::Hive::currentContext()) const = 0;
49 
51  static const InterfaceID& interfaceID() {
52  return IID_IEventInfoCnvTool;
53  }
54 
55  }; // class IEventInfoCnvTool
56 
57 } // namespace xAODMaker
58 
59 #endif // XAODCNVINTERFACES_IEVENTINFOCNVTOOL_H
xAOD::EventInfo
EventInfo_v1 EventInfo
Definition of the latest event info version.
Definition: IEventInfoCnvTool.h:17
xAODMaker::IEventInfoCnvTool
Interface for the tool creating xAOD::EventInfo from an AOD.
Definition: IEventInfoCnvTool.h:40
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAODMaker
Definition: StoreGateSvc.h:72
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EventInfo
This class provides general information about an event. Event information is provided by the accessor...
Definition: EventInfo/EventInfo/EventInfo.h:43
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
xAODMaker::IEventInfoCnvTool::interfaceID
static const InterfaceID & interfaceID()
Gaudi interface definition.
Definition: IEventInfoCnvTool.h:51
xAODMaker::IEventInfoCnvTool::convert
virtual StatusCode convert(const EventInfo *aod, xAOD::EventInfo *xaod, bool pileUpInfo=false, bool copyPileUpLinks=true, const EventContext &ctx=Gaudi::Hive::currentContext()) const =0
Function that fills an existing xAOD::EventInfo object with data.