ATLAS Offline Software
AFPTechnicalLayerMonitor.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include <sstream>
6 
8 
9 #include <LWHists/TH1F_LW.h>
10 
11 #include "../AFP_Monitoring/AFPTechnicalLayerMonitor.h"
12 
14  : m_pixelLayerID (pixelLayerID)
15  ,m_stationID (stationID)
16 {
17  // make sure that in first event time-over threshold can be overwriten
18 }
19 
20 
22 {
23 }
24 
25 // Description: Used for re-booking managed histograms
26 void AFPTechnicalLayerMonitor::bookHistograms(ManagedMonitorToolBase* toolToStoreHistograms, const std::string& histsDirName)
27 {
28 
29  // ********** Per lumi block **********
30  ManagedMonitorToolBase::MonGroup managed_booking_lumiBlock( toolToStoreHistograms, histsDirName.data(), toolToStoreHistograms->lumiBlock); // to re-booked every luminosity block
31 
32 }
33 
34 
36 {
37  // fill histograms
38 
39 }
40 
42 {
43 
44 }
45 
47 {
48 
49 }
50 
51 
52 std::string AFPTechnicalLayerMonitor::makeHistName (const std::string& name) const
53 {
54  std::stringstream histName;
55  histName<<name<<"St"<<m_stationID<<"Layer"<<m_pixelLayerID;
56 
57  return histName.str();
58 }
59 
60 
61 std::string AFPTechnicalLayerMonitor::makeHistTitle (const std::string& title) const
62 {
63  std::stringstream histTitle;
64  histTitle<<title<<" in station "<<m_stationID<<" for layer "<<m_pixelLayerID;
65 
66  return histTitle.str();
67 }
AFPTechnicalLayerMonitor::makeHistName
std::string makeHistName(const std::string &name) const
Creates a name suffixed with station and layer numbers.
Definition: AFPTechnicalLayerMonitor.cxx:52
TH1F_LW.h
AddEmptyComponent.histName
string histName
Definition: AddEmptyComponent.py:64
ManagedMonitorToolBase::lumiBlock
@ lumiBlock
Definition: ManagedMonitorToolBase.h:114
ManagedMonitorToolBase
Provides functionality for users to implement and save histograms, ntuples, and summary data,...
Definition: ManagedMonitorToolBase.h:74
AFPTechnicalLayerMonitor::bookHistograms
void bookHistograms(ManagedMonitorToolBase *toolToStoreHistograms, const std::string &histsDirName="")
Books histograms used for monitoring.
Definition: AFPTechnicalLayerMonitor.cxx:26
ManagedMonitorToolBase.h
AFPTechnicalLayerMonitor::fillHistograms
void fillHistograms(const AFP_SiRawData &hit)
Fills distributions with information provided by the hit.
Definition: AFPTechnicalLayerMonitor.cxx:35
ManagedMonitorToolBase::MonGroup
A container of information describing a monitoring object.
Definition: ManagedMonitorToolBase.h:138
AFPTechnicalLayerMonitor::m_pixelLayerID
const int m_pixelLayerID
ID number of the monitored pixel layer.
Definition: AFPTechnicalLayerMonitor.h:52
AFPTechnicalLayerMonitor::m_stationID
const int m_stationID
ID number of the station in which the monitored layer is installed.
Definition: AFPTechnicalLayerMonitor.h:55
covarianceTool.title
title
Definition: covarianceTool.py:542
Muon::nsw::STGTPSegments::moduleIDBits::stationID
constexpr uint8_t stationID
Large or Small wedge.
Definition: NSWSTGTPDecodeBitmaps.h:123
AFPTechnicalLayerMonitor::eventEnd
void eventEnd()
Method that should be called when event processing is finished.
Definition: AFPTechnicalLayerMonitor.cxx:41
AFP_SiRawData
Class representing data record for silicon detectors.
Definition: AFP_SiRawData.h:17
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
AFPTechnicalLayerMonitor::endOfLumiBlock
void endOfLumiBlock(ManagedMonitorToolBase *toolToStoreHistograms)
Process histograms at the end of lumiblock (may not be used)
Definition: AFPTechnicalLayerMonitor.cxx:46
AFPTechnicalLayerMonitor::AFPTechnicalLayerMonitor
AFPTechnicalLayerMonitor(const int pixelLayerID, const int stationID)
Definition: AFPTechnicalLayerMonitor.cxx:13
AFPTechnicalLayerMonitor::~AFPTechnicalLayerMonitor
~AFPTechnicalLayerMonitor()
Does nothing.
Definition: AFPTechnicalLayerMonitor.cxx:21
AFPTechnicalLayerMonitor::makeHistTitle
std::string makeHistTitle(const std::string &title) const
Creates a title suffixed with station and layer numbers.
Definition: AFPTechnicalLayerMonitor.cxx:61