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