Belle II Software development
BeamBackHit Class Reference

Class BeamBackHit - Stores hits from beam backgound simulation. More...

#include <BeamBackHit.h>

Inheritance diagram for BeamBackHit:

Public Member Functions

 BeamBackHit ()
 Default constructor.
 
 BeamBackHit (int subDet, int iden, int PDG, int trackID, const ROOT::Math::XYZVector &position, const ROOT::Math::XYZVector &momentum, double t, double E_start, double E_end, double eDep, double trackLength, double nWeight)
 Full constructor.
 
TString getSubDetName () const
 Get the subdetector name in which the hit occured.
 
int getIdentifier () const
 Get the identifier of subdetector component in which hit occured.
 
int getSubDet () const
 Det the index of subdetector in which hit occured.
 
int getPDG () const
 Get the lund code of the particle that hit the sensitive area.
 
int getTrackID () const
 the traci ID of the particle
 
ROOT::Math::XYZVector getPosition () const
 Get global position of the particle hit.
 
ROOT::Math::XYZVector getMomentum () const
 Get momentum of the particle hit.
 
double getTime () const
 Get the time at which the hit occured.
 
double getEnergy () const
 Get energy of the particle.
 
double getEnergyAtExit () const
 Get energy of the particle.
 
double getEnergyDeposit () const
 Get particle energy deposit in sensitive volume.
 
double getTrackLength () const
 the length of the track in the volume
 
double getNeutronWeight () const
 get the effective neutron weigth
 
void setSubDet (int subDet)
 Set the subdetector group in which the hit occured.
 
void setIdentifier (int iden)
 Set the subdetector component identifier.
 
void setPDG (int PDG)
 Set the lund code of the particle that hit the sensitive area.
 
void setTrackID (int trackID)
 set the trackID of the track
 
void setPosition (ROOT::Math::XYZVector position)
 Set global position of the particle hit.
 
void setMomentum (ROOT::Math::XYZVector momentum)
 Set momentum of the particle hit.
 
void setTime (double t)
 Set the time at which the hit occured.
 
void setEnergy (double E)
 Set energy of the particle.
 
void setEnergyAtExit (double E)
 Set energy of track at exit point of volume.
 
void setEnergyDeposit (double eDep)
 Set particle energy deposit in volume.
 
void setTrackLength (double l)
 set the length of the track in the volume
 
void setNeutronWeight (double w)
 set the neutron weight
 
void shiftInTime (double time)
 shift in time for beambkgmixer
 

Private Member Functions

 ClassDef (BeamBackHit, 2)
 Class version.
 

Private Attributes

int m_subDet
 The name of the subdetector.
 
int m_identifier
 The identifier of subdetector component.
 
int m_PDG
 The PDG code of the particle that hit the sensitive area.
 
int m_trackID
 The trackID of the hit.
 
float m_positionX
 Global position of the hit (X coordinate).
 
float m_positionY
 Global position of the hit (Y coordinate).
 
float m_positionZ
 Global position of the hit (Z coordinate).
 
float m_momentumX
 Momentum of the hit (X coordinate).
 
float m_momentumY
 Momentum of the hit (Y coordinate).
 
float m_momentumZ
 Momentum of the hit (Z coordinate).
 
float m_t
 Time at which the hit occured.
 
float m_E_start
 Energy of particle at entrance into the volume.
 
float m_E_end
 Energy of the particle when leaving the volume.
 
float m_energyDeposit
 Energy deposited in sensitive volume.
 
float m_trackLength
 Length of the track in the volume.
 
float m_neutronWeight
 The effective neutron weight.
 

Detailed Description

Class BeamBackHit - Stores hits from beam backgound simulation.

This is a class to store beam backgound hits hits in datastore. It is a general class for all subdetectors

Definition at line 28 of file BeamBackHit.h.

Constructor & Destructor Documentation

◆ BeamBackHit() [1/2]

BeamBackHit ( )
inline

Default constructor.

Definition at line 32 of file BeamBackHit.h.

32 : m_subDet(0), m_identifier(0), m_PDG(0), m_trackID(0),
34 m_momentumY(0.), m_momentumZ(0.), m_t(0.), m_E_start(0.),
36 {}
float m_t
Time at which the hit occured.
Definition: BeamBackHit.h:206
float m_E_end
Energy of the particle when leaving the volume.
Definition: BeamBackHit.h:212
float m_energyDeposit
Energy deposited in sensitive volume.
Definition: BeamBackHit.h:215
float m_momentumZ
Momentum of the hit (Z coordinate).
Definition: BeamBackHit.h:203
int m_PDG
The PDG code of the particle that hit the sensitive area.
Definition: BeamBackHit.h:182
int m_trackID
The trackID of the hit.
Definition: BeamBackHit.h:185
float m_trackLength
Length of the track in the volume.
Definition: BeamBackHit.h:218
float m_neutronWeight
The effective neutron weight.
Definition: BeamBackHit.h:221
float m_positionY
Global position of the hit (Y coordinate).
Definition: BeamBackHit.h:191
float m_positionZ
Global position of the hit (Z coordinate).
Definition: BeamBackHit.h:194
float m_E_start
Energy of particle at entrance into the volume.
Definition: BeamBackHit.h:209
float m_momentumY
Momentum of the hit (Y coordinate).
Definition: BeamBackHit.h:200
float m_positionX
Global position of the hit (X coordinate).
Definition: BeamBackHit.h:188
int m_subDet
The name of the subdetector.
Definition: BeamBackHit.h:176
float m_momentumX
Momentum of the hit (X coordinate).
Definition: BeamBackHit.h:197
int m_identifier
The identifier of subdetector component.
Definition: BeamBackHit.h:179

◆ BeamBackHit() [2/2]

BeamBackHit ( int  subDet,
int  iden,
int  PDG,
int  trackID,
const ROOT::Math::XYZVector &  position,
const ROOT::Math::XYZVector &  momentum,
double  t,
double  E_start,
double  E_end,
double  eDep,
double  trackLength,
double  nWeight 
)
inline

Full constructor.

Parameters
subDetthe ID of the individual subdetector
identhe ID of the particular volume
PDGthe PDG code of the particle
trackIDthe trackID of the track
positionthe position of the hit
momentumthe momentum of particle at the time of the hit
ttime at which the hit occured
E_startthe energy of the particle at the entrance to the volume
E_endthe energy of the particle at the exit of the volume
eDepthe energy deposited in the volume
trackLengththe length of the track in the volume
nWeightthe effective neutron weight

Definition at line 52 of file BeamBackHit.h.

56 :
57 m_subDet(subDet), m_identifier(iden), m_PDG(PDG), m_trackID(trackID),
58 m_t(t), m_E_start(E_start), m_E_end(E_end), m_energyDeposit(eDep),
59 m_trackLength(trackLength), m_neutronWeight(nWeight)
60 {
61 setPosition(position);
62 setMomentum(momentum);
63 }
void setMomentum(ROOT::Math::XYZVector momentum)
Set momentum of the particle hit.
Definition: BeamBackHit.h:145
void setPosition(ROOT::Math::XYZVector position)
Set global position of the particle hit.
Definition: BeamBackHit.h:137

Member Function Documentation

◆ getEnergy()

double getEnergy ( ) const
inline

Get energy of the particle.

Definition at line 110 of file BeamBackHit.h.

110{ return m_E_start; }

◆ getEnergyAtExit()

double getEnergyAtExit ( ) const
inline

Get energy of the particle.

Definition at line 113 of file BeamBackHit.h.

113{ return m_E_end; }

◆ getEnergyDeposit()

double getEnergyDeposit ( ) const
inline

Get particle energy deposit in sensitive volume.

Definition at line 116 of file BeamBackHit.h.

116{ return m_energyDeposit; }

◆ getIdentifier()

int getIdentifier ( ) const
inline

Get the identifier of subdetector component in which hit occured.

Definition at line 83 of file BeamBackHit.h.

83{ return m_identifier; }

◆ getMomentum()

ROOT::Math::XYZVector getMomentum ( ) const
inline

Get momentum of the particle hit.

Definition at line 101 of file BeamBackHit.h.

102 {
103 return ROOT::Math::XYZVector(m_momentumX, m_momentumY, m_momentumZ);
104 }

◆ getNeutronWeight()

double getNeutronWeight ( ) const
inline

get the effective neutron weigth

Definition at line 122 of file BeamBackHit.h.

122{return m_neutronWeight;}

◆ getPDG()

int getPDG ( ) const
inline

Get the lund code of the particle that hit the sensitive area.

Definition at line 89 of file BeamBackHit.h.

89{ return m_PDG; }

◆ getPosition()

ROOT::Math::XYZVector getPosition ( ) const
inline

Get global position of the particle hit.

Definition at line 95 of file BeamBackHit.h.

96 {
97 return ROOT::Math::XYZVector(m_positionX, m_positionY, m_positionZ);
98 }

◆ getSubDet()

int getSubDet ( ) const
inline

Det the index of subdetector in which hit occured.

Definition at line 86 of file BeamBackHit.h.

86{return m_subDet; }

◆ getSubDetName()

TString getSubDetName ( ) const
inline

Get the subdetector name in which the hit occured.

Definition at line 66 of file BeamBackHit.h.

67 {
68 switch (m_subDet) {
69 case 0: return "IR";
70 case 1: return "PDX";
71 case 2: return "SVD";
72 case 3: return "CDC";
73 case 4: return "ARICH";
74 case 5: return "TOP";
75 case 6: return "ECL";
76 case 7: return "EKLM";
77 case 8: return "BKLM";
78 }
79 return "";
80 }

◆ getTime()

double getTime ( ) const
inline

Get the time at which the hit occured.

Definition at line 107 of file BeamBackHit.h.

107{ return m_t; }

◆ getTrackID()

int getTrackID ( ) const
inline

the traci ID of the particle

Definition at line 92 of file BeamBackHit.h.

92{ return m_trackID;}

◆ getTrackLength()

double getTrackLength ( ) const
inline

the length of the track in the volume

Definition at line 119 of file BeamBackHit.h.

119{ return m_trackLength; }

◆ setEnergy()

void setEnergy ( double  E)
inline

Set energy of the particle.

Definition at line 156 of file BeamBackHit.h.

156{ m_E_start = E; }
R E
internal precision of FFTW codelets

◆ setEnergyAtExit()

void setEnergyAtExit ( double  E)
inline

Set energy of track at exit point of volume.

Definition at line 159 of file BeamBackHit.h.

159{m_E_end = E;}

◆ setEnergyDeposit()

void setEnergyDeposit ( double  eDep)
inline

Set particle energy deposit in volume.

Definition at line 162 of file BeamBackHit.h.

162{ m_energyDeposit = eDep; }

◆ setIdentifier()

void setIdentifier ( int  iden)
inline

Set the subdetector component identifier.

Definition at line 128 of file BeamBackHit.h.

128{ m_identifier = iden; }

◆ setMomentum()

void setMomentum ( ROOT::Math::XYZVector  momentum)
inline

Set momentum of the particle hit.

Definition at line 145 of file BeamBackHit.h.

146 {
147 m_momentumX = momentum.X();
148 m_momentumY = momentum.Y();
149 m_momentumZ = momentum.Z();
150 }

◆ setNeutronWeight()

void setNeutronWeight ( double  w)
inline

set the neutron weight

Definition at line 168 of file BeamBackHit.h.

168{m_neutronWeight = w;}

◆ setPDG()

void setPDG ( int  PDG)
inline

Set the lund code of the particle that hit the sensitive area.

Definition at line 131 of file BeamBackHit.h.

131{ m_PDG = PDG; }

◆ setPosition()

void setPosition ( ROOT::Math::XYZVector  position)
inline

Set global position of the particle hit.

Definition at line 137 of file BeamBackHit.h.

138 {
139 m_positionX = position.X();
140 m_positionY = position.Y();
141 m_positionZ = position.Z();
142 }

◆ setSubDet()

void setSubDet ( int  subDet)
inline

Set the subdetector group in which the hit occured.

Definition at line 125 of file BeamBackHit.h.

125{ m_subDet = subDet; }

◆ setTime()

void setTime ( double  t)
inline

Set the time at which the hit occured.

Definition at line 153 of file BeamBackHit.h.

153{ m_t = t; }

◆ setTrackID()

void setTrackID ( int  trackID)
inline

set the trackID of the track

Definition at line 134 of file BeamBackHit.h.

134{m_trackID = trackID;}

◆ setTrackLength()

void setTrackLength ( double  l)
inline

set the length of the track in the volume

Definition at line 165 of file BeamBackHit.h.

165{m_trackLength = l;}

◆ shiftInTime()

void shiftInTime ( double  time)
inline

shift in time for beambkgmixer

Definition at line 171 of file BeamBackHit.h.

171{ m_t += time; }

Member Data Documentation

◆ m_E_end

float m_E_end
private

Energy of the particle when leaving the volume.

Definition at line 212 of file BeamBackHit.h.

◆ m_E_start

float m_E_start
private

Energy of particle at entrance into the volume.

Definition at line 209 of file BeamBackHit.h.

◆ m_energyDeposit

float m_energyDeposit
private

Energy deposited in sensitive volume.

Definition at line 215 of file BeamBackHit.h.

◆ m_identifier

int m_identifier
private

The identifier of subdetector component.

Definition at line 179 of file BeamBackHit.h.

◆ m_momentumX

float m_momentumX
private

Momentum of the hit (X coordinate).

Definition at line 197 of file BeamBackHit.h.

◆ m_momentumY

float m_momentumY
private

Momentum of the hit (Y coordinate).

Definition at line 200 of file BeamBackHit.h.

◆ m_momentumZ

float m_momentumZ
private

Momentum of the hit (Z coordinate).

Definition at line 203 of file BeamBackHit.h.

◆ m_neutronWeight

float m_neutronWeight
private

The effective neutron weight.

Definition at line 221 of file BeamBackHit.h.

◆ m_PDG

int m_PDG
private

The PDG code of the particle that hit the sensitive area.

Definition at line 182 of file BeamBackHit.h.

◆ m_positionX

float m_positionX
private

Global position of the hit (X coordinate).

Definition at line 188 of file BeamBackHit.h.

◆ m_positionY

float m_positionY
private

Global position of the hit (Y coordinate).

Definition at line 191 of file BeamBackHit.h.

◆ m_positionZ

float m_positionZ
private

Global position of the hit (Z coordinate).

Definition at line 194 of file BeamBackHit.h.

◆ m_subDet

int m_subDet
private

The name of the subdetector.

Definition at line 176 of file BeamBackHit.h.

◆ m_t

float m_t
private

Time at which the hit occured.

Definition at line 206 of file BeamBackHit.h.

◆ m_trackID

int m_trackID
private

The trackID of the hit.

Definition at line 185 of file BeamBackHit.h.

◆ m_trackLength

float m_trackLength
private

Length of the track in the volume.

Definition at line 218 of file BeamBackHit.h.


The documentation for this class was generated from the following file: