20#include "BDSException.hh"
21#include "BDSModulatorTopHatT.hh"
27BDSModulatorTopHatT::BDSModulatorTopHatT(G4double T0In,
29 G4double amplitudeScaleIn):
32 scale(amplitudeScaleIn)
36 G4String msg =
"T1 (" + std::to_string(T1) +
") must be greater equal than T0 (";
37 msg += std::to_string(T0) +
")";
45 return T <= T1 && T >= T0 ? scale : 0;
50 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.