ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODEventInfoCnv
src
EventInfoCnvTool.h
Go to the documentation of this file.
1
// Dear emacs, this is -*- c++ -*-
2
3
/*
4
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#ifndef XAODEVENTINFOCNV_EVENTINFOCNVTOOL_H
8
#define XAODEVENTINFOCNV_EVENTINFOCNVTOOL_H
9
10
// Gaudi/Athena include(s):
11
#include "
AthenaBaseComps/AthAlgTool.h
"
12
#include "GaudiKernel/ServiceHandle.h"
13
#include "GaudiKernel/ToolHandle.h"
14
15
#if !defined(XAOD_ANALYSIS) && !defined(GENERATIONBASE)
16
#include "
StoreGate/ReadCondHandleKey.h
"
17
#endif
// not XAOD_ANALYSIS or GENERATIONBASE
18
19
#if !defined(XAOD_ANALYSIS) && !defined(GENERATIONBASE)
20
// Beam condition include(s):
21
#include "
BeamSpotConditionsData/BeamSpotData.h
"
22
#endif
// not XAOD_ANALYSIS or GENERATIONBASE
23
24
#if !defined(XAOD_ANALYSIS) && !defined(SIMULATIONBASE) && !defined(GENERATIONBASE)
25
// Luminosity include(s):
26
#include "
LumiBlockData/LuminosityCondData.h
"
27
#endif
// not XAOD_ANALYSIS or SIMULATIONBASE or GENERATIONBASE
28
29
// xAOD include(s):
30
#include "
xAODCnvInterfaces/IEventInfoCnvTool.h
"
31
32
namespace
xAODMaker
{
33
42
class
EventInfoCnvTool
:
public
AthAlgTool
,
43
public
virtual
IEventInfoCnvTool
{
44
45
public
:
47
EventInfoCnvTool
(
const
std::string&
type
,
const
std::string& name,
48
const
IInterface* parent );
49
51
virtual
StatusCode
initialize
()
override
;
52
54
virtual
StatusCode
convert
(
const
EventContext& ctx,
55
const
EventInfo
* aod,
56
xAOD::EventInfo
* xaod,
57
bool
pileUpInfo =
false
,
58
bool
copyPileUpLinks =
true
)
const override
;
59
60
private
:
61
#if !defined(XAOD_ANALYSIS) && !defined(GENERATIONBASE)
62
SG::ReadCondHandleKey<InDet::BeamSpotData>
m_beamSpotKey
{
this
,
"BeamSpotKey"
,
"BeamSpotData"
,
"SG key for beam spot"
};
63
Gaudi::Property<bool>
m_disableBeamSpot
{
this
,
"DisableBeamSpot"
,
false
,
"disable beamspot"
};
64
66
bool
m_beamSpotInformationAvailable
{};
67
#endif
// not XAOD_ANALYSIS or GENERATIONBASE
68
69
#if !defined(XAOD_ANALYSIS) && !defined(SIMULATIONBASE) && !defined(GENERATIONBASE)
70
SG::ReadCondHandleKey<LuminosityCondData>
m_lumiDataKey
71
{
this
,
"LumiDataKey"
,
""
,
"SG key for luminosity data"
};
72
#endif
// not XAOD_ANALYSIS or SIMULATIONBASE or GENERATIONBASE
73
74
};
// class EventInfoCnvTool
75
76
}
// namespace xAODMaker
77
78
#endif
// XAODEVENTINFOCNV_EVENTINFOCNVTOOL_H
AthAlgTool.h
BeamSpotData.h
IEventInfoCnvTool.h
LuminosityCondData.h
Hold luminosity data produced by LuminosityCondAlg.
ReadCondHandleKey.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
xAODMaker::EventInfoCnvTool::m_lumiDataKey
SG::ReadCondHandleKey< LuminosityCondData > m_lumiDataKey
Definition
EventInfoCnvTool.h:71
xAODMaker::EventInfoCnvTool::m_disableBeamSpot
Gaudi::Property< bool > m_disableBeamSpot
Definition
EventInfoCnvTool.h:63
xAODMaker::EventInfoCnvTool::EventInfoCnvTool
EventInfoCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
Definition
EventInfoCnvTool.cxx:52
xAODMaker::EventInfoCnvTool::initialize
virtual StatusCode initialize() override
Function initialising the tool.
Definition
EventInfoCnvTool.cxx:61
xAODMaker::EventInfoCnvTool::convert
virtual StatusCode convert(const EventContext &ctx, const EventInfo *aod, xAOD::EventInfo *xaod, bool pileUpInfo=false, bool copyPileUpLinks=true) const override
Function that fills an existing xAOD::EventInfo object with data.
Definition
EventInfoCnvTool.cxx:103
xAODMaker::EventInfoCnvTool::m_beamSpotInformationAvailable
bool m_beamSpotInformationAvailable
Internal flag for the availability of the beam spot information.
Definition
EventInfoCnvTool.h:66
xAODMaker::EventInfoCnvTool::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition
EventInfoCnvTool.h:62
xAODMaker::IEventInfoCnvTool
Interface for the tool creating xAOD::EventInfo from an AOD.
Definition
IEventInfoCnvTool.h:37
EventInfo
Definition
EventInfo.py:1
xAODMaker
Definition
StoreGateSvc.h:70
xAOD::EventInfo
EventInfo_v1 EventInfo
Definition of the latest event info version.
Definition
IEventInfoCnvTool.h:16
type
Generated on
for ATLAS Offline Software by
1.17.0