1 #ifndef EDepSim_SpillTimeGenerator_hh_seen 2 #define EDepSim_SpillTimeGenerator_hh_seen 12 namespace EDepSim {
class SpillTimeGenerator;}
22 double bunchSeparation,
24 const std::vector<double>& bunchPower);
double fBunchSeparation
The time between bunch starts.
double fBunchLength
The length of a bunch. This is the gaussian width of the bunch.
SpillTimeGenerator(G4String name, double spillTime, double bunchSeparation, double bunchLength, const std::vector< double > &bunchPower)
Construct a module from components.
double fMaxPower
The maximum power in a bunch.
double fSpillTime
The time that the neutrinos are crossing (0,0,0).
double GetTime(const G4LorentzVector &vertex)
Return the time of the event to be generated.
virtual ~SpillTimeGenerator()
std::vector< double > fBunchPower
The power in each bunch.