![]() |
Precalibrated Ion Beam Identification Detector Simulation 1.0
A pilot study detector simulation, written in C++ with Geant4.
|
Holds accumulated statistics for a single event hit. More...
#include <EventHit.hh>
Public Member Functions | |
EventHit (G4int numberOfScintillatorTubes, G4double defaultTime=0) | |
Constructor, constructs the object. | |
Public Attributes | |
G4double | time |
The time of the event start. | |
G4double | upperFrontScintillatorPanelEnergy |
Energy in the upper front scintillator panel. | |
G4double | lowerFrontScintillatorPanelEnergy |
Energy in the lower front scintillator panel. | |
G4double | backScintillatorPanelEnergy |
Energy in the back scintillator panel. | |
G4double | geDetectorEnergy |
Energy in the Ge detector. | |
std::vector< G4double > | scintillatorTubeEnergies |
Energies in the scintillator tubes. |
Holds accumulated statistics for a single event hit.
Definition at line 24 of file EventHit.hh.
EventHit::EventHit | ( | G4int | numberOfScintillatorTubes, |
G4double | defaultTime = 0 |
||
) |
Constructor, constructs the object.
numberOfScintillatorTubes | Number of scintillator tubes. This is used to preinitialize the scintilllator tube vector with the correct number of scintillator tubes. |
defaultTime | The default time to set. |
Definition at line 3 of file EventHit.cc.
References backScintillatorPanelEnergy, geDetectorEnergy, lowerFrontScintillatorPanelEnergy, scintillatorTubeEnergies, time, and upperFrontScintillatorPanelEnergy.
{ scintillatorTubeEnergies = std::vector<G4double>(numberOfScintillatorTubes,0); time=defaultTime; upperFrontScintillatorPanelEnergy = 0; lowerFrontScintillatorPanelEnergy = 0; backScintillatorPanelEnergy = 0; geDetectorEnergy = 0; }