Belle II Software development
G4Monopole Class Reference

A class to hold monopole description as a particle. More...

#include <G4Monopole.h>

Inheritance diagram for G4Monopole:

Public Member Functions

 G4Monopole (const G4String &name, G4double mass, G4double mCharge, G4double eCharge, G4int encoding)
 Constructor.
 
G4double MagneticCharge () const
 Returns magnetic charge of the monopole.
 

Private Member Functions

virtual ~G4Monopole ()
 Destructor.
 

Private Attributes

G4double magCharge
 Magnetic charge of the monopole, in e+ units.
 

Detailed Description

A class to hold monopole description as a particle.

Creates GEANT4 particle via G4ParticleDefinition and adds extra member for magnetic charge. Particle properties like spin, parities etc. are fixed by default to some values, even though they might be inconsistent with each other. Nevertheless, since monopoles do not decay and are produced only in the generator, that should not matter.

Definition at line 33 of file G4Monopole.h.

Constructor & Destructor Documentation

◆ ~G4Monopole()

~G4Monopole ( )
privatevirtual

Destructor.

Definition at line 44 of file G4Monopole.cc.

45{}

◆ G4Monopole()

G4Monopole ( const G4String &  name,
G4double  mass,
G4double  mCharge,
G4double  eCharge,
G4int  encoding 
)

Constructor.

Parameters
nameName of the monople particle in GEANT4
massMass of the monopole
mChargeMagnetic charge of the monopole, in e+ units
eChargeElectric charge in case of a dyon
encodingPDG code of the monopole. Anything starting with "99" will work.

Definition at line 21 of file G4Monopole.cc.

26 : G4ParticleDefinition(name, mass, 0.0 * MeV, eplus * eCharge,
27 1, 0, 0,
28 0, 0, 0,
29 "fermion", 0, 0, encoding,
30 true, -1.0, 0),
31 // Arguments for constructor are as follows
32 // name mass width charge
33 // 2*spin parity C-conjugation
34 // 2*Isospin 2*Isospin3 G-parity
35 // type lepton_number baryon_number PDG_encoding
36 // stable lifetime decay_table
37 magCharge(eplus * mCharge)
38{
39 B2INFO("Monopole is created: m(GeV)= " << mass / GeV
40 << " Qel(e+)= " << eCharge / eplus
41 << " Qmag(e+)= " << magCharge / eplus);
42}
G4double magCharge
Magnetic charge of the monopole, in e+ units.
Definition: G4Monopole.h:66

Member Function Documentation

◆ MagneticCharge()

G4double MagneticCharge ( ) const

Returns magnetic charge of the monopole.

Returns
magnetic charge of the monopole

Definition at line 47 of file G4Monopole.cc.

48{
49 return magCharge;
50}

Member Data Documentation

◆ magCharge

G4double magCharge
private

Magnetic charge of the monopole, in e+ units.

Definition at line 66 of file G4Monopole.h.


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