Belle II Software development
TOPCalPhotonYields Class Reference

Class to store photon pixel yields for PMT ageing studies, and equalized alpha ratios for finding optically decoupled PMT's. More...

#include <TOPCalPhotonYields.h>

Inheritance diagram for TOPCalPhotonYields:

Public Member Functions

 TOPCalPhotonYields ()
 Default constructor.
 
void setTimeStamp (unsigned utime, unsigned utimeStd)
 Sets unix time stamp.
 
void set (int slot, const TH1F *photonYields, const TH1F *backgroundYields, const TH1F *alphaRatio, const TH1F *activePixels, const TH2F *pulseHeights, const TH1F *muonZ)
 Sets the data of a given slot.
 
unsigned getTimeStamp () const
 Returns average unix time stamp of events used to make histograms stored in this class.
 
unsigned getTimeStampStd () const
 Returns standard deviation of unix time stamps of events used to make histograms stored in this class.
 
const TH2F * getPhotonYields (int slot) const
 Returns a 2D histogram of photon pixel yields.
 
const TH2F * getBackgroundYields (int slot) const
 Returns a 2D histogram of background pixel yields.
 
const TH2F * getAlphaRatio (int slot) const
 Returns a 2D histogram of equalized pixel alpha ratio.
 
const TH2F * getActivePixels (int slot) const
 Returns a 2D histogram of active pixels.
 
const TH2F * getPulseHeights (int slot) const
 Returns a 2D histogram of pixel pulse-heights.
 
const TH1F * getMuonZ (int slot) const
 Returns z distribution of tracks used to determine pixel yields.
 

Private Types

enum  EPixels {
  c_numRows = 8 ,
  c_numCols = 64
}
 Number of pixel rows and columns. More...
 

Private Member Functions

void copyContent (const TH1F *input, TH2F &output)
 Copy content of 1D histogram into 2D histogram.
 
 ClassDef (TOPCalPhotonYields, 2)
 ClassDef.
 

Private Attributes

unsigned m_utime = 0
 average unix time in seconds
 
unsigned m_utimeStd = 0
 standard deviation of unix time in seconds
 
std::vector< TH2F > m_photonYields
 photon yields per pixel (index = slot - 1)
 
std::vector< TH2F > m_backgroundYields
 background yields per pixel (index = slot - 1)
 
std::vector< TH2F > m_alphaRatio
 equalized alpha ratio per pixel (index = slot - 1)
 
std::vector< TH2F > m_activePixels
 active pixels (index = slot - 1)
 
std::vector< TH2F > m_pulseHeights
 pixel pulse-heights (index = slot - 1)
 
std::vector< TH1F > m_muonZ
 local z distribution of tracks (index = slot - 1)
 

Detailed Description

Class to store photon pixel yields for PMT ageing studies, and equalized alpha ratios for finding optically decoupled PMT's.

Definition at line 26 of file TOPCalPhotonYields.h.

Member Enumeration Documentation

◆ EPixels

enum EPixels
private

Number of pixel rows and columns.

Enumerator
c_numRows 

number of pixel rows

c_numCols 

number of pixel columns

Definition at line 122 of file TOPCalPhotonYields.h.

122 {
123 c_numRows = 8,
124 c_numCols = 64
125 };
@ c_numCols
number of pixel columns
@ c_numRows
number of pixel rows

Constructor & Destructor Documentation

◆ TOPCalPhotonYields()

TOPCalPhotonYields ( )
inline

Default constructor.

Definition at line 33 of file TOPCalPhotonYields.h.

33{}

Member Function Documentation

◆ getTimeStamp()

unsigned getTimeStamp ( ) const
inline

Returns average unix time stamp of events used to make histograms stored in this class.

Returns
unix time stamp (in seconds)

Definition at line 64 of file TOPCalPhotonYields.h.

64{return m_utime;}
unsigned m_utime
average unix time in seconds

◆ getTimeStampStd()

unsigned getTimeStampStd ( ) const
inline

Returns standard deviation of unix time stamps of events used to make histograms stored in this class.

Returns
standard deviation (in seconds)

Definition at line 70 of file TOPCalPhotonYields.h.

70{return m_utimeStd;}
unsigned m_utimeStd
standard deviation of unix time in seconds

◆ setTimeStamp()

void setTimeStamp ( unsigned  utime,
unsigned  utimeStd 
)
inline

Sets unix time stamp.

Parameters
utimeaverage unix time stamp (in seconds)
utimeStdstandard deviation (in seconds)

Definition at line 40 of file TOPCalPhotonYields.h.

41 {
42 m_utime = utime;
43 m_utimeStd = utimeStd;
44 }

Member Data Documentation

◆ m_activePixels

std::vector<TH2F> m_activePixels
private

active pixels (index = slot - 1)

Definition at line 139 of file TOPCalPhotonYields.h.

◆ m_alphaRatio

std::vector<TH2F> m_alphaRatio
private

equalized alpha ratio per pixel (index = slot - 1)

Definition at line 138 of file TOPCalPhotonYields.h.

◆ m_backgroundYields

std::vector<TH2F> m_backgroundYields
private

background yields per pixel (index = slot - 1)

Definition at line 137 of file TOPCalPhotonYields.h.

◆ m_muonZ

std::vector<TH1F> m_muonZ
private

local z distribution of tracks (index = slot - 1)

Definition at line 141 of file TOPCalPhotonYields.h.

◆ m_photonYields

std::vector<TH2F> m_photonYields
private

photon yields per pixel (index = slot - 1)

Definition at line 136 of file TOPCalPhotonYields.h.

◆ m_pulseHeights

std::vector<TH2F> m_pulseHeights
private

pixel pulse-heights (index = slot - 1)

Definition at line 140 of file TOPCalPhotonYields.h.

◆ m_utime

unsigned m_utime = 0
private

average unix time in seconds

Definition at line 134 of file TOPCalPhotonYields.h.

◆ m_utimeStd

unsigned m_utimeStd = 0
private

standard deviation of unix time in seconds

Definition at line 135 of file TOPCalPhotonYields.h.


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