 |
Belle II Software
release-05-02-19
|
12 #ifndef VXD_DATAOBJECTS_VXDSIMHIT_H
13 #define VXD_DATAOBJECTS_VXDSIMHIT_H
15 #include <simulation/dataobjects/SimHitBase.h>
16 #include <vxd/dataobjects/VxdID.h>
44 VXDSimHit(
VxdID sensorID,
int pdg,
float globalTime,
const float* posIn,
const float* posOut):
Class to uniquely identify a any structure of the PXD and SVD.
VXDSimHit(VxdID sensorID, int pdg, float globalTime, const float *posIn, const float *posOut)
Standard constructor.
float m_posOut[3]
End point of electron deposition in local coordinates.
Class SimHitBase - A common base for subdetector SimHits.
float getElectrons() const
Return the number of created electrons.
VXDSimHit()
default constructor for ROOT
std::vector< std::pair< float, float > > getElectronsConstantNumber(double electronsPerStep) const
Get the electron deposition with constant number of electrons between sampling points.
int m_pdg
PDG Code of the particle producing the Hit.
TVector3 getPosOut() const
Return the end point of the electron deposition in local coordinates.
Abstract base class for different kinds of events.
TVector3 getPosIn() const
Return the start point of the electron deposition in local coordinates.
std::vector< std::pair< float, float > > getElectronProfile() const
Get the decoded electron profile.
float getGlobalTime() const override
Return the time of the electron deposition.
virtual void shiftInTime(float delta) override
Shift the SimHit in time.
std::vector< unsigned int > m_electronProfile
Energy depsoition profile encoded using the ElectronDeposit class.
VxdID getSensorID() const
Return the sensorID of the sensor the electron was deposited in.
const float * getPosArrayOut() const
Return the end point of the electron deposition in local coordinates as float array.
const float * getPosArrayIn() const
Return the start point of the electron deposition in local coordinates as float array.
void setEnergyDeposit(std::vector< unsigned int > &electronProfile)
Set energy deposition profile To avoid copying of the entries this will take over the contents of the...
int getPDGcode() const
Return the PDG code of the particle causing the electron deposition.
unsigned short m_sensorID
ID of the sensor the electron was deposited in.
std::vector< std::pair< float, float > > getElectronsConstantDistance(double length) const
Get the electron deposition along constant stepsize.
float m_posIn[3]
Start point of electron deposition in local coordinates.
float m_globalTime
Time of electron deposition.
Class VXDSimHit - Geant4 simulated hit for the VXD.