Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4qss_misc.hh File Reference

Go to the source code of this file.

Classes

struct  QSSSubstep_
 
struct  QSS_simulator_
 

Namespaces

namespace  Qss_misc
 

Macros

#define unlikely(x)
 
#define likely(x)
 
#define SUBSTEP_STRUCT(sim, i)
 
#define SUBSTEP_START(sim, i)
 
#define SUBSTEP_X(sim, i)
 
#define SUBSTEP_TX(sim, i)
 
#define SUBSTEP_LEN(sim, i)
 
#define LAST_SUBSTEP_STRUCT(sim)
 
#define CUR_SUBSTEP_START(sim)
 
#define CUR_SUBSTEP_X(sim)
 
#define CUR_SUBSTEP_TX(sim)
 
#define CUR_SUBSTEP_LEN(sim)
 
#define CUR_SUBSTEP(sim)
 
#define LAST_SUBSTEP(sim)
 
#define MAX_SUBSTEP(sim)
 
#define SUBSTEPS(sim)
 

Typedefs

typedef struct QSS_simulator_QSS_simulator
 
typedef struct QSSSubstep_QSSSubstep
 

Variables

constexpr unsigned int Qss_misc::PXidx = 0
 
constexpr unsigned int Qss_misc::PYidx = 1
 
constexpr unsigned int Qss_misc::PZidx = 2
 
constexpr unsigned int Qss_misc::VXidx = 3
 
constexpr unsigned int Qss_misc::VYidx = 4
 
constexpr unsigned int Qss_misc::VZidx = 5
 
constexpr unsigned int Qss_misc::MAX_QSS_STEPPER_ORDER = 3
 
constexpr unsigned int Qss_misc::VAR_IDX_END = 6
 
constexpr unsigned int Qss_misc::MIN_SUBSTEPS = 20
 
constexpr G4double Qss_misc::INF = 1.0e20
 

Macro Definition Documentation

◆ CUR_SUBSTEP

#define CUR_SUBSTEP ( sim)
Value:
(sim->cur_substep_idx)

Definition at line 81 of file G4qss_misc.hh.

Referenced by G4QSStepper< QSS >::Stepper().

◆ CUR_SUBSTEP_LEN

#define CUR_SUBSTEP_LEN ( sim)
Value:
(SUBSTEP_LEN(sim, sim->cur_substep_idx))
#define SUBSTEP_LEN(sim, i)
Definition G4qss_misc.hh:72

Definition at line 79 of file G4qss_misc.hh.

◆ CUR_SUBSTEP_START

#define CUR_SUBSTEP_START ( sim)
Value:
(SUBSTEP_START(sim, sim->cur_substep_idx))
#define SUBSTEP_START(sim, i)
Definition G4qss_misc.hh:69

Definition at line 76 of file G4qss_misc.hh.

◆ CUR_SUBSTEP_TX

#define CUR_SUBSTEP_TX ( sim)
Value:
(SUBSTEP_TX(sim, sim->cur_substep_idx))
#define SUBSTEP_TX(sim, i)
Definition G4qss_misc.hh:71

Definition at line 78 of file G4qss_misc.hh.

◆ CUR_SUBSTEP_X

#define CUR_SUBSTEP_X ( sim)
Value:
(SUBSTEP_X(sim, sim->cur_substep_idx))
#define SUBSTEP_X(sim, i)
Definition G4qss_misc.hh:70

Definition at line 77 of file G4qss_misc.hh.

◆ LAST_SUBSTEP

#define LAST_SUBSTEP ( sim)
Value:
(sim->cur_substep_idx-1)

Definition at line 82 of file G4qss_misc.hh.

Referenced by G4QSStepper< QSS >::Interpolate().

◆ LAST_SUBSTEP_STRUCT

#define LAST_SUBSTEP_STRUCT ( sim)
Value:
(SUBSTEP_STRUCT(sim, sim->cur_substep_idx-1))
#define SUBSTEP_STRUCT(sim, i)
Definition G4qss_misc.hh:68

Definition at line 74 of file G4qss_misc.hh.

Referenced by G4QSStepper< QSS >::Stepper().

◆ likely

#define likely ( x)
Value:
__builtin_expect((x),1)

Definition at line 57 of file G4qss_misc.hh.

Referenced by G4QSS3::next_time().

◆ MAX_SUBSTEP

#define MAX_SUBSTEP ( sim)
Value:
(sim->max_substep_idx)

Definition at line 83 of file G4qss_misc.hh.

◆ SUBSTEP_LEN

#define SUBSTEP_LEN ( sim,
i )
Value:
(sim->substeps[(i)].len)

Definition at line 72 of file G4qss_misc.hh.

Referenced by G4QSStepper< QSS >::Interpolate().

◆ SUBSTEP_START

#define SUBSTEP_START ( sim,
i )
Value:
(sim->substeps[(i)].start_time)

Definition at line 69 of file G4qss_misc.hh.

◆ SUBSTEP_STRUCT

#define SUBSTEP_STRUCT ( sim,
i )
Value:
(sim->substeps[i])

Definition at line 68 of file G4qss_misc.hh.

Referenced by G4QSStepper< QSS >::Interpolate().

◆ SUBSTEP_TX

#define SUBSTEP_TX ( sim,
i )
Value:
(sim->substeps[(i)].tx)

Definition at line 71 of file G4qss_misc.hh.

◆ SUBSTEP_X

#define SUBSTEP_X ( sim,
i )
Value:
(sim->substeps[(i)].x)

Definition at line 70 of file G4qss_misc.hh.

◆ SUBSTEPS

#define SUBSTEPS ( sim)
Value:
(sim->substeps)

Definition at line 84 of file G4qss_misc.hh.

Referenced by G4QSStepper< QSS >::~G4QSStepper().

◆ unlikely

#define unlikely ( x)
Value:
__builtin_expect((x),0)

Definition at line 56 of file G4qss_misc.hh.

Referenced by G4QSS3::min_pos_root_2_alt(), and G4QSS2::recompute_next_times().

Typedef Documentation

◆ QSS_simulator

typedef struct QSS_simulator_* QSS_simulator

Definition at line 31 of file G4qss_misc.hh.

◆ QSSSubstep

typedef struct QSSSubstep_* QSSSubstep

Definition at line 32 of file G4qss_misc.hh.