ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
AFPSiLayerSummaryProfileBase Class Reference

Base class for summary distributions (showing mean value for each plane) More...

#include <AFPSiLayerSummaryProfileBase.h>

Inheritance diagram for AFPSiLayerSummaryProfileBase:
Collaboration diagram for AFPSiLayerSummaryProfileBase:

Public Member Functions

 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. More...
 
virtual ~AFPSiLayerSummaryProfileBase ()
 Does nothing. The ownership of the m_profile object is taken by monitoring service. More...
 
 AFPSiLayerSummaryProfileBase (const AFPSiLayerSummaryProfileBase &)=delete
 
AFPSiLayerSummaryProfileBaseoperator= (const AFPSiLayerSummaryProfileBase &)=delete
 
void book ()
 Registers the m_profile as a histogram in m_parentTool. More...
 
TProfileprofile ()
 Returns the profile object m_profile. More...
 

Protected Attributes

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

Base class for summary distributions (showing mean value for each plane)

Definition at line 19 of file AFPSiLayerSummaryProfileBase.h.

Constructor & Destructor Documentation

◆ AFPSiLayerSummaryProfileBase() [1/2]

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 at line 11 of file AFPSiLayerSummaryProfileBase.cxx.

11  : m_parentTool(parentTool), m_monGrp (monGrp)
12 {
13  // count number of layers in monitor
14  int totalPlanes = 0;
15  for (const ToolHandle<IAFPSiStationMonitor>& station : *(m_parentTool->stationsMonitors()) )
16  totalPlanes += station->layersMonitors().size();
17 
18  // create TProfile object
19  m_profile = new TProfile(name.data(),
20  title.data(),
21  totalPlanes, - 0.5, totalPlanes + 0.5);
22 
23  // set names of bins
24  TAxis* axis = m_profile->GetXaxis();
25  int binCounter = 1;
26  for (const ToolHandle<IAFPSiStationMonitor>& station : *(m_parentTool->stationsMonitors()))
27  for (const ToolHandle<IAFPSiLayerMonitor>& layer : station->layersMonitors()) {
28  axis->SetBinLabel (binCounter, layer->layerFullName().data());
29  ++binCounter;
30  }
31 }

◆ ~AFPSiLayerSummaryProfileBase()

virtual AFPSiLayerSummaryProfileBase::~AFPSiLayerSummaryProfileBase ( )
inlinevirtual

Does nothing. The ownership of the m_profile object is taken by monitoring service.

Definition at line 26 of file AFPSiLayerSummaryProfileBase.h.

26 {}

◆ AFPSiLayerSummaryProfileBase() [2/2]

AFPSiLayerSummaryProfileBase::AFPSiLayerSummaryProfileBase ( const AFPSiLayerSummaryProfileBase )
delete

Member Function Documentation

◆ book()

void AFPSiLayerSummaryProfileBase::book ( )

Registers the m_profile as a histogram in m_parentTool.

Definition at line 34 of file AFPSiLayerSummaryProfileBase.cxx.

35 {
37 }

◆ operator=()

AFPSiLayerSummaryProfileBase& AFPSiLayerSummaryProfileBase::operator= ( const AFPSiLayerSummaryProfileBase )
delete

◆ profile()

TProfile* AFPSiLayerSummaryProfileBase::profile ( )
inline

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
protected

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
protected

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
protected

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

Definition at line 39 of file AFPSiLayerSummaryProfileBase.h.


The documentation for this class was generated from the following files:
AFPSiLayerSummaryProfileBase::m_monGrp
ManagedMonitorToolBase::MonGroup m_monGrp
Configuration of the monitoring options.
Definition: AFPSiLayerSummaryProfileBase.h:49
yodamerge_tmp.axis
list axis
Definition: yodamerge_tmp.py:241
AFPSiLayerSummaryProfileBase::m_profile
TProfile * m_profile
The summary distribution. TProfile ensures proper merging of mean values.
Definition: AFPSiLayerSummaryProfileBase.h:39
python.TrigEgammaMonitorHelper.TProfile
def TProfile(*args, **kwargs)
Definition: TrigEgammaMonitorHelper.py:81
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
covarianceTool.title
title
Definition: covarianceTool.py:542
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
AFPHitsMonitorTool::stationsMonitors
const ToolHandleArray< IAFPSiStationMonitor > * stationsMonitors() const
Array of tool handles for monitoring each station m_stationsMonitors.
Definition: AFPHitsMonitorTool.h:77
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