Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-23 09:21:12

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 /// \file exoticphysics/dmparticle/src/G4LDMPhoton.cc
0027 /// \brief Implementation of the G4LDMPhoton class
0028 //
0029 //
0030 //---------------------------------------------------------------------------
0031 //
0032 // ClassName:   G4LDMPhoton
0033 //
0034 // Description:
0035 //
0036 // 15.03.17  V. Grichine based on G4Monopole
0037 //
0038 // Modified:
0039 //
0040 
0041 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0042 
0043 #include "G4LDMPhoton.hh"
0044 
0045 #include "G4DecayTable.hh"
0046 #include "G4ParticleTable.hh"
0047 #include "G4PhaseSpaceDecayChannel.hh"
0048 #include "G4PhysicalConstants.hh"
0049 #include "G4SystemOfUnits.hh"
0050 #include "G4VDecayChannel.hh"
0051 
0052 G4LDMPhoton* G4LDMPhoton::theLDMPhoton = nullptr;
0053 
0054 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0055 
0056 G4LDMPhoton::G4LDMPhoton(const G4String& aName, G4double mass, G4double width, G4double charge,
0057                          G4int iSpin, G4int iParity, G4int iConjugation, G4int iIsospin,
0058                          G4int iIsospin3, G4int gParity, const G4String& pType, G4int lepton,
0059                          G4int baryon, G4int encoding, G4bool stable, G4double lifetime,
0060                          G4DecayTable* decaytable)
0061   : G4ParticleDefinition(aName, mass, width, charge, iSpin, iParity, iConjugation, iIsospin,
0062                          iIsospin3, gParity, pType, lepton, baryon, encoding, stable, lifetime,
0063                          decaytable)
0064 {}
0065 
0066 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0067 
0068 G4LDMPhoton::~G4LDMPhoton() {}
0069 
0070 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0071 //
0072 //    Arguments for constructor are as follows
0073 //               name             mass          width         charge
0074 //             2*spin           parity  C-conjugation
0075 //          2*Isospin       2*Isospin3       G-parity
0076 //               type    lepton number  baryon number   PDG encoding
0077 //             stable         lifetime    decay table
0078 //
0079 //
0080 
0081 G4LDMPhoton* G4LDMPhoton::LDMPhotonDefinition(G4double mass)
0082 {
0083   if (!theLDMPhoton) {
0084     theLDMPhoton = new G4LDMPhoton("ldmphoton", mass, 5.317e-14 * MeV, 0, 2, -1, -1, 0, 0, 0,
0085                                    "boson", 0, 0, 50, true, 12.380 * ns, NULL);
0086 
0087     // create Decay Table
0088     G4DecayTable* table = new G4DecayTable();
0089 
0090     // create decay channels
0091     G4VDecayChannel** mode = new G4VDecayChannel*[3];
0092     //
0093     mode[0] = new G4PhaseSpaceDecayChannel("ldmphoton", 0.999, 2, "ldmhi", "ldmhibar");
0094     //
0095     mode[1] = new G4PhaseSpaceDecayChannel("ldmphoton", 0.0005, 2, "mu+", "mu-");
0096     //
0097     mode[2] = new G4PhaseSpaceDecayChannel("ldmphoton", 0.0005, 3, "pi+", "pi-");
0098 
0099     for (G4int index = 0; index < 3; index++)
0100       table->Insert(mode[index]);
0101 
0102     delete[] mode;
0103 
0104     theLDMPhoton->SetDecayTable(table);
0105 
0106     G4cout << "LDMPhoton is created: m(GeV)= " << theLDMPhoton->GetPDGMass() / GeV << G4endl;
0107   }
0108   return theLDMPhoton;
0109 }
0110 
0111 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0112 
0113 G4LDMPhoton* G4LDMPhoton::LDMPhoton()
0114 {
0115   return theLDMPhoton;
0116 }
0117 
0118 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......