BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
BDSModulatorLinearT Class Reference

Top-hat modulator as a function of T. More...

#include <BDSModulatorLinearT.hh>

Inheritance diagram for BDSModulatorLinearT:
Inheritance graph
Collaboration diagram for BDSModulatorLinearT:
Collaboration graph

Public Member Functions

 BDSModulatorLinearT (G4double T0, G4double T1, G4double slopeIn=0.0, G4double yInterceptIn=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 difference in T0, T1 / 20.
 

Private Attributes

G4double T0
 
G4double T1
 
G4double slope
 
G4double yIntercept
 

Additional Inherited Members

- Static Public Member Functions inherited from BDSModulator
static void SetEventIndex (G4int eventIndexIn)
 Setter for the static counter so we can trace where it's used.
 
- Static Protected Attributes inherited from BDSModulator
static G4int eventIndex = 0
 

Detailed Description

Top-hat modulator as a function of T.

factor = amplitudeScale, T0 <= T <= T1 ; else 0

Author
Laurie Nevay

Definition at line 34 of file BDSModulatorLinearT.hh.

Constructor & Destructor Documentation

◆ BDSModulatorLinearT()

BDSModulatorLinearT::BDSModulatorLinearT ( G4double  T0,
G4double  T1,
G4double  slopeIn = 0.0,
G4double  yInterceptIn = 1.0 
)
explicit

Definition at line 29 of file BDSModulatorLinearT.cc.

Member Function Documentation

◆ Factor()

G4double BDSModulatorLinearT::Factor ( const G4ThreeVector &  xyz,
G4double  T 
) const
virtual

Returns value of equation in brief at the top of this file.

Implements BDSModulator.

Definition at line 46 of file BDSModulatorLinearT.cc.

◆ RecommendedMaxStepLength()

G4double BDSModulatorLinearT::RecommendedMaxStepLength ( ) const
virtual

Return difference in T0, T1 / 20.

Implements BDSModulator.

Definition at line 52 of file BDSModulatorLinearT.cc.

◆ VariesWithTime()

virtual G4bool BDSModulatorLinearT::VariesWithTime ( ) const
inlinevirtual

Each derived class should override this.

Implements BDSModulator.

Definition at line 48 of file BDSModulatorLinearT.hh.

Field Documentation

◆ slope

G4double BDSModulatorLinearT::slope
private

Definition at line 56 of file BDSModulatorLinearT.hh.

◆ T0

G4double BDSModulatorLinearT::T0
private

Definition at line 54 of file BDSModulatorLinearT.hh.

◆ T1

G4double BDSModulatorLinearT::T1
private

Definition at line 55 of file BDSModulatorLinearT.hh.

◆ yIntercept

G4double BDSModulatorLinearT::yIntercept
private

Definition at line 57 of file BDSModulatorLinearT.hh.


The documentation for this class was generated from the following files: