Belle II Software development
MicrotpcHit.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 MICROTPCHIT_H
10#define MICROTPCHIT_H
11
12#include <simulation/dataobjects/SimHitBase.h>
13
14namespace Belle2 {
26 class MicrotpcHit : public SimHitBase {
27 public:
28 //typedef std::vector<unsigned int>::iterator iterator;
29 //typedef std::vector<unsigned int>::const_iterator const_iterator;
30
32 //MicrotpcHit(): m_column(0), m_row(0), m_BCID(0), m_TOT(0), m_detNb(0), m_pdg(0) {}
33 //MicrotpcHit(): m_column(0), m_row(0), m_BCID(0), m_TOT(0), m_detNb(0) {}
34 MicrotpcHit(): m_column(0), m_row(0), m_BCID(0), m_TOT(0), m_detNb(0), m_pdg(0), m_trkID(0) {}
35
45 /*
46 MicrotpcHit(int column, int row, int BCID, int TOT, int detNb, int pdg):
47 m_column(column), m_row(row), m_BCID(BCID), m_TOT(TOT), m_detNb(detNb), m_pdg(pdg)
48 {
49 }
50 */
51 /*
52 MicrotpcHit(int column, int row, int BCID, int TOT, int detNb):
53 m_column(column), m_row(row), m_BCID(BCID), m_TOT(TOT), m_detNb(detNb)
54 {
55 }
56 */
57 MicrotpcHit(int column, int row, int BCID, int TOT, int detNb, int pdg, int trkID):
58 m_column(column), m_row(row), m_BCID(BCID), m_TOT(TOT), m_detNb(detNb), m_pdg(pdg), m_trkID(trkID)
59 {
60 }
61
63 int getcolumn() const { return m_column; }
65 int getrow() const { return m_row; }
67 int getBCID() const { return m_BCID; }
69 int getTOT() const { return m_TOT; }
71 int getdetNb() const { return m_detNb; }
73 int getPDG() const { return m_pdg; }
75 int gettrkID() const { return m_trkID; }
76
77 private:
78
82 int m_row;
84 int m_BCID;
86 int m_TOT;
90 int m_pdg;
93
95 };
96
98} // end namespace Belle2
99
100#endif
ClassMicrotpcHit - digitization simulated hit for the Microtpc detector.
Definition: MicrotpcHit.h:26
int m_column
Column.
Definition: MicrotpcHit.h:80
int m_trkID
Particle PDG.
Definition: MicrotpcHit.h:92
int getBCID() const
Return the BCID.
Definition: MicrotpcHit.h:67
int getrow() const
Return the row.
Definition: MicrotpcHit.h:65
MicrotpcHit(int column, int row, int BCID, int TOT, int detNb, int pdg, int trkID)
Standard constructor.
Definition: MicrotpcHit.h:57
int m_pdg
Particle PDG.
Definition: MicrotpcHit.h:90
int getTOT() const
Return the TOT.
Definition: MicrotpcHit.h:69
int getdetNb() const
Return the TPC number.
Definition: MicrotpcHit.h:71
int m_detNb
Detector Number.
Definition: MicrotpcHit.h:88
int getPDG() const
Return the PDG of particles.
Definition: MicrotpcHit.h:73
int getcolumn() const
Return the column.
Definition: MicrotpcHit.h:63
MicrotpcHit()
default constructor for ROOT
Definition: MicrotpcHit.h:34
int gettrkID() const
Return the track ID.
Definition: MicrotpcHit.h:75
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.