Belle II Software development
ClawHit.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 CLAWHIT_H
10#define CLAWHIT_H
11
12#include <simulation/dataobjects/SimHitBase.h>
13
14namespace Belle2 {
26 class ClawHit : public SimHitBase {
27 public:
28 //typedef std::vector<unsigned int>::iterator iterator;
29 //typedef std::vector<unsigned int>::const_iterator const_iterator;
30
32 ClawHit(): m_detNb(0), m_time(0), m_edep(0), m_mip(0), m_pe(0) {}
33
34
42 ClawHit(int detNb, int time, float edep, float mip, float pe):
43 m_detNb(detNb), m_time(time), m_edep(edep), m_mip(mip), m_pe(pe)
44 {
45 }
46
48 int getdetNb() const { return m_detNb; }
50 int gettime() const { return m_time; }
52 float getedep() const { return m_edep; }
54 float getMIP() const { return m_mip; }
56 float getPE() const { return m_pe; }
57
58 private:
59
63 int m_time;
65 float m_edep;
67 float m_mip;
69 float m_pe;
70
72 };
73
75} // end namespace Belle2
76
77#endif
ClassClawHit - digitization simulated hit for the Claw detector.
Definition: ClawHit.h:26
float getMIP() const
Return MIP.
Definition: ClawHit.h:54
float m_pe
Particle pe.
Definition: ClawHit.h:69
float getedep() const
Return the energy deposited.
Definition: ClawHit.h:52
float m_mip
Particle mip.
Definition: ClawHit.h:67
int getdetNb() const
Return the PIN diode number.
Definition: ClawHit.h:48
int m_detNb
Detector Number.
Definition: ClawHit.h:61
int m_time
time
Definition: ClawHit.h:63
int gettime() const
Return the time.
Definition: ClawHit.h:50
float m_edep
Energy deposited.
Definition: ClawHit.h:65
float getPE() const
Return PE.
Definition: ClawHit.h:56
ClawHit()
default constructor for ROOT
Definition: ClawHit.h:32
ClawHit(int detNb, int time, float edep, float mip, float pe)
Standard constructor.
Definition: ClawHit.h:42
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.