Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4LDMPhoton.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: G4LDMPhoton.cc 66817 2013-01-12 16:16:08Z gcosmo $
30 //
31 //---------------------------------------------------------------------------
32 //
33 // ClassName: G4LDMPhoton
34 //
35 // Description:
36 //
37 // 15.03.17 V. Grichine based on G4Monopole
38 //
39 // Modified:
40 //
41 
42 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43 
44 #include "G4LDMPhoton.hh"
45 #include "G4ParticleTable.hh"
46 #include "G4PhysicalConstants.hh"
47 #include "G4SystemOfUnits.hh"
48 #include "G4DecayTable.hh"
49 #include "G4VDecayChannel.hh"
51 
53 
54 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
55 
57  const G4String& aName, G4double mass,
58  G4double width, G4double charge,
59  G4int iSpin, G4int iParity,
60  G4int iConjugation, G4int iIsospin,
61  G4int iIsospin3, G4int gParity,
62  const G4String& pType, G4int lepton,
64  G4bool stable, G4double lifetime,
65  G4DecayTable *decaytable)
66  : G4ParticleDefinition( aName, mass, width, charge, iSpin, iParity,
67  iConjugation, iIsospin, iIsospin3, gParity, pType,
68  lepton, baryon, encoding, stable, lifetime, decaytable )
69 {}
70 
71 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
72 
74 {}
75 
76 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
77 //
78 // Arguments for constructor are as follows
79 // name mass width charge
80 // 2*spin parity C-conjugation
81 // 2*Isospin 2*Isospin3 G-parity
82 // type lepton number baryon number PDG encoding
83 // stable lifetime decay table
84 //
85 //
86 
88 {
89  if(!theLDMPhoton)
90  {
92  "ldmphoton", mass, 5.317e-14*MeV, 0,
93  2, -1, -1,
94  0, 0, 0,
95  "boson", 0, 0, 50,
96  true, 12.380*ns, NULL);
97 
98  //create Decay Table
99  G4DecayTable* table = new G4DecayTable();
100 
101  // create decay channels
102  G4VDecayChannel** mode = new G4VDecayChannel*[3];
103  //
104  mode[0] =
105  new G4PhaseSpaceDecayChannel("ldmphoton",0.999,2,"ldmhi","ldmhibar");
106  //
107  mode[1] = new G4PhaseSpaceDecayChannel("ldmphoton",0.0005,2,"mu+","mu-");
108  //
109  mode[2] = new G4PhaseSpaceDecayChannel("ldmphoton",0.0005,3,"pi+","pi-");
110 
111  for (G4int index=0; index <3; index++ ) table->Insert(mode[index]);
112 
113  delete [] mode;
114 
115  theLDMPhoton->SetDecayTable(table);
116 
117  G4cout << "LDMPhoton is created: m(GeV)= "
119  }
120  return theLDMPhoton;
121 }
122 
123 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
124 
126 {
127  return theLDMPhoton;
128 }
129 
130 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
131 
132 
133 
static constexpr double MeV
Definition: G4SIunits.hh:214
void SetDecayTable(G4DecayTable *aDecayTable)
static G4LDMPhoton * LDMPhotonDefinition(G4double mass)
Definition: G4LDMPhoton.cc:87
static G4LDMPhoton * theLDMPhoton
Definition: G4LDMPhoton.hh:52
#define G4endl
Definition: G4ios.hh:61
void Insert(G4VDecayChannel *aChannel)
Definition: G4DecayTable.cc:62
G4double GetPDGMass() const
static G4LDMPhoton * LDMPhoton()
Definition: G4LDMPhoton.cc:125
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
#define width
virtual ~G4LDMPhoton()
Definition: G4LDMPhoton.cc:73
G4LDMPhoton(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: G4LDMPhoton.cc:56
int G4int
Definition: G4Types.hh:78
G4GLOB_DLL std::ostream G4cout
static constexpr double GeV
Definition: G4SIunits.hh:217
#define ns
Definition: xmlparse.cc:614