Belle II Software  release-08-01-10
BeamBackHit Class Reference

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

#include <BeamBackHit.h>

Inheritance diagram for BeamBackHit:
Collaboration 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. More...
 
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()

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
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
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
void setPosition(ROOT::Math::XYZVector position)
Set global position of the particle hit.
Definition: BeamBackHit.h:137
float m_E_start
Energy of particle at entrance into the volume.
Definition: BeamBackHit.h:209
int m_subDet
The name of the subdetector.
Definition: BeamBackHit.h:176
int m_identifier
The identifier of subdetector component.
Definition: BeamBackHit.h:179

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