Belle II Software  release-05-02-19
MicrotpcDataHit.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010-2016 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Igal Jaegle *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef MICROTPCDATAHIT_H
12 #define MICROTPCDATAHIT_H
13 
14 #include <simulation/dataobjects/SimHitBase.h>
15 
16 namespace Belle2 {
28  class MicrotpcDataHit : public SimHitBase {
29  public:
31  MicrotpcDataHit(): m_column(0), m_row(0), m_BCID(0), m_TOT(0), m_detNb(0) {}
32  //MicrotpcDataHit(): m_detNb(0) {}
33 
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  */
59  /*
60  void setcolumn(std::vector<int>& column) {
61  m_column.clear();
62  std::swap(m_column, column);
63  }
64  void setrow(std::vector<int>& row) {
65  m_row.clear();
66  std::swap(m_row, row);
67  }
68  void setBCID(std::vector<int>& BCID) {
69  m_BCID.clear();
70  std::swap(m_BCID, BCID);
71  }
72  void setTOT(std::vector<int>& TOT) {
73  m_TOT.clear();
74  std::swap(m_TOT, TOT);
75  }
76  */
78  int getcolumn() const { return m_column; }
79  //std::vector<int > getcolumn() const;
81  int getrow() const { return m_row; }
82  //std::vector<int > getrow() const;
84  int getBCID() const { return m_BCID; }
85  //std::vector<int > getBCID() const;
87  int getTOT() const { return m_TOT; }
88  //std::vector<int > getTOT() const;
90  int getdetNb() const { return m_detNb; }
91 
92  private:
93 
95  int m_column;
96  //std::vector<int> m_column;
98  int m_row;
99  //std::vector<int> m_row;
101  int m_BCID;
102  //std::vector<int> m_BCID;
104  int m_TOT;
105  //std::vector<int> m_TOT;
107  int m_detNb;
108 
110  };
111 
113 } // end namespace Belle2
114 
115 #endif
Belle2::MicrotpcDataHit::m_column
int m_column
Column.
Definition: MicrotpcDataHit.h:103
Belle2::MicrotpcDataHit::m_TOT
int m_TOT
TOT.
Definition: MicrotpcDataHit.h:112
Belle2::RelationsInterface::ClassDef
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Belle2::MicrotpcDataHit::getdetNb
int getdetNb() const
Return the TPC number.
Definition: MicrotpcDataHit.h:98
Belle2::MicrotpcDataHit::m_row
int m_row
Row.
Definition: MicrotpcDataHit.h:106
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::MicrotpcDataHit::getcolumn
int getcolumn() const
Set energy deposition profile To avoid copying of the entries this will take over the contents of the...
Definition: MicrotpcDataHit.h:86
Belle2::MicrotpcDataHit::m_detNb
int m_detNb
Detector Number.
Definition: MicrotpcDataHit.h:115
Belle2::MicrotpcDataHit::MicrotpcDataHit
MicrotpcDataHit()
default constructor for ROOT
Definition: MicrotpcDataHit.h:39
Belle2::MicrotpcDataHit
ClassMicrotpcDataHit - digitization simulated datahit for the Microtpc detector.
Definition: MicrotpcDataHit.h:36
Belle2::MicrotpcDataHit::getBCID
int getBCID() const
Return BCID vector.
Definition: MicrotpcDataHit.h:92
Belle2::MicrotpcDataHit::getrow
int getrow() const
Return row vector.
Definition: MicrotpcDataHit.h:89
Belle2::MicrotpcDataHit::getTOT
int getTOT() const
Return TOT vector.
Definition: MicrotpcDataHit.h:95
Belle2::MicrotpcDataHit::m_BCID
int m_BCID
BCID.
Definition: MicrotpcDataHit.h:109