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

 LumiBlockMuTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual float averageInteractionsPerCrossing () const override final
 
virtual float actualInteractionsPerCrossing () 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.

Constructor & Destructor Documentation

◆ LumiBlockMuTool()

LumiBlockMuTool::LumiBlockMuTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 10 of file LumiBlockMuTool.cxx.

13  : base_class(type, name, parent)
14 {
15  declareInterface<ILumiBlockMuTool>(this);
16 }

Member Function Documentation

◆ actualInteractionsPerCrossing()

float LumiBlockMuTool::actualInteractionsPerCrossing ( ) const
finaloverridevirtual

Definition at line 29 of file LumiBlockMuTool.cxx.

29  {
30 
33  float mu = actMu.isPresent() ? actMu(0) : 0.;
34  return mu;
35 }

◆ averageInteractionsPerCrossing()

float LumiBlockMuTool::averageInteractionsPerCrossing ( ) const
finaloverridevirtual

Definition at line 38 of file LumiBlockMuTool.cxx.

38  {
39 
42  float mu = aveMu.isPresent() ? aveMu(0) : 0.;
43  return mu;
44 }

◆ initialize()

StatusCode LumiBlockMuTool::initialize ( )
overridevirtual

Definition at line 19 of file LumiBlockMuTool.cxx.

20 {
21  ATH_MSG_DEBUG("LumiBlockMuTool::initialize() begin");
23  ATH_CHECK(m_rdhkActMu.initialize());
24  ATH_CHECK(m_rdhkAveMu.initialize());
25  return StatusCode::SUCCESS;
26 }

Member Data Documentation

◆ m_eventInfoKey

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

Definition at line 48 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 53 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 58 of file LumiBlockMuTool.h.


The documentation for this class was generated from the following files:
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
LumiBlockMuTool::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: LumiBlockMuTool.h:48
LumiBlockMuTool::m_rdhkActMu
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rdhkActMu
Definition: LumiBlockMuTool.h:53
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
test_pyathena.parent
parent
Definition: test_pyathena.py:15
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
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LumiBlockMuTool::m_rdhkAveMu
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rdhkAveMu
Definition: LumiBlockMuTool.h:58
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53