12#include <framework/logging/Logger.h>
57 void set(
int slot,
const TH1F* photonYields,
const TH1F* backgroundYields,
const TH1F* alphaRatio,
58 const TH1F* activePixels,
const TH2F* pulseHeights,
const TH1F* muonZ);
115 const TH1F*
getMuonZ(
int slot)
const;
Class to store photon pixel yields for PMT ageing studies, and equalized alpha ratios for finding opt...
std::vector< TH2F > m_activePixels
active pixels (index = slot - 1)
std::vector< TH2F > m_pulseHeights
pixel pulse-heights (index = slot - 1)
unsigned m_utime
average unix time in seconds
unsigned m_utimeStd
standard deviation of unix time in seconds
unsigned getTimeStamp() const
Returns average unix time stamp of events used to make histograms stored in this class.
std::vector< TH1F > m_muonZ
local z distribution of tracks (index = slot - 1)
ClassDef(TOPCalPhotonYields, 2)
ClassDef.
static constexpr int c_numCols
number of pixel columns
std::vector< TH2F > m_alphaRatio
equalized alpha ratio per pixel (index = slot - 1)
unsigned getTimeStampStd() const
Returns standard deviation of unix time stamps of events used to make histograms stored in this class...
static constexpr int c_numRows
number of pixel rows
void setTimeStamp(unsigned utime, unsigned utimeStd)
Sets unix time stamp.
TOPCalPhotonYields()
Default constructor.
std::vector< TH2F > m_photonYields
photon yields per pixel (index = slot - 1)
std::vector< TH2F > m_backgroundYields
background yields per pixel (index = slot - 1)
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.
const TH2F * getAlphaRatio(int slot) const
Returns a 2D histogram of equalized pixel alpha ratio.
const TH1F * getMuonZ(int slot) const
Returns z distribution of tracks used to determine pixel yields.
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 TH2F * getBackgroundYields(int slot) const
Returns a 2D histogram of background pixel yields.
void copyContent(const TH1F *input, TH2F &output)
Copy content of 1D histogram into 2D histogram.
const TH2F * getPhotonYields(int slot) const
Returns a 2D histogram of photon pixel yields.
Abstract base class for different kinds of events.