3.6. G4Sipm hit

A G4SipmHit is created by a G4SipmSensitiveDetector when a Geant4 step of a photon goes through it. It stores the following properties of the step:

  • G4Sipm id
  • track id
  • kinetic energy
  • global time
  • weight (normally equals 1 but can be used to track photon bunches)
  • local position on the SiPM
  • absolute position in the simulation world
  • momentum
  • start position
  • start momentum

Please also refer to the Geant4 hits documentation.

3.6.1. G4Sipm hit collection

Each G4SipmHitCollection is uniquely identified by the G4SipmId. Thus, given the id is zero:

g4sipmHits-0

3.6.2. Source

class G4SipmHit

Hit class for the G4Sipm.

It implements G4VHit::Draw() to visualize hits as red dots on the SiPM surface.

Inherits from G4VHit

Public Functions

G4SipmHit()

Constructor.

G4ParticleDefinition *getParticleDefinition() const

Return
G4ParticleDefinition - the particle definition for the underlying PDG-Id.

double getEKin() const

Return
double - the kinetic energy.

void setEKin(double eKin)

Parameters
  • eKin: - the kinetic energy to set.

const CLHEP::Hep3Vector &getMomentum() const

Return
Hep3Vector - the momentum.

void setMomentum(const CLHEP::Hep3Vector &momentum)

Parameters
  • momentum: - the momentum to set.

int getPdgId() const

Return
int - the PDG particle id.

void setPdgId(int pdgId)

Parameters
  • pdgId: - the PDG particle id to set.

const CLHEP::Hep3Vector &getPosition() const

Return
Hep3Vector - the position.

void setPosition(const CLHEP::Hep3Vector &position)

Parameters
  • position: - the position to set.

G4SipmId getSipmId() const

Return
G4SipmId - the SiPM id to set.

void setSipmId(G4SipmId sipmId)

Parameters
  • sipmId: - the SiPM id to set.

int getTrackId() const

Return
int - the track id.

void setTrackId(int trackId)

Parameters
  • trackId: - the track id.

const CLHEP::Hep3Vector &getStartMomentum() const

Return
Hep3Vector - the start momentum.

void setStartMomentum(const CLHEP::Hep3Vector &startMomentum)

Parameters
  • startMomentum: - the start momentum to set.

const CLHEP::Hep3Vector &getStartPosition() const

Return
Hep3Vector - the start position.

void setStartPosition(const CLHEP::Hep3Vector &startPosition)

Parameters
  • startPosition: - the start position to set.

double getTime() const

Return
double - the time.

void setTime(double time)

Parameters
  • time: - the time to set.

double getWeight() const

Return
double - the weight of the particle step.

void setWeight(double weight)

Parameters
  • weight: - the weight to set.

const CLHEP::Hep3Vector &getWorldPosition() const

Return
Hep3Vector - the position relative to the origin of the world.

void setWorldPosition(const CLHEP::Hep3Vector &worldPosition)

Parameters
  • worldPosition: - the position relative to the origin of the world.