Geant4 VMC
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
source
physics_monopole
src
G4Monopole.cxx
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
28
//
29
// $Id: G4Monopole.cc 66817 2013-01-12 16:16:08Z gcosmo $
30
//
31
//---------------------------------------------------------------------------
32
//
33
// ClassName: G4Monopole
34
//
35
// Description:
36
//
37
// Authors: 21.03.05 V.Ivanchenko
38
//
39
// Modified:
40
//
41
// 12.07.10 S.Burdin (changed the magnetic and electric charge variables from
42
// integer to double)
43
//----------------------------------------------------------------------------
44
//
45
46
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
47
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
48
49
#include "
G4Monopole.hh
"
50
#include "G4ParticleTable.hh"
51
#include "G4PhysicalConstants.hh"
52
#include "G4SystemOfUnits.hh"
53
54
// ######################################################################
55
// ### Monopole ###
56
// ######################################################################
57
58
G4Monopole
*
G4Monopole::theMonopole
= 0;
59
G4double
G4Monopole::magCharge
= 0.0;
60
61
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
62
63
G4Monopole::G4Monopole
(
const
G4String& aName, G4double mass, G4double width,
64
G4double charge, G4int iSpin, G4int iParity, G4int iConjugation,
65
G4int iIsospin, G4int iIsospin3, G4int gParity,
const
G4String& pType,
66
G4int lepton, G4int baryon, G4int encoding, G4bool stable, G4double lifetime,
67
G4DecayTable* decaytable)
68
:
G4ParticleDefinition
(aName, mass, width, charge, iSpin, iParity,
69
iConjugation, iIsospin, iIsospin3, gParity, pType, lepton, baryon,
70
encoding, stable, lifetime, decaytable)
71
{}
72
73
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
74
75
G4Monopole::~G4Monopole
() {
theMonopole
= 0; }
76
77
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
78
//
79
// Arguments for constructor are as follows
80
// name mass width charge
81
// 2*spin parity C-conjugation
82
// 2*Isospin 2*Isospin3 G-parity
83
// type lepton number baryon number PDG encoding
84
// stable lifetime decay table
85
//
86
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
87
88
G4Monopole
*
G4Monopole::MonopoleDefinition
(
89
G4double mass, G4double mCharge, G4double eCharge)
90
{
91
if
(!
theMonopole
) {
92
magCharge
= eplus * mCharge / fine_structure_const * 0.5;
93
theMonopole
=
new
G4Monopole
(
"monopole"
, mass, 0.0 * MeV, eplus * eCharge,
94
0, 0, 0, 0, 0, 0,
"boson"
, 0, 0, 60000000,
true
, -1.0, 0);
95
96
G4cout <<
"Monopole is created: m(GeV)= "
<<
theMonopole
->GetPDGMass() / GeV
97
<<
" Qel= "
<<
theMonopole
->GetPDGCharge() / eplus
98
<<
" Qmag= "
<<
magCharge
/ eplus << G4endl;
99
}
100
return
theMonopole
;
101
}
102
103
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
104
105
G4Monopole
*
G4Monopole::Monopole
()
106
{
107
if
(!
theMonopole
) {
108
theMonopole
=
MonopoleDefinition
();
109
}
110
return
theMonopole
;
111
}
112
113
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
114
115
G4double
G4Monopole::MagneticCharge
()
const
{
return
magCharge
; }
116
117
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
G4Monopole.hh
Definition of the G4Monopole class.
G4Monopole
Definition
Doxymodules.h:48
G4Monopole::theMonopole
static G4Monopole * theMonopole
Definition
G4Monopole.hh:65
G4Monopole::Monopole
static G4Monopole * Monopole()
Definition
G4Monopole.cxx:105
G4Monopole::magCharge
static G4double magCharge
Definition
G4Monopole.hh:92
G4Monopole::~G4Monopole
virtual ~G4Monopole()
Definition
G4Monopole.cxx:75
G4Monopole::MonopoleDefinition
static G4Monopole * MonopoleDefinition(G4double mass=100.*CLHEP::GeV, G4double magCharge=1.0, G4double elCharge=0.0)
Definition
G4Monopole.cxx:88
G4Monopole::MagneticCharge
G4double MagneticCharge() const
Definition
G4Monopole.cxx:115
G4Monopole::G4Monopole
G4Monopole(const G4String &aName, G4double mass, G4double width, G4double charge, G4int iSpin, G4int iParity, G4int iConjugation, G4int iIsospin, G4int iIsospin3, G4int gParity, const G4String &pType, G4int lepton, G4int baryon, G4int encoding, G4bool stable, G4double lifetime, G4DecayTable *decaytable)
Definition
G4Monopole.cxx:63
G4ParticleDefinition
Generated on
for Geant4 VMC by
1.17.0