ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LumiBlockMuTool Class Reference

Tool to provide interactions per crossing (mu) from reading values stored in DB. More...

#include <LumiBlockMuTool.h>

Inheritance diagram for LumiBlockMuTool:
Collaboration diagram for LumiBlockMuTool:

Public Member Functions

virtual float averageInteractionsPerCrossing (const EventContext &ctx) const override final
 
virtual float actualInteractionsPerCrossing (const EventContext &ctx) const override final
 
virtual StatusCode initialize () override
 

Private Attributes

SG::ReadHandleKey< xAOD::EventInfom_eventInfoKey
 
SG::ReadDecorHandleKey< xAOD::EventInfom_rdhkActMu
 
SG::ReadDecorHandleKey< xAOD::EventInfom_rdhkAveMu
 

Detailed Description

Tool to provide interactions per crossing (mu) from reading values stored in DB.

Implementing ILumiBlockMuTool interface

Author
E.Torrence

Definition at line 28 of file LumiBlockMuTool.h.

Member Function Documentation

◆ actualInteractionsPerCrossing()

float LumiBlockMuTool::actualInteractionsPerCrossing ( const EventContext &  ctx) const
finaloverridevirtual

Definition at line 21 of file LumiBlockMuTool.cxx.

21  {
22 
25  float mu = actMu.isPresent() ? actMu(0) : 0.;
26  return mu;
27 }

◆ averageInteractionsPerCrossing()

float LumiBlockMuTool::averageInteractionsPerCrossing ( const EventContext &  ctx) const
finaloverridevirtual

Definition at line 30 of file LumiBlockMuTool.cxx.

30  {
31 
34  float mu = aveMu.isPresent() ? aveMu(0) : 0.;
35  return mu;
36 }

◆ initialize()

StatusCode LumiBlockMuTool::initialize ( )
overridevirtual

Definition at line 11 of file LumiBlockMuTool.cxx.

12 {
13  ATH_MSG_DEBUG("LumiBlockMuTool::initialize() begin");
15  ATH_CHECK(m_rdhkActMu.initialize());
16  ATH_CHECK(m_rdhkAveMu.initialize());
17  return StatusCode::SUCCESS;
18 }

Member Data Documentation

◆ m_eventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> LumiBlockMuTool::m_eventInfoKey
private
Initial value:
{this
,"EventInfoKey"
,"EventInfo"
,"RHK for EventInfo"}

Definition at line 46 of file LumiBlockMuTool.h.

◆ m_rdhkActMu

SG::ReadDecorHandleKey<xAOD::EventInfo> LumiBlockMuTool::m_rdhkActMu
private
Initial value:
{this
,"actualInteractionsPerCrossingKey"
,"EventInfo.actualInteractionsPerCrossing"
,"Decoration for Actual Interaction Per Crossing"}

Definition at line 51 of file LumiBlockMuTool.h.

◆ m_rdhkAveMu

SG::ReadDecorHandleKey<xAOD::EventInfo> LumiBlockMuTool::m_rdhkAveMu
private
Initial value:
{this
,"averageInteractionsPerCrossingKey"
,"EventInfo.averageInteractionsPerCrossing"
,"Decoration for Average Interaction Per Crossing"}

Definition at line 56 of file LumiBlockMuTool.h.


The documentation for this class was generated from the following files:
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:67
LumiBlockMuTool::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: LumiBlockMuTool.h:46
LumiBlockMuTool::m_rdhkActMu
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rdhkActMu
Definition: LumiBlockMuTool.h:51
SG::ReadDecorHandle
Handle class for reading a decoration on an object.
Definition: StoreGate/StoreGate/ReadDecorHandle.h:94
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
LumiBlockMuTool::m_rdhkAveMu
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rdhkAveMu
Definition: LumiBlockMuTool.h:56
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:51