BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Sinusoidal modulator as a function of global time. More...
#include <BDSModulatorSinT.hh>
Public Member Functions | |
BDSModulatorSinT (G4double frequencyIn, G4double phaseIn=0, G4double amplitudeOffsetIn=0, G4double amplitudeScaleIn=1.0) | |
virtual G4double | Factor (const G4ThreeVector &xyz, G4double T) const |
Returns value of equation in brief at the top of this file. | |
virtual G4bool | VariesWithTime () const |
Each derived class should override this. | |
virtual G4double | RecommendedMaxStepLength () const |
Return the wavlength / 20 of the oscillator. | |
virtual G4double | Factor (const G4ThreeVector &xyz, G4double T) const =0 |
virtual G4bool | VariesWithTime () const =0 |
Each derived class should override this. | |
virtual G4double | RecommendedMaxStepLength () const =0 |
Must return the smallest spatial. | |
Private Attributes | |
G4double | angularFrequency |
G4double | phase |
G4double | offset |
G4double | scale |
Additional Inherited Members | |
![]() | |
static void | SetEventIndex (G4int eventIndexIn) |
Setter for the static counter so we can trace where it's used. | |
![]() | |
static G4int | eventIndex = 0 |
Sinusoidal modulator as a function of global time.
factor = offset + scale * sin(2pi*frequency*T + phase)
Definition at line 33 of file BDSModulatorSinT.hh.
|
explicit |
Definition at line 29 of file BDSModulatorSinT.cc.
|
virtual |
Returns value of equation in brief at the top of this file.
Implements BDSModulator.
Definition at line 42 of file BDSModulatorSinT.cc.
|
virtual |
Return the wavlength / 20 of the oscillator.
Implements BDSModulator.
Definition at line 49 of file BDSModulatorSinT.cc.
|
inlinevirtual |
Each derived class should override this.
Implements BDSModulator.
Definition at line 47 of file BDSModulatorSinT.hh.
|
private |
Definition at line 53 of file BDSModulatorSinT.hh.
|
private |
Definition at line 55 of file BDSModulatorSinT.hh.
|
private |
Definition at line 54 of file BDSModulatorSinT.hh.
|
private |
Definition at line 56 of file BDSModulatorSinT.hh.