#include <EDepSimSpillTimeGenerator.hh>
Public Member Functions | |
SpillTimeGenerator (G4String name, double spillTime, double bunchSeparation, double bunchLength, const std::vector< double > &bunchPower) | |
virtual | ~SpillTimeGenerator () |
double | GetTime (const G4LorentzVector &vertex) |
Return the time of the event to be generated. More... | |
virtual bool | ForceTime () |
Public Member Functions inherited from EDepSim::VTimeGenerator | |
VTimeGenerator (const G4String &name) | |
virtual | ~VTimeGenerator () |
G4String | GetName () const |
Return the name of the generator. More... | |
Private Attributes | |
double | fSpillTime |
The time that the neutrinos are crossing (0,0,0). More... | |
double | fBunchSeparation |
The time between bunch starts. More... | |
double | fBunchLength |
The length of a bunch. This is the gaussian width of the bunch. More... | |
std::vector< double > | fBunchPower |
The power in each bunch. More... | |
double | fMaxPower |
The maximum power in a bunch. More... | |
Definition at line 13 of file EDepSimSpillTimeGenerator.hh.
EDepSim::SpillTimeGenerator::SpillTimeGenerator | ( | G4String | name, |
double | spillTime, | ||
double | bunchSeparation, | ||
double | bunchLength, | ||
const std::vector< double > & | bunchPower | ||
) |
Create the generatory. The name is for documentation, the spillTime gives the start time of the first bunch at the center of the EDepSim:: hall, the bunchSeparation is the time between bunch starts, and the bunchLength is the time length of a bunch with respect to it's start time.
Definition at line 9 of file EDepSimSpillTimeGenerator.cc.
|
virtual |
Definition at line 28 of file EDepSimSpillTimeGenerator.cc.
|
virtual |
Flag if the time should be forced. This tells the calling routine that the time returned by this generator should override any times found in the original vertex. This returns true, so that the generated spill time overrides the interaction time.
Implements EDepSim::VTimeGenerator.
Definition at line 54 of file EDepSimSpillTimeGenerator.cc.
|
virtual |
Return the time of the event to be generated.
Implements EDepSim::VTimeGenerator.
Definition at line 30 of file EDepSimSpillTimeGenerator.cc.
|
private |
The length of a bunch. This is the gaussian width of the bunch.
Definition at line 44 of file EDepSimSpillTimeGenerator.hh.
|
private |
The power in each bunch.
Definition at line 47 of file EDepSimSpillTimeGenerator.hh.
|
private |
The time between bunch starts.
Definition at line 41 of file EDepSimSpillTimeGenerator.hh.
|
private |
The maximum power in a bunch.
Definition at line 50 of file EDepSimSpillTimeGenerator.hh.
|
private |
The time that the neutrinos are crossing (0,0,0).
Definition at line 38 of file EDepSimSpillTimeGenerator.hh.