ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
AFPSiLayerSummaryProfileEventEnd< T > Class Template Reference

Final class representing a summary distribution filled once per event. More...

#include <AFPSiLayerSummaryProfileEventEnd.h>

Inheritance diagram for AFPSiLayerSummaryProfileEventEnd< T >:
Collaboration diagram for AFPSiLayerSummaryProfileEventEnd< T >:

Public Member Functions

 AFPSiLayerSummaryProfileEventEnd (AFPHitsMonitorTool *parentTool, const ManagedMonitorToolBase::MonGroup &monGrp, const std::string &name, const std::string &title, T(IAFPSiLayerMonitor::*value)() const)
 Assigns values and calls base class constructor. More...
 
void fillEventEnd (const std::string &binName, const IAFPSiLayerMonitor *layer) override
 Fills the distribution using data passed in arguments. More...
 
void book ()
 Registers the m_profile as a histogram in m_parentTool. More...
 
TProfileprofile ()
 Returns the profile object m_profile. More...
 

Protected Attributes

T(IAFPSiLayerMonitor::* m_value )() const
 pointer to the member method which calculates quantity used to fill the distribution. More...
 
TProfilem_profile
 The summary distribution. TProfile ensures proper merging of mean values. More...
 
AFPHitsMonitorToolm_parentTool
 Pointer to the parent tool in which the distribution is registered. More...
 
ManagedMonitorToolBase::MonGroup m_monGrp
 Configuration of the monitoring options. More...
 

Detailed Description

template<typename T>
class AFPSiLayerSummaryProfileEventEnd< T >

Final class representing a summary distribution filled once per event.

Definition at line 17 of file AFPSiLayerSummaryProfileEventEnd.h.

Constructor & Destructor Documentation

◆ AFPSiLayerSummaryProfileEventEnd()

template<typename T >
AFPSiLayerSummaryProfileEventEnd< T >::AFPSiLayerSummaryProfileEventEnd ( AFPHitsMonitorTool parentTool,
const ManagedMonitorToolBase::MonGroup monGrp,
const std::string &  name,
const std::string &  title,
T(IAFPSiLayerMonitor::*)() const  value 
)
inline

Assigns values and calls base class constructor.

Parameters
parentToolpointer to the main monitoring tool to which the summary distribution belongs
monGrpconfiguration of the monitoring properties e.g. frequency of rebooking (per lumi-block, per run), directory where the distribution should be saved
namename of the distribution, used as key when saving the distribution to a file
titletitle of the distribution, displayed at the top of the distribution
valuepointer to the member method which calculates quantity used to fill the distribution

Definition at line 27 of file AFPSiLayerSummaryProfileEventEnd.h.

27  :
28  AFPSiLayerSummaryProfileBase (parentTool, monGrp, name, title),
29  m_value(value)
30  {}

Member Function Documentation

◆ book()

void AFPSiLayerSummaryProfileBase::book ( )
inherited

Registers the m_profile as a histogram in m_parentTool.

Definition at line 34 of file AFPSiLayerSummaryProfileBase.cxx.

35 {
37 }

◆ fillEventEnd()

template<typename T >
void AFPSiLayerSummaryProfileEventEnd< T >::fillEventEnd ( const std::string &  binName,
const IAFPSiLayerMonitor layer 
)
inlineoverridevirtual

Fills the distribution using data passed in arguments.

Parameters
binNamename of the bin (layer) in summary distribution for which entry is to be added
layerpointer to the IAFPSiLayerMonitor object which provides value to fill the distribution

Implements IAFPSiLayerSummaryEventEnd.

Definition at line 33 of file AFPSiLayerSummaryProfileEventEnd.h.

34  {m_profile->Fill(binName.data(), (layer->*m_value)());}

◆ profile()

TProfile* AFPSiLayerSummaryProfileBase::profile ( )
inlineinherited

Returns the profile object m_profile.

Definition at line 35 of file AFPSiLayerSummaryProfileBase.h.

35 {return m_profile;}

Member Data Documentation

◆ m_monGrp

ManagedMonitorToolBase::MonGroup AFPSiLayerSummaryProfileBase::m_monGrp
protectedinherited

Configuration of the monitoring options.

Defines, among others, how often the distribution should be renewed e.g. every luminosity block or every run and sets where the distribution should be saved i.e. in which ROOT file directory.

Definition at line 49 of file AFPSiLayerSummaryProfileBase.h.

◆ m_parentTool

AFPHitsMonitorTool* AFPSiLayerSummaryProfileBase::m_parentTool
protectedinherited

Pointer to the parent tool in which the distribution is registered.

Definition at line 42 of file AFPSiLayerSummaryProfileBase.h.

◆ m_profile

TProfile* AFPSiLayerSummaryProfileBase::m_profile
protectedinherited

The summary distribution. TProfile ensures proper merging of mean values.

Definition at line 39 of file AFPSiLayerSummaryProfileBase.h.

◆ m_value

template<typename T >
T(IAFPSiLayerMonitor::* AFPSiLayerSummaryProfileEventEnd< T >::m_value) () const
protected

pointer to the member method which calculates quantity used to fill the distribution.

Definition at line 38 of file AFPSiLayerSummaryProfileEventEnd.h.


The documentation for this class was generated from the following file:
AFPSiLayerSummaryProfileBase::m_monGrp
ManagedMonitorToolBase::MonGroup m_monGrp
Configuration of the monitoring options.
Definition: AFPSiLayerSummaryProfileBase.h:49
AFPSiLayerSummaryProfileBase::AFPSiLayerSummaryProfileBase
AFPSiLayerSummaryProfileBase(AFPHitsMonitorTool *parentTool, const ManagedMonitorToolBase::MonGroup &monGrp, const std::string &name, const std::string &title)
Creates a TPofile object m_profile and sets bin labels according to monitors in m_parentTool.
Definition: AFPSiLayerSummaryProfileBase.cxx:11
AFPSiLayerSummaryProfileBase::m_profile
TProfile * m_profile
The summary distribution. TProfile ensures proper merging of mean values.
Definition: AFPSiLayerSummaryProfileBase.h:39
athena.value
value
Definition: athena.py:122
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
covarianceTool.title
title
Definition: covarianceTool.py:542
AFPSiLayerSummaryProfileEventEnd::m_value
T(IAFPSiLayerMonitor::* m_value)() const
pointer to the member method which calculates quantity used to fill the distribution.
Definition: AFPSiLayerSummaryProfileEventEnd.h:38
AFPSiLayerSummaryProfileBase::m_parentTool
AFPHitsMonitorTool * m_parentTool
Pointer to the parent tool in which the distribution is registered.
Definition: AFPSiLayerSummaryProfileBase.h:42
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TProfile::Fill
int Fill(double, double)
Definition: rootspy.cxx:523
ManagedMonitorToolBase::regHist
virtual StatusCode regHist(TH1 *h, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical ...
Definition: ManagedMonitorToolBase.cxx:1454