ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LumiBlock
LumiBlockComps
src
LumiBlockMuTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
11
12
#ifndef LUMIBLOCKCOMPS_LumiBlockMuTool_H
13
#define LUMIBLOCKCOMPS_LumiBlockMuTool_H
14
15
#include "
LumiBlockComps/ILumiBlockMuTool.h
"
16
17
#include "
AthenaBaseComps/AthAlgTool.h
"
18
#include "
StoreGate/ReadHandleKey.h
"
19
#include "
xAODEventInfo/EventInfo.h
"
20
#include "
StoreGate/ReadDecorHandleKey.h
"
21
22
#include <string>
23
24
// Usually this will be called to retrieve the mu value directly from EventInfo
25
// For data which doesn't have this (or to write it there in the first place)
26
// this can be configured to read the mu value from COOL instead.
27
//
28
class
LumiBlockMuTool
:
public
extends<AthAlgTool, ILumiBlockMuTool> {
29
30
public
:
31
// Use base class constructor
32
using
base_class::base_class;
33
34
// ---------------- user interface -------------------
35
36
// Return interactions per crossing (mu) averaged over all BCIDs in physics bunch group
37
virtual
float
averageInteractionsPerCrossing
(
const
EventContext& ctx)
const
override
final
;
38
39
// Return interactions per crossing (mu) for this specific BCID
40
virtual
float
actualInteractionsPerCrossing
(
const
EventContext& ctx)
const
override
final
;
41
42
// Functions
43
virtual
StatusCode
initialize
()
override
;
44
45
private
:
46
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{this
47
,
"EventInfoKey"
48
,
"EventInfo"
49
,
"RHK for EventInfo"
};
50
51
SG::ReadDecorHandleKey<xAOD::EventInfo>
m_rdhkActMu
{this
52
,
"actualInteractionsPerCrossingKey"
53
,
m_eventInfoKey
,
"actualInteractionsPerCrossing"
54
,
"Decoration for Actual Interaction Per Crossing"
};
55
56
SG::ReadDecorHandleKey<xAOD::EventInfo>
m_rdhkAveMu
{this
57
,
"averageInteractionsPerCrossingKey"
58
,
m_eventInfoKey
,
"averageInteractionsPerCrossing"
59
,
"Decoration for Average Interaction Per Crossing"
};
60
};
61
62
63
#endif
AthAlgTool.h
ILumiBlockMuTool.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
LumiBlockMuTool
Tool to provide interactions per crossing (mu) from reading values stored in DB.
Definition
LumiBlockMuTool.h:28
LumiBlockMuTool::initialize
virtual StatusCode initialize() override
Definition
LumiBlockMuTool.cxx:11
LumiBlockMuTool::averageInteractionsPerCrossing
virtual float averageInteractionsPerCrossing(const EventContext &ctx) const override final
Definition
LumiBlockMuTool.cxx:30
LumiBlockMuTool::m_rdhkAveMu
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rdhkAveMu
Definition
LumiBlockMuTool.h:56
LumiBlockMuTool::m_rdhkActMu
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rdhkActMu
Definition
LumiBlockMuTool.h:51
LumiBlockMuTool::actualInteractionsPerCrossing
virtual float actualInteractionsPerCrossing(const EventContext &ctx) const override final
Definition
LumiBlockMuTool.cxx:21
LumiBlockMuTool::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
LumiBlockMuTool.h:46
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0