Belle II Software  release-08-01-10
TOPPmtTTSHisto Class Reference

Raw measurements of TTS (histograms) for each PMT pixel. More...

#include <TOPPmtTTSHisto.h>

Inheritance diagram for TOPPmtTTSHisto:
Collaboration diagram for TOPPmtTTSHisto:

Public Types

enum  { c_NumPmtPixels = 16 }
 number of PMT pixels
 

Public Member Functions

 TOPPmtTTSHisto ()
 Default constructor.
 
 TOPPmtTTSHisto (const std::string &serialNumber, float HV)
 Full constructor. More...
 
void setSerialNumber (const std::string &serNum)
 Set PMT serial number. More...
 
void setHV (float HV)
 Set high voltage used for TTS measurement. More...
 
void setHistogram (unsigned pmtPixel, const TH1F *histo)
 Set histogram for a given pixel (make a copy) More...
 
int getNumOfPixels () const
 Returns number of PMT pixels. More...
 
const std::string & getSerialNumber () const
 Returns PMT serial number. More...
 
float getHV () const
 Returns high voltage used for TTS measurement. More...
 
const TH1F * getHistogram (unsigned pmtPixel) const
 Returns TTS histogram for a specified pmtPixel. More...
 

Private Member Functions

 ClassDef (TOPPmtTTSHisto, 3)
 ClassDef.
 

Private Attributes

std::string m_serialNumber
 PMT serial number, e.g. More...
 
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)
 

Detailed Description

Raw measurements of TTS (histograms) for each PMT pixel.

Definition at line 24 of file TOPPmtTTSHisto.h.

Constructor & Destructor Documentation

◆ TOPPmtTTSHisto()

TOPPmtTTSHisto ( const std::string &  serialNumber,
float  HV 
)
inline

Full constructor.

Parameters
serialNumberPMT serial number
HVhigh voltage used for the measurement

Definition at line 42 of file TOPPmtTTSHisto.h.

43  :
44  m_serialNumber(serialNumber), m_HV(HV)
45  {}
std::string m_serialNumber
PMT serial number, e.g.
float m_HV
HV setting for which the set of histograms were taken.

Member Function Documentation

◆ getHistogram()

const TH1F* getHistogram ( unsigned  pmtPixel) const
inline

Returns TTS histogram for a specified pmtPixel.

Parameters
pmtPixelpmtPixel number (1-based)
Returns
TTS histogram pointer or nullptr for invalid pmtPixel

Definition at line 102 of file TOPPmtTTSHisto.h.

◆ getHV()

float getHV ( ) const
inline

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.

◆ 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
pmtPixelpmtPixel number (1-based)
histoTTS histogram

Definition at line 64 of file TOPPmtTTSHisto.h.

◆ setHV()

void setHV ( float  HV)
inline

Set high voltage used for TTS measurement.

Parameters
HVhigh voltage

Definition at line 57 of file TOPPmtTTSHisto.h.

◆ setSerialNumber()

void setSerialNumber ( const std::string &  serNum)
inline

Set PMT serial number.

Parameters
serNumserial number

Definition at line 51 of file TOPPmtTTSHisto.h.

Member Data Documentation

◆ m_serialNumber

std::string m_serialNumber
private

PMT serial number, e.g.

JTxxxx

Definition at line 112 of file TOPPmtTTSHisto.h.


The documentation for this class was generated from the following file: