Belle II Software development
PlumeHit.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 PLUMEHIT_H
10#define PLUMEHIT_H
11
12#include <simulation/dataobjects/SimHitBase.h>
13
14namespace Belle2 {
26 class PlumeHit : public SimHitBase {
27 public:
28 //typedef std::vector<unsigned int>::iterator iterator;
29 //typedef std::vector<unsigned int>::const_iterator const_iterator;
30
33 m_posmm_x(0), m_posmm_y(0), m_posmm_z(0) {}
34
35
38 PlumeHit(int a_sensorID, int a_nofPixels, float a_posmm_u, float a_posmm_v,
39 float a_posmm_x, float a_posmm_y, float a_posmm_z)
40 {
41 m_sensorID = a_sensorID;
42 m_nofPixels = a_nofPixels;
43 m_posmm_u = a_posmm_u;
44 m_posmm_v = a_posmm_v;
45 m_posmm_x = a_posmm_x;
46 m_posmm_y = a_posmm_y;
47 m_posmm_z = a_posmm_z;
48 }
49
51 int getsensorID() const { return m_sensorID; }
53 int getnofPixels() const { return m_nofPixels; }
55 float getpos_u() const { return m_posmm_u; }
57 float getpos_v() const { return m_posmm_v; }
59 float getpos_x() const { return m_posmm_x; }
61 float getpos_y() const { return m_posmm_y; }
63 float getpos_z() const { return m_posmm_z; }
64
65 private:
71 float m_posmm_u;
73 float m_posmm_v;
75 float m_posmm_x;
77 float m_posmm_y;
79 float m_posmm_z;
80
82 };
83
85} // end namespace Belle2
86
87#endif
ClassPlumeHit - digitization simulated hit for the Microtpc detector.
Definition: PlumeHit.h:26
float getpos_z() const
impact position in G4 z frame, in mm
Definition: PlumeHit.h:63
float m_posmm_z
impact position in G4 z frame, in mm
Definition: PlumeHit.h:79
float m_posmm_u
impact position in sensor u frame, in mm
Definition: PlumeHit.h:71
int getsensorID() const
sensor ID
Definition: PlumeHit.h:51
float getpos_v() const
impact position in sensor v frame, in mm
Definition: PlumeHit.h:57
int m_sensorID
sensor ID
Definition: PlumeHit.h:67
float m_posmm_y
impact position in G4 y frame, in mm
Definition: PlumeHit.h:77
int getnofPixels() const
cluster size
Definition: PlumeHit.h:53
float m_posmm_v
impact position in sensor v frame, in mm
Definition: PlumeHit.h:73
int m_nofPixels
cluster size
Definition: PlumeHit.h:69
float getpos_y() const
impact position in G4 y frame, in mm
Definition: PlumeHit.h:61
float m_posmm_x
impact position in G4 x frame, in mm
Definition: PlumeHit.h:75
PlumeHit()
default constructor for ROOT
Definition: PlumeHit.h:32
PlumeHit(int a_sensorID, int a_nofPixels, float a_posmm_u, float a_posmm_v, float a_posmm_x, float a_posmm_y, float a_posmm_z)
Standard constructor.
Definition: PlumeHit.h:38
float getpos_x() const
impact position in G4 x frame, in mm
Definition: PlumeHit.h:59
float getpos_u() const
impact position in sensor u frame, in mm
Definition: PlumeHit.h:55
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.