9 #include "G4THitsCollection.hh"
10 #include "G4Allocator.hh"
11 #include "G4ThreeVector.hh"
13 #include "G4UnitsTable.hh"
30 inline void*
operator new(size_t);
31 inline void operator delete(
void*);
64 inline void* MyHit::operator
new(size_t)
75 inline void MyHit::operator
delete(
void* hit)
Concrete class of G4VHit, representing a hit in the MySensitiveDetector.
G4int fCh
Channel of the SiPM hit by the optical photon.
G4bool operator==(const MyHit &) const
Equality operator, compares two MyHit objects for equality.
MyHit & operator=(const MyHit &)=default
Assignment operator, default implementation.
void SetDetectorChannel(G4int ch)
Set the channel of the SiPM hit by the optical photon.
G4double GetDetectionTime() const
Get the detection time of the optical photon.
G4int GetDetectorChannel() const
Get the channel of the SiPM hit by the optical photon.
G4double fDetectionTime
Time of detection of the optical photon.
G4ThreeVector fDetectorPosition
Position (center) of the SiPM hit by the optical photon.
G4ThreeVector GetDetectorPosition() const
Get the position (center) of the SiPM hit by the optical photon.
void SetDetectionTime(G4double t)
Set the detection time of the optical photon.
MyHit()=default
Constructor of the class.
void SetDetectorPosition(G4ThreeVector xyz)
Set the position (center) of the SiPM hit by the optical photon.
~MyHit() override=default
Destructor of the class.
G4ThreadLocal G4Allocator< MyHit > * MyHitAllocator
G4Allocator for MyHit objects.
G4THitsCollection< MyHit > MyHitsCollection
Concrete hit collection class for MyHit.