ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4LDMPhoton.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file 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 //
30 //---------------------------------------------------------------------------
31 //
32 // ClassName: G4LDMPhoton
33 //
34 // Description:
35 //
36 // 15.03.17 V. Grichine based on G4Monopole
37 //
38 // Modified:
39 //
40 
41 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
42 
43 #include "G4LDMPhoton.hh"
44 #include "G4ParticleTable.hh"
45 #include "G4PhysicalConstants.hh"
46 #include "G4SystemOfUnits.hh"
47 #include "G4DecayTable.hh"
48 #include "G4VDecayChannel.hh"
50 
52 
53 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
54 
56  const G4String& aName, G4double mass,
57  G4double width, G4double charge,
58  G4int iSpin, G4int iParity,
59  G4int iConjugation, G4int iIsospin,
60  G4int iIsospin3, G4int gParity,
61  const G4String& pType, G4int lepton,
63  G4bool stable, G4double lifetime,
64  G4DecayTable *decaytable)
65  : G4ParticleDefinition( aName, mass, width, charge, iSpin, iParity,
66  iConjugation, iIsospin, iIsospin3, gParity, pType,
67  lepton, baryon, encoding, stable, lifetime, decaytable )
68 {}
69 
70 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
71 
73 {}
74 
75 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
76 //
77 // Arguments for constructor are as follows
78 // name mass width charge
79 // 2*spin parity C-conjugation
80 // 2*Isospin 2*Isospin3 G-parity
81 // type lepton number baryon number PDG encoding
82 // stable lifetime decay table
83 //
84 //
85 
87 {
88  if(!theLDMPhoton)
89  {
91  "ldmphoton", mass, 5.317e-14*MeV, 0,
92  2, -1, -1,
93  0, 0, 0,
94  "boson", 0, 0, 50,
95  true, 12.380*ns, NULL);
96 
97  //create Decay Table
98  G4DecayTable* table = new G4DecayTable();
99 
100  // create decay channels
101  G4VDecayChannel** mode = new G4VDecayChannel*[3];
102  //
103  mode[0] =
104  new G4PhaseSpaceDecayChannel("ldmphoton",0.999,2,"ldmhi","ldmhibar");
105  //
106  mode[1] = new G4PhaseSpaceDecayChannel("ldmphoton",0.0005,2,"mu+","mu-");
107  //
108  mode[2] = new G4PhaseSpaceDecayChannel("ldmphoton",0.0005,3,"pi+","pi-");
109 
110  for (G4int index=0; index <3; index++ ) table->Insert(mode[index]);
111 
112  delete [] mode;
113 
114  theLDMPhoton->SetDecayTable(table);
115 
116  G4cout << "LDMPhoton is created: m(GeV)= "
118  }
119  return theLDMPhoton;
120 }
121 
122 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
123 
125 {
126  return theLDMPhoton;
127 }
128 
129 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
130 
131 
132