Raw measurements of TTS (histograms) for each PMT pixel.
More...
#include <TOPPmtTTSHisto.h>
|
enum | { c_NumPmtPixels = 16
} |
| number of PMT pixels More...
|
|
|
| TOPPmtTTSHisto () |
| Default constructor.
|
|
| TOPPmtTTSHisto (const std::string &serialNumber, float HV) |
| Full constructor.
|
|
void | setSerialNumber (const std::string &serNum) |
| Set PMT serial number.
|
|
void | setHV (float HV) |
| Set high voltage used for TTS measurement.
|
|
void | setHistogram (unsigned pmtPixel, const TH1F *histo) |
| Set histogram for a given pixel (make a copy)
|
|
int | getNumOfPixels () const |
| Returns number of PMT pixels.
|
|
const std::string & | getSerialNumber () const |
| Returns PMT serial number.
|
|
float | getHV () const |
| Returns high voltage used for TTS measurement.
|
|
const TH1F * | getHistogram (unsigned pmtPixel) const |
| Returns TTS histogram for a specified pmtPixel.
|
|
|
std::string | m_serialNumber |
| PMT serial number, e.g.
|
|
float | m_HV = 0 |
| HV setting for which the set of histograms were taken.
|
|
TH1F | m_histo [c_NumPmtPixels] |
| histograms of measured TTS (one per pmtPixel)
|
|
Raw measurements of TTS (histograms) for each PMT pixel.
Definition at line 24 of file TOPPmtTTSHisto.h.
◆ anonymous enum
◆ TOPPmtTTSHisto() [1/2]
◆ TOPPmtTTSHisto() [2/2]
Full constructor.
- Parameters
-
serialNumber | PMT serial number |
HV | high voltage used for the measurement |
Definition at line 42 of file TOPPmtTTSHisto.h.
43 :
45 {}
std::string m_serialNumber
PMT serial number, e.g.
float m_HV
HV setting for which the set of histograms were taken.
◆ getHistogram()
const TH1F * getHistogram |
( |
unsigned |
pmtPixel | ) |
const |
|
inline |
Returns TTS histogram for a specified pmtPixel.
- Parameters
-
pmtPixel | pmtPixel number (1-based) |
- Returns
- TTS histogram pointer or nullptr for invalid pmtPixel
Definition at line 102 of file TOPPmtTTSHisto.h.
103 {
104 pmtPixel--;
105 if (pmtPixel >= c_NumPmtPixels) return 0;
107 }
TH1F m_histo[c_NumPmtPixels]
histograms of measured TTS (one per pmtPixel)
◆ getHV()
Returns high voltage used for TTS measurement.
- Returns
- high voltage
Definition at line 95 of file TOPPmtTTSHisto.h.
◆ getNumOfPixels()
int getNumOfPixels |
( |
| ) |
const |
|
inline |
Returns number of PMT pixels.
- Returns
- number of pixels
Definition at line 83 of file TOPPmtTTSHisto.h.
83{return c_NumPmtPixels;}
◆ getSerialNumber()
const std::string & getSerialNumber |
( |
| ) |
const |
|
inline |
Returns PMT serial number.
- Returns
- serial number
Definition at line 89 of file TOPPmtTTSHisto.h.
◆ setHistogram()
void setHistogram |
( |
unsigned |
pmtPixel, |
|
|
const TH1F * |
histo |
|
) |
| |
|
inline |
Set histogram for a given pixel (make a copy)
- Parameters
-
pmtPixel | pmtPixel number (1-based) |
histo | TTS histogram |
Definition at line 64 of file TOPPmtTTSHisto.h.
65 {
66 if (!histo) {
67 B2ERROR("TOPPmtTTSHisto::setHistogram: null pointer received");
68 return;
69 }
70 pmtPixel--;
71 if (pmtPixel >= c_NumPmtPixels) {
72 B2ERROR("TOPPmtTTSHisto::setHistogram: invalid PMT pixel "
73 <<
LogVar(
"PMT pixel", pmtPixel + 1));
74 return;
75 }
77 }
Class to store variables with their name which were sent to the logging service.
◆ setHV()
Set high voltage used for TTS measurement.
- Parameters
-
Definition at line 57 of file TOPPmtTTSHisto.h.
◆ setSerialNumber()
void setSerialNumber |
( |
const std::string & |
serNum | ) |
|
|
inline |
◆ m_histo
TH1F m_histo[c_NumPmtPixels] |
|
private |
◆ m_HV
HV setting for which the set of histograms were taken.
Definition at line 113 of file TOPPmtTTSHisto.h.
◆ m_serialNumber
std::string m_serialNumber |
|
private |
The documentation for this class was generated from the following file: