Belle II Software  release-05-01-25
TOPPmtInstallation.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric, Alessandro Gaz *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <TObject.h>
14 #include <top/dbobjects/TOPPmtObsoleteData.h>
15 
16 namespace Belle2 {
25  class TOPPmtInstallation : public TObject {
26  public:
30  enum {c_NumPMTs = 32};
31 
32 
37  {}
38 
48  TOPPmtInstallation(const std::string& serialNumber, int moduleCNumber, int slotNumber,
49  int arrayNumber, int position, TOPPmtObsoleteData::EType type):
50  m_serialNumber(serialNumber), m_moduleCNumber(moduleCNumber), m_slotNumber(slotNumber),
51  m_arrayNumber(arrayNumber), m_position(position), m_type(type)
52  {}
53 
58  const std::string& getSerialNumber() const {return m_serialNumber;}
59 
64  int getModuleCNumber() const {return m_moduleCNumber;}
65 
70  int getSlotNumber() const {return m_slotNumber;}
71 
76  int getArrayNumber() const {return m_arrayNumber;}
77 
82  int getPosition() const {return m_position;}
83 
88  TOPPmtObsoleteData::EType getType() const {return m_type;}
89 
90 
91  private:
92 
93  std::string m_serialNumber;
94  int m_moduleCNumber = 0;
95  int m_slotNumber = 0;
96  int m_arrayNumber = 0;
97  int m_position = 0;
99  TOPPmtObsoleteData::EType m_type = TOPPmtObsoleteData::c_Unknown;
103  };
104 
106 } // end namespace Belle2
107 
108 
Belle2::TOPPmtInstallation::getArrayNumber
int getArrayNumber() const
Returns PMT array number.
Definition: TOPPmtInstallation.h:84
Belle2::TOPPmtInstallation::m_type
TOPPmtObsoleteData::EType m_type
type (conventional, ALD, ...)
Definition: TOPPmtInstallation.h:107
Belle2::TOPPmtInstallation::m_position
int m_position
position within the TOP module (1-based)
Definition: TOPPmtInstallation.h:105
Belle2::TOPPmtInstallation::m_moduleCNumber
int m_moduleCNumber
module construction number (1-based)
Definition: TOPPmtInstallation.h:102
Belle2::TOPPmtInstallation
PMT position within a module.
Definition: TOPPmtInstallation.h:33
Belle2::TOPPmtInstallation::getType
TOPPmtObsoleteData::EType getType() const
Returns PMT type.
Definition: TOPPmtInstallation.h:96
Belle2::TOPPmtInstallation::getModuleCNumber
int getModuleCNumber() const
Returns construction module number.
Definition: TOPPmtInstallation.h:72
Belle2::TOPPmtInstallation::m_serialNumber
std::string m_serialNumber
serial number, e.g.
Definition: TOPPmtInstallation.h:101
Belle2::TOPPmtObsoleteData::EType
EType
enum for PMT types
Definition: TOPPmtObsoleteData.h:41
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOPPmtInstallation::ClassDef
ClassDef(TOPPmtInstallation, 2)
ClassDef.
Belle2::TOPPmtInstallation::m_slotNumber
int m_slotNumber
slot number (1-based)
Definition: TOPPmtInstallation.h:103
Belle2::TOPPmtInstallation::m_arrayNumber
int m_arrayNumber
MCP array number (1-based)
Definition: TOPPmtInstallation.h:104
Belle2::TOPPmtInstallation::getSerialNumber
const std::string & getSerialNumber() const
Returns PMT serial number.
Definition: TOPPmtInstallation.h:66
Belle2::TOPPmtInstallation::getSlotNumber
int getSlotNumber() const
Returns slot number.
Definition: TOPPmtInstallation.h:78
Belle2::TOPPmtInstallation::getPosition
int getPosition() const
Returns PMT position within array/module.
Definition: TOPPmtInstallation.h:90
Belle2::TOPPmtInstallation::TOPPmtInstallation
TOPPmtInstallation()
Default constructor.
Definition: TOPPmtInstallation.h:44