12#include <framework/logging/Logger.h>
29 enum {c_NumPmtPixels = 16};
67 B2ERROR(
"TOPPmtTTSHisto::setHistogram: null pointer received");
71 if (pmtPixel >= c_NumPmtPixels) {
72 B2ERROR(
"TOPPmtTTSHisto::setHistogram: invalid PMT pixel "
73 <<
LogVar(
"PMT pixel", pmtPixel + 1));
105 if (pmtPixel >= c_NumPmtPixels)
return 0;
Raw measurements of TTS (histograms) for each PMT pixel.
TOPPmtTTSHisto(const std::string &serialNumber, float HV)
Full constructor.
int getNumOfPixels() const
Returns number of PMT pixels.
void setSerialNumber(const std::string &serNum)
Set PMT serial number.
const TH1F * getHistogram(unsigned pmtPixel) const
Returns TTS histogram for a specified pmtPixel.
std::string m_serialNumber
PMT serial number, e.g.
void setHistogram(unsigned pmtPixel, const TH1F *histo)
Set histogram for a given pixel (make a copy)
ClassDef(TOPPmtTTSHisto, 3)
ClassDef.
float getHV() const
Returns high voltage used for TTS measurement.
float m_HV
HV setting for which the set of histograms were taken.
void setHV(float HV)
Set high voltage used for TTS measurement.
TOPPmtTTSHisto()
Default constructor.
TH1F m_histo[c_NumPmtPixels]
histograms of measured TTS (one per pmtPixel)
const std::string & getSerialNumber() const
Returns PMT serial number.
Class to store variables with their name which were sent to the logging service.
Abstract base class for different kinds of events.