Belle II Software  release-08-01-10
IRSimHit.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 #pragma once
10 
11 #include <TVector3.h>
12 #include <string>
13 #include <simulation/dataobjects/SimHitBase.h>
14 
15 namespace Belle2 {
22  class IRSimHit : public SimHitBase {
23  public:
24 
27  m_posIn(0, 0, 0),
28  m_momIn(0, 0, 0),
29  m_posOut(0, 0, 0),
30  m_momOut(0, 0, 0),
31  m_PDGcode(0),
32  m_depEnergy(0),
33  m_Volname("noname") {}
34 
37  TVector3 posIn,
38  TVector3 momIn,
39  TVector3 posOut,
40  TVector3 momOut,
41  int PDGcode,
42  float depEnergy,
43  const std::string& Volname
44  ) :
45  m_posIn(posIn),
46  m_momIn(momIn),
47  m_posOut(posOut),
48  m_momOut(momOut),
49  m_PDGcode(PDGcode),
50  m_depEnergy(depEnergy),
51  m_Volname(Volname) {}
52 
53  ~IRSimHit();
54 
56  void setposIn(TVector3 posIn);
57  void setmomIn(TVector3 momIn);
58  void setposOut(TVector3 posOut);
59  void setmomOut(TVector3 momOut);
60  void setPDGcode(int PDGcode);
61  void setdepEnergy(float depEnergy);
62  void setVolname(const std::string& Volname);
65  TVector3 getposIn();
66  TVector3 getmomIn();
67  TVector3 getposOut();
68  TVector3 getmomOut();
69  int getPDGcode();
70  float getdepEnergy();
71  std::string getVolname();
73  protected:
74 
75  private:
76 
77  TVector3 m_posIn;
78  TVector3 m_momIn;
79  TVector3 m_posOut;
80  TVector3 m_momOut;
81  int m_PDGcode;
82  float m_depEnergy;
83  std::string m_Volname;
87 
88  };
89 
91 } // end namespace Belle2
Class for saving raw hit data of the IR.
Definition: IRSimHit.h:22
void setdepEnergy(float depEnergy)
Set PDF code.
Definition: IRSimHit.cc:39
float getdepEnergy()
return PDG code
Definition: IRSimHit.cc:54
void setmomOut(TVector3 momOut)
Set position at end point.
Definition: IRSimHit.cc:31
std::string getVolname()
return deposited energy
Definition: IRSimHit.cc:55
void setposIn(TVector3 posIn)
The method to set.
Definition: IRSimHit.cc:19
std::string m_Volname
Volume name.
Definition: IRSimHit.h:83
void setmomIn(TVector3 momIn)
Set position at start point.
Definition: IRSimHit.cc:23
TVector3 getposIn()
Set volume name.
Definition: IRSimHit.cc:49
int getPDGcode()
return momentum at end point
Definition: IRSimHit.cc:53
TVector3 getmomIn()
return position at start point
Definition: IRSimHit.cc:50
void setPDGcode(int PDGcode)
Set momentum at end point.
Definition: IRSimHit.cc:35
TVector3 m_posOut
End point of energy deposition in local coordinates.
Definition: IRSimHit.h:79
void setVolname(const std::string &Volname)
Set deposited energy.
Definition: IRSimHit.cc:43
int m_PDGcode
PDG code of the particle producing hit.
Definition: IRSimHit.h:81
float m_depEnergy
Deposited energy.
Definition: IRSimHit.h:82
TVector3 m_momOut
Momentum of particle at end of energy deposition.
Definition: IRSimHit.h:80
void setposOut(TVector3 posOut)
Set momentum at start point.
Definition: IRSimHit.cc:27
TVector3 m_momIn
Momentum of particle at start of energy deposition.
Definition: IRSimHit.h:78
ClassDef(IRSimHit, 1)
ROOT Macro.
TVector3 m_posIn
return volume name
Definition: IRSimHit.h:77
IRSimHit(TVector3 posIn, TVector3 momIn, TVector3 posOut, TVector3 momOut, int PDGcode, float depEnergy, const std::string &Volname)
Full Constructor.
Definition: IRSimHit.h:36
IRSimHit()
Empty constructor for ROOT IO.
Definition: IRSimHit.h:26
TVector3 getmomOut()
return position at end point
Definition: IRSimHit.cc:52
TVector3 getposOut()
return momentum at start point
Definition: IRSimHit.cc:51
Class SimHitBase - A common base for subdetector SimHits.
Definition: SimHitBase.h:28
Abstract base class for different kinds of events.