Belle II Software development
MicrotpcDataHit.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#ifndef MICROTPCDATAHIT_H
10#define MICROTPCDATAHIT_H
11
12#include <simulation/dataobjects/SimHitBase.h>
13
14namespace Belle2 {
26 class MicrotpcDataHit : public SimHitBase {
27 public:
30 //MicrotpcDataHit(): m_detNb(0) {}
31
39 MicrotpcDataHit(int column, int row, int BCID, int TOT, int detNb):
40 m_column(column), m_row(row), m_BCID(BCID), m_TOT(TOT), m_detNb(detNb)
41 {
42 }
43 /*
44 MicrotpcDataHit(int detNb):
45 m_detNb(detNb)
46 {
47 }
48 */
57 /*
58 void setcolumn(std::vector<int>& column) {
59 m_column.clear();
60 std::swap(m_column, column);
61 }
62 void setrow(std::vector<int>& row) {
63 m_row.clear();
64 std::swap(m_row, row);
65 }
66 void setBCID(std::vector<int>& BCID) {
67 m_BCID.clear();
68 std::swap(m_BCID, BCID);
69 }
70 void setTOT(std::vector<int>& TOT) {
71 m_TOT.clear();
72 std::swap(m_TOT, TOT);
73 }
74 */
76 int getcolumn() const { return m_column; }
77 //std::vector<int > getcolumn() const;
79 int getrow() const { return m_row; }
80 //std::vector<int > getrow() const;
82 int getBCID() const { return m_BCID; }
83 //std::vector<int > getBCID() const;
85 int getTOT() const { return m_TOT; }
86 //std::vector<int > getTOT() const;
88 int getdetNb() const { return m_detNb; }
89
90 private:
91
94 //std::vector<int> m_column;
96 int m_row;
97 //std::vector<int> m_row;
99 int m_BCID;
100 //std::vector<int> m_BCID;
102 int m_TOT;
103 //std::vector<int> m_TOT;
106
108 };
109
111} // end namespace Belle2
112
113#endif
ClassMicrotpcDataHit - digitization simulated datahit for the Microtpc detector.
int getBCID() const
Return BCID vector.
int getrow() const
Return row vector.
int getTOT() const
Return TOT vector.
int getdetNb() const
Return the TPC number.
int m_detNb
Detector Number.
int getcolumn() const
Set energy deposition profile To avoid copying of the entries this will take over the contents of the...
MicrotpcDataHit()
default constructor for ROOT
MicrotpcDataHit(int column, int row, int BCID, int TOT, int detNb)
Standard constructor.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Class SimHitBase - A common base for subdetector SimHits.
Definition: SimHitBase.h:28
Abstract base class for different kinds of events.