Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
12 #ifndef LUMIBLOCKCOMPS_LumiBlockMuTool_H
13 #define LUMIBLOCKCOMPS_LumiBlockMuTool_H
14 
16 
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:
47  ,"EventInfoKey"
48  ,"EventInfo"
49  ,"RHK for EventInfo"};
50 
52  ,"actualInteractionsPerCrossingKey"
53  ,"EventInfo.actualInteractionsPerCrossing"
54  ,"Decoration for Actual Interaction Per Crossing"};
55 
57  ,"averageInteractionsPerCrossingKey"
58  ,"EventInfo.averageInteractionsPerCrossing"
59  ,"Decoration for Average Interaction Per Crossing"};
60 };
61 
62 
63 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
LumiBlockMuTool::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: LumiBlockMuTool.h:46
LumiBlockMuTool::averageInteractionsPerCrossing
virtual float averageInteractionsPerCrossing(const EventContext &ctx) const override final
Definition: LumiBlockMuTool.cxx:30
SG::ReadHandleKey< xAOD::EventInfo >
LumiBlockMuTool::m_rdhkActMu
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rdhkActMu
Definition: LumiBlockMuTool.h:51
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
LumiBlockMuTool::initialize
virtual StatusCode initialize() override
Definition: LumiBlockMuTool.cxx:11
ILumiBlockMuTool.h
EventInfo.h
LumiBlockMuTool::m_rdhkAveMu
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rdhkAveMu
Definition: LumiBlockMuTool.h:56
LumiBlockMuTool::actualInteractionsPerCrossing
virtual float actualInteractionsPerCrossing(const EventContext &ctx) const override final
Definition: LumiBlockMuTool.cxx:21
LumiBlockMuTool
Tool to provide interactions per crossing (mu) from reading values stored in DB.
Definition: LumiBlockMuTool.h:28
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85