Belle II Software  release-08-01-10
G4MonopoleFieldSetup Class Reference

Monopole field setup singleton class, that takes care of switching between conventional particle transportation and monopole transportation. More...

#include <G4MonopoleFieldSetup.h>

Collaboration diagram for G4MonopoleFieldSetup:

Public Member Functions

void SwitchChordFinder (G4int val)
 Switches chord finder between 1 - basf2 FullSim chord finder 2 - monopole chord finder Since monopoles use different equation of motion. More...
 
 ~G4MonopoleFieldSetup ()
 Destructor.
 

Static Public Member Functions

static G4MonopoleFieldSetupGetMonopoleFieldSetup ()
 Returns G4MonopoleFieldSetup instance.
 

Private Member Functions

 G4MonopoleFieldSetup ()
 Constructor.
 
 G4MonopoleFieldSetup (const G4MonopoleFieldSetup &copy)
 Copy constructor should be hidden. More...
 
G4MonopoleFieldSetupoperator= (const G4MonopoleFieldSetup &copy)
 Assignment operator should be hidden. More...
 

Private Attributes

G4FieldManager * fFieldManager
 Field manager that holds current chord finder.
 
G4ChordFinder * fMonopoleChordFinder
 Chord finder for monopoles.
 
G4ChordFinder * fbasf2ChordFinder
 Chord finder taken from FullSim of basf2.
 
G4MonopoleEquationfMonopoleEquation
 Monopole equation of motion.
 
G4MagneticField * fMagneticField
 Magnetic field of basf2.
 
G4MagIntegratorStepper * fMonopoleStepper
 Stepper for monopoles.
 
G4double fMinStep
 Minimal step. More...
 

Static Private Attributes

static G4MonopoleFieldSetupfMonopoleFieldSetup = 0
 The instance of this class.
 

Detailed Description

Monopole field setup singleton class, that takes care of switching between conventional particle transportation and monopole transportation.

Definition at line 33 of file G4MonopoleFieldSetup.h.

Constructor & Destructor Documentation

◆ G4MonopoleFieldSetup()

G4MonopoleFieldSetup ( const G4MonopoleFieldSetup copy)
private

Copy constructor should be hidden.

Parameters
copyCopy reference.

Member Function Documentation

◆ operator=()

G4MonopoleFieldSetup& operator= ( const G4MonopoleFieldSetup copy)
private

Assignment operator should be hidden.

Parameters
copyAssign reference.

◆ SwitchChordFinder()

void SwitchChordFinder ( G4int  val)

Switches chord finder between 1 - basf2 FullSim chord finder 2 - monopole chord finder Since monopoles use different equation of motion.

Parameters
valWhich chord finder to switch to.

Definition at line 60 of file G4MonopoleFieldSetup.cc.

61 {
62  switch (val) {
63  case 0:
64  fFieldManager->SetChordFinder(fbasf2ChordFinder);
65  break;
66  case 1:
67  fFieldManager->SetChordFinder(fMonopoleChordFinder);
68  break;
69  }
70 }
G4FieldManager * fFieldManager
Field manager that holds current chord finder.
G4ChordFinder * fMonopoleChordFinder
Chord finder for monopoles.
G4ChordFinder * fbasf2ChordFinder
Chord finder taken from FullSim of basf2.

Member Data Documentation

◆ fMinStep

G4double fMinStep
private

Minimal step.

1mm is taken as default

Definition at line 76 of file G4MonopoleFieldSetup.h.


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