Belle II Software development
PXDRawHit.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 <vxd/dataobjects/VxdID.h>
12#include <framework/datastore/RelationsObject.h>
13
14namespace Belle2 {
24 class PXDRawHit : public RelationsObject {
25 public:
26
29 m_sensorID(0),
30 m_row(0),
31 m_column(0),
32 m_charge(0),
33 m_frameNr(0) {};
34
35
43 PXDRawHit(VxdID sensorID, short row, short column, short charge,
44 unsigned int frameNr):
45 m_sensorID(sensorID), m_row(row), m_column(column),
46 m_charge(charge), m_frameNr(frameNr)
47 {};
48
53 {
54 return m_sensorID;
55 }
56
60 short getRow() const
61 {
62 return m_row;
63 }
64
68 short getVCellID() const
69 {
70 return m_row;
71 }
72
76 short getColumn() const
77 {
78 return m_column;
79 }
80
84 short getUCellID() const
85 {
86 return m_column;
87 }
88
92 short getCharge() const
93 {
94 return m_charge;
95 }
96
100 unsigned short getFrameNr() const
101 {
102 return m_frameNr;
103 }
104
105
106 private:
107 unsigned short m_sensorID;
108 short m_row;
109 short m_column;
110 short m_charge;
111 unsigned short m_frameNr;
114 };
115
116
118} //Belle2 namespace
The PXD Raw Hit class This class stores information about PXD Pixel hits and makes them available in ...
Definition: PXDRawHit.h:24
short getUCellID() const
Get u cell id of hit position.
Definition: PXDRawHit.h:84
short getCharge() const
Get collected charge.
Definition: PXDRawHit.h:92
unsigned short m_sensorID
Compressed sensor identifier.
Definition: PXDRawHit.h:107
unsigned short getFrameNr() const
Get frame number.
Definition: PXDRawHit.h:100
short m_charge
Deposited charge in pixel.
Definition: PXDRawHit.h:110
short getColumn() const
Get u cell id of hit position.
Definition: PXDRawHit.h:76
PXDRawHit()
Default constructor for the ROOT IO.
Definition: PXDRawHit.h:28
short getRow() const
Get v cell id of hit position.
Definition: PXDRawHit.h:60
VxdID getSensorID() const
Get the sensor ID.
Definition: PXDRawHit.h:52
short m_column
Absolute pixel position in u (U Cell ID).
Definition: PXDRawHit.h:109
short getVCellID() const
Get v cell id of hit position.
Definition: PXDRawHit.h:68
short m_row
Absolute pixel position in v (V Cell ID).
Definition: PXDRawHit.h:108
unsigned short m_frameNr
Number of the Frames.
Definition: PXDRawHit.h:111
PXDRawHit(VxdID sensorID, short row, short column, short charge, unsigned int frameNr)
Definition: PXDRawHit.h:43
Defines interface for accessing relations of objects in StoreArray.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
Abstract base class for different kinds of events.