Belle II Software development
TOPPmtObsoleteData.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <TObject.h>
12#include <string>
13
14namespace Belle2 {
26 class TOPPmtObsoleteData : public TObject {
27 public:
31 enum EType {c_Unknown = 0, c_Conventional, c_ALD, c_LifeExtALD};
32
37 {}
38
48 TOPPmtObsoleteData(const std::string& serialNumber,
49 EType type,
50 const std::string& cathode,
51 float obsHV,
52 float darkCurrent,
53 float qe380):
54 m_serialNumber(serialNumber), m_type(type), m_cathode(cathode),
55 m_obsoleteHV(obsHV), m_darkCurrent(darkCurrent), m_qe380(qe380)
56 {}
57
62 const std::string& getSerialNumber() const {return m_serialNumber;}
63
68 EType getType() const {return m_type;}
69
74 const std::string& getCathode() const {return m_cathode;}
75
80 float getObsoleteHV() const {return m_obsoleteHV;}
81
86 float getDarkCurrent() const {return m_darkCurrent;}
87
92 float getQE() const {return m_qe380;}
93
94 private:
95
96 std::string m_serialNumber;
97 EType m_type = c_Unknown;
98 std::string m_cathode;
99 float m_obsoleteHV = 0;
100 float m_darkCurrent = 0;
101 float m_qe380 = 0;
105 };
106
108} // end namespace Belle2
109
110
PMT specs from Hamamatsu.
ClassDef(TOPPmtObsoleteData, 2)
ClassDef.
EType m_type
type (conventional, ALD, ...)
std::string m_cathode
photo-cathode type (e.g.
float getDarkCurrent() const
Returns dark current.
TOPPmtObsoleteData()
Default constructor.
float getObsoleteHV() const
Returns high voltage.
float m_qe380
quantum efficiency at 380 nm
std::string m_serialNumber
serial number, e.g.
TOPPmtObsoleteData(const std::string &serialNumber, EType type, const std::string &cathode, float obsHV, float darkCurrent, float qe380)
Full constructor.
float m_obsoleteHV
high voltage: obsolete - NOT to be used
float getQE() const
Returns quantum efficiency at 380 nm.
const std::string & getCathode() const
Returns photo-cathode type.
EType getType() const
Returns PMT type.
const std::string & getSerialNumber() const
Returns PMT serial number.
Abstract base class for different kinds of events.