ATLAS Offline Software
LumiBlockMuTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 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 
32  LumiBlockMuTool(const std::string& type,
33  const std::string& name,
34  const IInterface* parent);
35 
36  // ---------------- user interface -------------------
37 
38  // Return interactions per crossing (mu) averaged over all BCIDs in physics bunch group
39  virtual float averageInteractionsPerCrossing() const override final;
40 
41  // Return interactions per crossing (mu) for this specific BCID
42  virtual float actualInteractionsPerCrossing() const override final;
43 
44  // Functions
45  virtual StatusCode initialize() override;
46 
47  private:
49  ,"EventInfoKey"
50  ,"EventInfo"
51  ,"RHK for EventInfo"};
52 
54  ,"actualInteractionsPerCrossingKey"
55  ,"EventInfo.actualInteractionsPerCrossing"
56  ,"Decoration for Actual Interaction Per Crossing"};
57 
59  ,"averageInteractionsPerCrossingKey"
60  ,"EventInfo.averageInteractionsPerCrossing"
61  ,"Decoration for Average Interaction Per Crossing"};
62 };
63 
64 
65 #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::actualInteractionsPerCrossing
virtual float actualInteractionsPerCrossing() const override final
Definition: LumiBlockMuTool.cxx:29
LumiBlockMuTool::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: LumiBlockMuTool.h:48
SG::ReadHandleKey< xAOD::EventInfo >
LumiBlockMuTool::m_rdhkActMu
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rdhkActMu
Definition: LumiBlockMuTool.h:53
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
LumiBlockMuTool::initialize
virtual StatusCode initialize() override
Definition: LumiBlockMuTool.cxx:19
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
ILumiBlockMuTool.h
EventInfo.h
LumiBlockMuTool::m_rdhkAveMu
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rdhkAveMu
Definition: LumiBlockMuTool.h:58
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LumiBlockMuTool
Tool to provide interactions per crossing (mu) from reading values stored in DB.
Definition: LumiBlockMuTool.h:28
LumiBlockMuTool::LumiBlockMuTool
LumiBlockMuTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: LumiBlockMuTool.cxx:10
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
LumiBlockMuTool::averageInteractionsPerCrossing
virtual float averageInteractionsPerCrossing() const override final
Definition: LumiBlockMuTool.cxx:38