19#include "BDSException.hh"
20#include "BDSModulatorTopHatT.hh"
26BDSModulatorTopHatT::BDSModulatorTopHatT(G4double T0In,
28 G4double amplitudeScaleIn):
31 scale(amplitudeScaleIn)
35 G4String msg =
"T1 (" + std::to_string(T1) +
") must be greater equal than T0 (";
36 msg += std::to_string(T0) +
")";
44 return T <= T1 && T >= T0 ? scale : 0;
49 G4double dT = T1 - T0;
General exception with possible name of object and message.
virtual G4double RecommendedMaxStepLength() const
Return difference in T0, T1 / 20.
virtual G4double Factor(const G4ThreeVector &xyz, G4double T) const
Returns value of equation in brief at the top of this file.