11#include <G4ThreeVector.hh>
12#include <simulation/dataobjects/SimHitBase.h>
42 G4ThreeVector Momentum,
43 G4ThreeVector Position,
ClassECLSimHit - Geant4 simulated hit for the ECL.
int getPDGCode() const
Get Particle PDG (can be one of secondaries)
void setEnergyDep(double Edep)
Set Deposit energy.
int getTrackId() const
Get Track ID.
ECLSimHit(int CellId, int TrackId, int Pdg, double FlightTime, double Edep, G4ThreeVector Momentum, G4ThreeVector Position, double Hadronedep)
Useful Constructor.
void setMomentum(const G4ThreeVector &Momentum)
Set Momentum.
int getCellId() const
Get Cell ID.
ClassDefOverride(ECLSimHit, 6)
the class title
double getFlightTime() const
Get Flight time from IP.
ECLSimHit()
default constructor for ROOT
void setPDGCode(int Pdg)
Set Particle PDG (can be one of secondaries)
void setCellId(int CellId)
Set Cell ID.
double getEnergyDep() const
Get Deposit energy.
G4ThreeVector getPosition() const
Get Position.
G4ThreeVector getMomentum() const
Get Momentum.
double m_Edep
Deposit energy.
double getHadronEnergyDep() const
Get Hadron Deposit energy.
double m_Momentum[3]
Momentum.
double m_Position[3]
Position.
void setTrackId(int TrackId)
Set Track ID.
void setFlightTime(double FlightTime)
Set Flight time from IP.
double m_HadronEdep
Hadron Energy Deposit.
double m_FlightTime
Flight time from IP.
void shiftInTime(float delta) override
Shift the SimHit in time (needed for beam background mixing)
void setPosition(const G4ThreeVector &Position)
Set Position.
G4ThreeVector getPosIn() const
Get Position.
int m_Pdg
Particle PDG (can be one of secondaries)
Class SimHitBase - A common base for subdetector SimHits.
Abstract base class for different kinds of events.