Belle II Software  release-05-02-19
PXDRawHit.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors:Bjoern Spruck / Klemens Lautenbach *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef PXDRAWHIT_H
12 #define PXDRAWHIT_H
13 
14 
15 #include <vxd/dataobjects/VxdID.h>
16 #include <framework/datastore/RelationsObject.h>
17 
18 namespace Belle2 {
28  class PXDRawHit : public RelationsObject {
29  public:
30 
32  PXDRawHit():
33  m_sensorID(0),
34  m_row(0),
35  m_column(0),
36  m_charge(0) ,
37  m_frameNr(0) {};
38 
39 
47  PXDRawHit(VxdID sensorID, short row, short column, short charge,
48  unsigned int frameNr):
49  m_sensorID(sensorID), m_row(row), m_column(column),
50  m_charge(charge), m_frameNr(frameNr)
51  {};
52 
56  VxdID getSensorID() const
57  {
58  return m_sensorID;
59  }
60 
64  short getRow() const
65  {
66  return m_row;
67  }
68 
72  short getVCellID() const
73  {
74  return m_row;
75  }
76 
80  short getColumn() const
81  {
82  return m_column;
83  }
84 
88  short getUCellID() const
89  {
90  return m_column;
91  }
92 
96  short getCharge() const
97  {
98  return m_charge;
99  }
100 
104  unsigned short getFrameNr() const
105  {
106  return m_frameNr;
107  }
108 
109 
110  private:
111  unsigned short m_sensorID;
112  short m_row;
113  short m_column;
114  short m_charge;
115  unsigned short m_frameNr;
117  ClassDef(PXDRawHit, 6)
118  };
119 
120 
122 } //Belle2 namespace
123 #endif
Belle2::VxdID
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:43
Belle2::PXDRawHit::m_column
short m_column
Absolute pixel position in u (U Cell ID).
Definition: PXDRawHit.h:121
Belle2::PXDRawHit::getRow
short getRow() const
Get v cell id of hit position.
Definition: PXDRawHit.h:72
Belle2::RelationsInterface::ClassDef
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Belle2::PXDRawHit::m_sensorID
unsigned short m_sensorID
Compressed sensor identifier.
Definition: PXDRawHit.h:119
Belle2::PXDRawHit::m_charge
short m_charge
Deposited charge in pixel.
Definition: PXDRawHit.h:122
Belle2::PXDRawHit::getFrameNr
unsigned short getFrameNr() const
Get frame number.
Definition: PXDRawHit.h:112
Belle2::PXDRawHit
The PXD Raw Hit class This class stores information about PXD Pixel hits and makes them available in ...
Definition: PXDRawHit.h:36
Belle2::PXDRawHit::getSensorID
VxdID getSensorID() const
Get the sensor ID.
Definition: PXDRawHit.h:64
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PXDRawHit::getUCellID
short getUCellID() const
Get u cell id of hit position.
Definition: PXDRawHit.h:96
Belle2::PXDRawHit::m_frameNr
unsigned short m_frameNr
Number of the Frames.
Definition: PXDRawHit.h:123
Belle2::PXDRawHit::getVCellID
short getVCellID() const
Get v cell id of hit position.
Definition: PXDRawHit.h:80
Belle2::PXDRawHit::getCharge
short getCharge() const
Get collected charge.
Definition: PXDRawHit.h:104
Belle2::PXDRawHit::PXDRawHit
PXDRawHit()
Default constructor for the ROOT IO.
Definition: PXDRawHit.h:40
Belle2::PXDRawHit::getColumn
short getColumn() const
Get u cell id of hit position.
Definition: PXDRawHit.h:88
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::PXDRawHit::m_row
short m_row
Absolute pixel position in v (V Cell ID).
Definition: PXDRawHit.h:120