Monte Carlo LYSO
Geant4 simulation for the LYSO calorimeter prototype
Public Member Functions | Private Attributes | List of all members
MyHit Class Reference

Concrete class of G4VHit, representing a hit in the MySensitiveDetector. More...

#include <hit.hh>

Inheritance diagram for MyHit:
Inheritance graph
[legend]
Collaboration diagram for MyHit:
Collaboration graph
[legend]

Public Member Functions

 MyHit ()=default
 Constructor of the class.
 
 ~MyHit () override=default
 Destructor of the class.
 
MyHitoperator= (const MyHit &)=default
 Assignment operator, default implementation.
 
G4bool operator== (const MyHit &) const
 Equality operator, compares two MyHit objects for equality.
 
void * operator new (size_t)
 Overloaded new operator for memory allocation: it uses the MyHitAllocator for fast memory handling.
 
void operator delete (void *)
 Overloaded delete operator for memory deallocation: it uses the MyHitAllocator for fast memory handling.
 
void SetDetectionTime (G4double t)
 Set the detection time of the optical photon.
 
void SetDetectorPosition (G4ThreeVector xyz)
 Set the position (center) of the SiPM hit by the optical photon.
 
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.
 
G4ThreeVector GetDetectorPosition () const
 Get the position (center) of the SiPM hit by the optical photon.
 
G4int GetDetectorChannel () const
 Get the channel of the SiPM hit by the optical photon.
 

Private Attributes

G4double fDetectionTime
 Time of detection of the optical photon.
 
G4ThreeVector fDetectorPosition
 Position (center) of the SiPM hit by the optical photon.
 
G4int fCh
 Channel of the SiPM hit by the optical photon.
 

Detailed Description

Concrete class of G4VHit, representing a hit in the MySensitiveDetector.

Definition at line 19 of file hit.hh.


The documentation for this class was generated from the following files: