Belle II Software development
TOPPmtInstallation.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 <top/dbobjects/TOPPmtObsoleteData.h>
13
14namespace Belle2 {
23 class TOPPmtInstallation : public TObject {
24 public:
28 enum {c_NumPMTs = 32};
29
30
35 {}
36
46 TOPPmtInstallation(const std::string& serialNumber, int moduleCNumber, int slotNumber,
47 int arrayNumber, int position, TOPPmtObsoleteData::EType type):
48 m_serialNumber(serialNumber), m_moduleCNumber(moduleCNumber), m_slotNumber(slotNumber),
49 m_arrayNumber(arrayNumber), m_position(position), m_type(type)
50 {}
51
56 const std::string& getSerialNumber() const {return m_serialNumber;}
57
62 int getModuleCNumber() const {return m_moduleCNumber;}
63
68 int getSlotNumber() const {return m_slotNumber;}
69
74 int getArrayNumber() const {return m_arrayNumber;}
75
80 int getPosition() const {return m_position;}
81
87
88
89 private:
90
91 std::string m_serialNumber;
93 int m_slotNumber = 0;
94 int m_arrayNumber = 0;
95 int m_position = 0;
97 TOPPmtObsoleteData::EType m_type = TOPPmtObsoleteData::c_Unknown;
101 };
102
104} // end namespace Belle2
105
106
PMT position within a module.
int m_slotNumber
slot number (1-based)
int m_arrayNumber
MCP array number (1-based)
int getModuleCNumber() const
Returns construction module number.
TOPPmtObsoleteData::EType getType() const
Returns PMT type.
TOPPmtInstallation(const std::string &serialNumber, int moduleCNumber, int slotNumber, int arrayNumber, int position, TOPPmtObsoleteData::EType type)
Useful constructor.
ClassDef(TOPPmtInstallation, 2)
ClassDef.
TOPPmtObsoleteData::EType m_type
type (conventional, ALD, ...)
int getPosition() const
Returns PMT position within array/module.
int m_moduleCNumber
module construction number (1-based)
std::string m_serialNumber
serial number, e.g.
int m_position
position within the TOP module (1-based)
int getArrayNumber() const
Returns PMT array number.
TOPPmtInstallation()
Default constructor.
int getSlotNumber() const
Returns slot number.
const std::string & getSerialNumber() const
Returns PMT serial number.
Abstract base class for different kinds of events.