34#include "G4Allocator.hh"
35#include "G4RotationMatrix.hh"
36#include "G4THitsCollection.hh"
37#include "G4ThreeVector.hh"
66 inline void*
operator new(size_t);
67 inline void operator delete(
void* aHit);
70 virtual void Draw() final;
76 virtual
void Print() final;
82 inline void SetRot(G4RotationMatrix aXYZ) {
fRot = aXYZ; }
134 G4ThreeVector
fPos = { -1, -1, -1 };
149inline void* Par04Hit::operator
new(size_t)
156inline void Par04Hit::operator
delete(
void* aHit)
G4ThreadLocal G4Allocator< Par04Hit > * Par04HitAllocator
G4THitsCollection< Par04Hit > Par04HitsCollection
Hit class to store energy deposited in the sensitive detector.
void SetNdep(G4int aNdep)
Set number of deposits per hit/cell.
G4int fZId
Z ID of readout cell.
void AddEdep(G4double aEdep)
Add energy to previous value.
G4int GetZid() const
Get Z id of the cell in the readout segmentation.
virtual void Print() final
Print hit properties.
void SetLogV(G4LogicalVolume *aLogVol)
virtual void Draw() final
Visualise hits.
G4int fPhiId
Phi ID of readout cell.
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const final
Retrieve atributes' names in order to allow filtering.
G4ThreeVector GetPos() const
Get position.
void SetRot(G4RotationMatrix aXYZ)
Set rotation.
virtual std::vector< G4AttValue > * CreateAttValues() const final
Create attributes for the visualisation.
void AddNdep(G4int aNdep=1)
Add number of deposits to previous value, by defualt increment.
G4int fRhoId
Rho ID of readout cell.
G4RotationMatrix GetRot() const
Get rotation.
const Par04Hit & operator=(const Par04Hit &aRight)
G4double GetEdep() const
Get energy.
void SetRhoId(G4int aRho)
Set Rho id of the cell in the readout segmentation.
G4int fNdep
Counter of deposits in a hit/cell.
void SetZid(G4int aZ)
Set Z id of the cell in the readout segmentation.
G4int GetType() const
Get type (0 = full sim, 1 = fast sim)
G4ThreeVector fPos
Position.
G4int GetRhoId() const
Get rho id of the cell in the readout segmentation.
G4LogicalVolume * fLogVol
Pointer to logical volume for visualisation.
void SetTime(G4double aTime)
Set time.
G4RotationMatrix fRot
Rotation.
void SetEdep(G4double aEdep)
Set energy.
void SetPhiId(G4int aPhi)
Set phi id of the cell in the readout segmentation.
G4double fEdep
Energy deposit.
G4int fType
Type: 0 = full sim, 1 = fast sim.
void SetType(G4int aType)
Set type (0 = full sim, 1 = fast sim)
void SetPos(G4ThreeVector aXYZ)
Set position.
int operator==(const Par04Hit &aRight) const
G4double GetTime() const
Get time.
G4int GetNdep() const
Get number of deposits per hit/cell.
const G4LogicalVolume * GetLogVol()
G4int GetPhiId() const
Get phi id of the cell in the readout segmentation.