Small class to keep track of the accumulated statistics.
More...
#include <PrimaryGeneratorMessenger.hh>
List of all members.
Public Types |
enum | ScintillatorPlate { UpperFront = 0,
LowerFront = 1,
Back = 2
} |
Public Member Functions |
| AllAccumulatedStatistics (G4double numberOfScintillatorTubes, G4double summationTime) |
| Constructor, constructs the class.
|
| ~AllAccumulatedStatistics () |
| Destructor.
|
void | AddScintillatorTubeEvent (G4int scintillatorID, G4double time, G4double energy) |
| Add a scintillator event when such occurs.
|
void | AddGeDetectorEvent (G4double time, G4double energy) |
| Add a germanium detector event when such occurs.
|
void | AddScintillatorPlateEvent (ScintillatorPlate plate, G4double time, G4double energy) |
| Add a scintillator plate event.
|
std::vector< EventHit > | GetEventHits () |
| Returns the eventHits we have accumulated.
|
bool | timeCheck (G4double time) |
| Check if the time falls within the frame of the current EventHit object, if not it creates a new EventHit with the current time as the start time.
|
Private Attributes |
std::vector< EventHit > | eventHits |
| The event hits for this accumulated statistics object.
|
G4double | scintillatorTubes |
G4double | sumTime |
Detailed Description
Small class to keep track of the accumulated statistics.
Definition at line 29 of file PrimaryGeneratorMessenger.hh.
Constructor & Destructor Documentation
PrimaryGeneratorMessenger::AllAccumulatedStatistics::AllAccumulatedStatistics |
( |
G4double |
numberOfScintillatorTubes, |
|
|
G4double |
summationTime |
|
) |
| |
Constructor, constructs the class.
- Parameters:
-
numberOfScintillatorTubes | Number of scintillator tubes. |
summationTime | Summation time. |
Member Function Documentation
void PrimaryGeneratorMessenger::AllAccumulatedStatistics::AddGeDetectorEvent |
( |
G4double |
time, |
|
|
G4double |
energy |
|
) |
| |
Add a germanium detector event when such occurs.
- Parameters:
-
time | The time of the event. |
energy | The energy of deposited. |
void PrimaryGeneratorMessenger::AllAccumulatedStatistics::AddScintillatorPlateEvent |
( |
ScintillatorPlate |
plate, |
|
|
G4double |
time, |
|
|
G4double |
energy |
|
) |
| |
Add a scintillator plate event.
- Parameters:
-
plate | The plate the eventoccurred in |
time | The time of the event. |
energy | The energy of deposited. |
void PrimaryGeneratorMessenger::AllAccumulatedStatistics::AddScintillatorTubeEvent |
( |
G4int |
scintillatorID, |
|
|
G4double |
time, |
|
|
G4double |
energy |
|
) |
| |
Add a scintillator event when such occurs.
- Parameters:
-
scintillatorID | The scintillator ID |
time | The time of the event. |
energy | Deposited energy. |
std::vector<EventHit> PrimaryGeneratorMessenger::AllAccumulatedStatistics::GetEventHits |
( |
| ) |
|
Returns the eventHits we have accumulated.
- Returns:
- the EventHits accumulated this far.
bool PrimaryGeneratorMessenger::AllAccumulatedStatistics::timeCheck |
( |
G4double |
time | ) |
|
Check if the time falls within the frame of the current EventHit object, if not it creates a new EventHit with the current time as the start time.
- Returns:
- true if a new EventHit object was created as a result of the check, false if not.
- Parameters:
-
The documentation for this class was generated from the following file: