Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // >> 26 // $Id: G4LDMHiBar.cc 66817 2013-01-12 16:16:08Z gcosmo $ 26 // 27 // 27 //-------------------------------------------- 28 //--------------------------------------------------------------------------- 28 // 29 // 29 // ClassName: G4LDMHiBar 30 // ClassName: G4LDMHiBar 30 // << 31 // 31 // Description: << 32 // Description: 32 // 33 // 33 // 15.03.17 V. Grichine based on G4Monopole 34 // 15.03.17 V. Grichine based on G4Monopole 34 // 35 // 35 // Modified: 36 // Modified: 36 // 37 // 37 38 38 //....oooOO0OOooo........oooOO0OOooo........oo 39 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 39 40 40 #include "G4LDMHiBar.hh" 41 #include "G4LDMHiBar.hh" 41 << 42 #include "G4ParticleTable.hh" 42 #include "G4ParticleTable.hh" 43 #include "G4PhysicalConstants.hh" 43 #include "G4PhysicalConstants.hh" 44 #include "G4SystemOfUnits.hh" 44 #include "G4SystemOfUnits.hh" 45 45 46 //....oooOO0OOooo........oooOO0OOooo........oo 46 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 47 47 48 G4LDMHiBar* G4LDMHiBar::theLDMHiBar = nullptr; 48 G4LDMHiBar* G4LDMHiBar::theLDMHiBar = nullptr; 49 49 50 G4LDMHiBar::G4LDMHiBar(const G4String& aName, << 50 G4LDMHiBar::G4LDMHiBar( 51 G4int iSpin, G4int iPar << 51 const G4String& aName, G4double mass, 52 G4int iIsospin3, G4int << 52 G4double width, G4double charge, 53 G4int baryon, G4int enc << 53 G4int iSpin, G4int iParity, 54 G4DecayTable* decaytabl << 54 G4int iConjugation, G4int iIsospin, 55 : G4ParticleDefinition(aName, mass, width, c << 55 G4int iIsospin3, G4int gParity, 56 iIsospin3, gParity, p << 56 const G4String& pType, G4int lepton, 57 decaytable) << 57 G4int baryon, G4int encoding, >> 58 G4bool stable, G4double lifetime, >> 59 G4DecayTable *decaytable) >> 60 : G4ParticleDefinition( aName, mass, width, charge, iSpin, iParity, >> 61 iConjugation, iIsospin, iIsospin3, gParity, pType, >> 62 lepton, baryon, encoding, stable, lifetime, decaytable ) 58 {} 63 {} 59 64 60 //....oooOO0OOooo........oooOO0OOooo........oo 65 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 61 66 62 G4LDMHiBar::~G4LDMHiBar() {} << 67 G4LDMHiBar::~G4LDMHiBar() >> 68 {} 63 69 64 //....oooOO0OOooo........oooOO0OOooo........oo 70 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 65 // << 71 // 66 // Arguments for constructor are as follows 72 // Arguments for constructor are as follows 67 // name mass 73 // name mass width charge 68 // 2*spin parity C-conj 74 // 2*spin parity C-conjugation 69 // 2*Isospin 2*Isospin3 G 75 // 2*Isospin 2*Isospin3 G-parity 70 // type lepton number baryon 76 // type lepton number baryon number PDG encoding 71 // stable lifetime deca << 77 // stable lifetime decay table 72 // 78 // 73 // 79 // 74 80 75 G4LDMHiBar* G4LDMHiBar::LDMHiBarDefinition(G4d 81 G4LDMHiBar* G4LDMHiBar::LDMHiBarDefinition(G4double mass) 76 { << 82 { 77 if (!theLDMHiBar) { << 83 if(!theLDMHiBar) 78 theLDMHiBar = new G4LDMHiBar("ldmhibar", m << 84 { 79 -51, true, -1 << 85 theLDMHiBar = new G4LDMHiBar( 80 << 86 "ldmhibar", mass, 0.0*MeV, 0, 81 G4cout << "LDMHiBar is created: m(GeV)= " << 87 0, -1, -1, >> 88 0, 0, 0, >> 89 "boson", 0, 0, -51, >> 90 true, -1.0, 0); >> 91 >> 92 >> 93 G4cout << "LDMHiBar is created: m(GeV)= " << theLDMHiBar->GetPDGMass()/GeV >> 94 << G4endl; 82 } 95 } 83 return theLDMHiBar; 96 return theLDMHiBar; 84 } 97 } 85 98 86 //....oooOO0OOooo........oooOO0OOooo........oo 99 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 87 100 88 G4LDMHiBar* G4LDMHiBar::LDMHiBar() 101 G4LDMHiBar* G4LDMHiBar::LDMHiBar() 89 { << 102 { 90 return theLDMHiBar; 103 return theLDMHiBar; 91 } << 104 } 92 105 93 //....oooOO0OOooo........oooOO0OOooo........oo 106 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... >> 107 >> 108 >> 109 94 110