ATLAS Offline Software
Loading...
Searching...
No Matches
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
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//
28class 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 ,m_eventInfoKey, "actualInteractionsPerCrossing"
54 ,"Decoration for Actual Interaction Per Crossing"};
55
57 ,"averageInteractionsPerCrossingKey"
58 ,m_eventInfoKey, "averageInteractionsPerCrossing"
59 ,"Decoration for Average Interaction Per Crossing"};
60};
61
62
63#endif
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Tool to provide interactions per crossing (mu) from reading values stored in DB.
virtual StatusCode initialize() override
virtual float averageInteractionsPerCrossing(const EventContext &ctx) const override final
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rdhkAveMu
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rdhkActMu
virtual float actualInteractionsPerCrossing(const EventContext &ctx) const override final
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.