Belle II Software development
IRSimHit.cc
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#include <ir/dataobjects/IRSimHit.h>
10
11using namespace std;
12using namespace Belle2;
13
14IRSimHit::~IRSimHit()
15{
16}
17
19void IRSimHit::setposIn(ROOT::Math::XYZVector posIn)
20{
21 m_posIn = posIn;
22}
23void IRSimHit::setmomIn(ROOT::Math::XYZVector momIn)
24{
25 m_momIn = momIn;
26}
27void IRSimHit::setposOut(ROOT::Math::XYZVector posOut)
28{
29 m_posOut = posOut;
30}
31void IRSimHit::setmomOut(ROOT::Math::XYZVector momOut)
32{
33 m_momOut = momOut;
34}
35void IRSimHit::setPDGcode(int PDGcode)
36{
37 m_PDGcode = PDGcode;
38}
39void IRSimHit::setdepEnergy(float depEnergy)
40{
41 m_depEnergy = depEnergy;
42}
43void IRSimHit::setVolname(const std::string& Volname)
44{
45 m_Volname = Volname;
46}
47
49ROOT::Math::XYZVector IRSimHit::getposIn() { return m_posIn; }
50ROOT::Math::XYZVector IRSimHit::getmomIn() { return m_momIn; }
51ROOT::Math::XYZVector IRSimHit::getposOut() { return m_posOut; }
52ROOT::Math::XYZVector IRSimHit::getmomOut() { return m_momOut; }
55std::string IRSimHit::getVolname() { return m_Volname; }
56
void setdepEnergy(float depEnergy)
Set PDF code.
Definition: IRSimHit.cc:39
ROOT::Math::XYZVector m_posIn
return volume name
Definition: IRSimHit.h:77
ROOT::Math::XYZVector m_posOut
End point of energy deposition in local coordinates.
Definition: IRSimHit.h:79
ROOT::Math::XYZVector m_momIn
Momentum of particle at start of energy deposition.
Definition: IRSimHit.h:78
float getdepEnergy()
return PDG code
Definition: IRSimHit.cc:54
ROOT::Math::XYZVector getmomOut()
return position at end point
Definition: IRSimHit.cc:52
ROOT::Math::XYZVector getmomIn()
return position at start point
Definition: IRSimHit.cc:50
std::string getVolname()
return deposited energy
Definition: IRSimHit.cc:55
std::string m_Volname
Volume name.
Definition: IRSimHit.h:83
int getPDGcode()
return momentum at end point
Definition: IRSimHit.cc:53
ROOT::Math::XYZVector getposIn()
Set volume name.
Definition: IRSimHit.cc:49
void setPDGcode(int PDGcode)
Set momentum at end point.
Definition: IRSimHit.cc:35
void setmomIn(ROOT::Math::XYZVector momIn)
Set position at start point.
Definition: IRSimHit.cc:23
void setVolname(const std::string &Volname)
Set deposited energy.
Definition: IRSimHit.cc:43
void setmomOut(ROOT::Math::XYZVector momOut)
Set position at end point.
Definition: IRSimHit.cc:31
int m_PDGcode
PDG code of the particle producing hit.
Definition: IRSimHit.h:81
float m_depEnergy
Deposited energy.
Definition: IRSimHit.h:82
void setposIn(ROOT::Math::XYZVector posIn)
The method to set.
Definition: IRSimHit.cc:19
ROOT::Math::XYZVector getposOut()
return momentum at start point
Definition: IRSimHit.cc:51
void setposOut(ROOT::Math::XYZVector posOut)
Set momentum at start point.
Definition: IRSimHit.cc:27
ROOT::Math::XYZVector m_momOut
Momentum of particle at end of energy deposition.
Definition: IRSimHit.h:80
Abstract base class for different kinds of events.
STL namespace.