Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4LDMHi.cc
이 파일의 문서화 페이지로 가기
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: G4LDMHi.cc 66817 2013-01-12 16:16:08Z gcosmo $
30 //
31 //---------------------------------------------------------------------------
32 //
33 // ClassName: G4LDMHi
34 //
35 // Description:
36 //
37 // 15.03.17 V. Grichine based on G4Monopole
38 //
39 // Modified:
40 //
41 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
42 
43 #include "G4LDMHi.hh"
44 #include "G4ParticleTable.hh"
45 #include "G4PhysicalConstants.hh"
46 #include "G4SystemOfUnits.hh"
47 
48 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
49 
50 G4LDMHi* G4LDMHi::theLDMHi = nullptr;
51 
52 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
53 
55  const G4String& aName, G4double mass,
56  G4double width, G4double charge,
57  G4int iSpin, G4int iParity,
58  G4int iConjugation, G4int iIsospin,
59  G4int iIsospin3, G4int gParity,
60  const G4String& pType, G4int lepton,
62  G4bool stable, G4double lifetime,
63  G4DecayTable *decaytable)
64  : G4ParticleDefinition( aName, mass, width, charge, iSpin, iParity,
65  iConjugation, iIsospin, iIsospin3, gParity, pType,
66  lepton, baryon, encoding, stable, lifetime, decaytable )
67 {}
68 
69 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
70 
72 {}
73 
74 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
75 //
76 // Arguments for constructor are as follows
77 // name mass width charge
78 // 2*spin parity C-conjugation
79 // 2*Isospin 2*Isospin3 G-parity
80 // type lepton number baryon number PDG encoding
81 // stable lifetime decay table
82 //
83 //
84 
86 {
87  if(!theLDMHi)
88  {
89  theLDMHi = new G4LDMHi(
90  "ldmhi", mass, 0.0*MeV, 0,
91  0, -1, -1,
92  0, 0, 0,
93  "boson", 0, 0, 51,
94  true, -1.0, 0);
95 
96 
97  G4cout << "LDMHi is created: m(GeV)= " << theLDMHi->GetPDGMass()/GeV
98  << G4endl;
99  }
100  return theLDMHi;
101 }
102 
103 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
104 
106 {
107  return theLDMHi;
108 }
109 
110 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
111 
112 
static G4LDMHi * LDMHi()
Definition: G4LDMHi.cc:105
static constexpr double MeV
Definition: G4SIunits.hh:214
#define G4endl
Definition: G4ios.hh:61
static G4LDMHi * LDMHiDefinition(G4double mass)
Definition: G4LDMHi.cc:85
G4double GetPDGMass() const
static G4LDMHi * theLDMHi
Definition: G4LDMHi.hh:60
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
#define width
Definition of the G4LDMHi class.
int G4int
Definition: G4Types.hh:78
G4LDMHi(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: G4LDMHi.cc:54
G4GLOB_DLL std::ostream G4cout
virtual ~G4LDMHi()
Definition: G4LDMHi.cc:71
static constexpr double GeV
Definition: G4SIunits.hh:217