|
ATLAS Offline Software
|
Go to the documentation of this file.
19 const std::string&
name,
20 const IInterface*
parent) :
22 m_parentMonitor (nullptr),
25 m_hitMultiplicity(nullptr),
26 m_timeOverThreshold(nullptr),
27 m_hitsInEventHotSpot(0),
28 m_hitMultiplicityHotSpot(nullptr)
30 declareInterface<IAFPSiLayerMonitor>(
this);
55 return StatusCode::SUCCESS;
60 return StatusCode::SUCCESS;
77 constexpr
int nRows = 80;
78 constexpr
int nColumns = 336;
83 nRows, 0.5, nRows + 0.5,
84 nColumns, 0.5, nColumns + 0.5);
93 std::string hitMultiplicityName =
makeHistName(
"h_hitMultiplicity");
94 std::string hitMultiplicityTitle =
makeHistTitle(
"Number of hits per event");
97 hitMultiplicityTitle.data(),
107 std::string hitMultiplicityNameHotSpot =
makeHistName(
"h_hitMultiplicityHotSpot");
108 std::string hitMultiplicityTitleHotSpot =
makeHistTitle(
"Number of hits per event in the hot spot");
111 hitMultiplicityTitleHotSpot.data(),
122 std::string timeOverThresholdName =
makeHistName(
"h_timeOverThreshold");
123 std::string timeOverThresholdTitle =
makeHistTitle(
"Time over threshold");
126 timeOverThresholdTitle.data(),
183 std::stringstream histTitle;
186 return histTitle.str();
void fillHits(const std::string &binName, const xAOD::AFPSiHit &hit) const
Executes IAFPSiLayerSummaryHit::fillHits() on all objects in AFPSiLayerSummaryManager::m_hits.
int m_pixelLayerID
ID number of the silicon pixel layer.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const std::string & histsDirName() const override
Returns name of the ROOT file directory where histograms are stored.
Class representing a hit in silicon detector.
unsigned int m_hitsInEventHotSpot
Counts number of hits in a hot-spot in an event.
TH1 * m_timeOverThreshold
Distribution of number of time-over-threshold i.e. signal strength for each hit.
virtual void Fill(const double &x, const double &y)=0
void bookHistograms(ManagedMonitorToolBase *toolToStoreHistograms, const std::string &histsDirName="") override
Creates, adds axes descriptions and books histograms filled by this monitor.
std::string m_histsDirName
Name of the ROOT file directory where histograms will be saved.
std::string makeHistTitle(const std::string &title) const override
Returns a title suffixed with station and layer numbers.
std::string m_layerFullName
Layer and station name used to label summary histograms bins.
void fillEventEnd(const std::string &binName, const IAFPSiLayerMonitor *layer) const
Executes IAFPSiLayerSummaryHit::fillEventEnd() on all objects in AFPSiLayerSummaryManager::m_eventEnd...
~AFPSiLayerMonitor()
Does nothing
int pixelColIDChip() const
Index of the pixel column in chip coordinate system.
::StatusCode StatusCode
StatusCode definition for legacy code.
AFPSiLayerMonitor(const std::string &type, const std::string &name, const IInterface *parent)
Declares python properites.
void endOfLumiBlock() override
Process histograms at the end of lumiblock.
Definitions of AFP stations identification numbers.
AFPHitsMonitorTool * m_parentMonitor
Pointer to the parent monitoring tool.
StatusCode initialize() override
Constructs m_layerFullName from m_stationID and m_pixelLayerID.
LWHist2D * m_hitMap
2D distribution of hits in a layer row vs column (336 x 80)
unsigned int m_hitsInEvent
Number of counted pixels fired in the current event.
int m_hotSpotStartRow
Defines the first row of a hot spot (including this row).
std::string makeHistName(const std::string &name) const override
Returns a name suffixed with station and layer numbers.
void fillHistograms(const xAOD::AFPSiHit &hit) override
Fills histograms which have to be filled for each hit.
void SetXTitle(const char *)
int m_hotSpotStartCol
Defines the first column of a hot spot (including this column).
int m_hotSpotEndCol
Defines the last column of a hot spot (including this column).
static TH2F_LW * create(const char *name, const char *title, unsigned nbinsx, const double &xmin, const double &xmax, unsigned nbinsy, const double &ymin, const double &ymax)
void SetYTitle(const char *)
StatusCode finalize() override
Does nothing.
TH1 * m_hitMultiplicityHotSpot
Distribution of number of hits in a hot-spot in an event.
float timeOverThreshold() const
Time over threshold of signal for a pixel.
virtual double correctHitsForPileUp(double hits) const override
Normalises number of hits in an event to 0 pile-up.
int pixelRowIDChip() const
Index of the pixel row in chip coordinate system.
int m_hotSpotEndRow
Defines the last row of a hot spot (including this row).
TH1 * m_hitMultiplicity
Distribution of number of hits in an event.
int m_stationID
ID number of the station where the pixel layer is mounted.
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
double m_hitsScaleFactor
Factor for correcting number of hits for pile-up (see AFPSiLayerMonitor::correctHitsForPileUp()
const std::string & layerFullName() const override
Returns layer and station name used to label bins in summary histograms.
void eventEnd() override
Method that should be called when event processing is finished.