[825] | 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 | // |
---|
| 26 | // $Id: G4QEmExtraPhysics.cc,v 1.1 2007/05/23 17:38:35 vnivanch Exp $ |
---|
[988] | 27 | // GEANT4 tag $Name: geant4-09-02-ref-02 $ |
---|
[825] | 28 | // |
---|
| 29 | //--------------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // ClassName: G4QEmExtraPhysics |
---|
| 32 | // |
---|
| 33 | // Author: 23 May 2007 V. Ivanchenko |
---|
| 34 | // |
---|
| 35 | // Modified: |
---|
| 36 | // |
---|
| 37 | //---------------------------------------------------------------------------- |
---|
| 38 | // |
---|
| 39 | |
---|
| 40 | #include "G4QEmExtraPhysics.hh" |
---|
| 41 | #include "G4QCollision.hh" |
---|
| 42 | |
---|
| 43 | #include "G4ParticleDefinition.hh" |
---|
| 44 | #include "G4ProcessManager.hh" |
---|
| 45 | |
---|
| 46 | #include "G4LeptonConstructor.hh" |
---|
| 47 | #include "G4MuonMinus.hh" |
---|
| 48 | #include "G4MuonPlus.hh" |
---|
| 49 | #include "G4Electron.hh" |
---|
| 50 | #include "G4Positron.hh" |
---|
| 51 | #include "G4Gamma.hh" |
---|
| 52 | |
---|
| 53 | G4QEmExtraPhysics::G4QEmExtraPhysics(G4int ver) |
---|
| 54 | : G4VPhysicsConstructor("QEmExtra"), verbose(ver), wasActivated(false) |
---|
| 55 | { |
---|
| 56 | if(verbose > 1) G4cout << "### G4QEmExtraPhysics" << G4endl; |
---|
| 57 | } |
---|
| 58 | |
---|
| 59 | G4QEmExtraPhysics::~G4QEmExtraPhysics() |
---|
| 60 | { |
---|
| 61 | delete hProcess; |
---|
| 62 | } |
---|
| 63 | |
---|
| 64 | void G4QEmExtraPhysics::ConstructParticle() |
---|
| 65 | { |
---|
| 66 | // G4cout << "G4QEmExtraPhysics::ConstructParticle" << G4endl; |
---|
| 67 | G4LeptonConstructor pLeptonConstructor; |
---|
| 68 | pLeptonConstructor.ConstructParticle(); |
---|
| 69 | } |
---|
| 70 | |
---|
| 71 | void G4QEmExtraPhysics::ConstructProcess() |
---|
| 72 | { |
---|
| 73 | if(verbose > 1) G4cout << "### G4QEmExtraPhysics::ConstructProcess " |
---|
| 74 | << wasActivated << G4endl; |
---|
| 75 | if(wasActivated) return; |
---|
| 76 | wasActivated = true; |
---|
| 77 | |
---|
| 78 | hProcess = new G4QCollision(); |
---|
| 79 | |
---|
| 80 | G4ParticleDefinition* particle = G4Gamma::Gamma(); |
---|
| 81 | G4ProcessManager* pmanager = particle->GetProcessManager(); |
---|
| 82 | pmanager->AddDiscreteProcess(hProcess); |
---|
| 83 | |
---|
| 84 | particle = G4Electron::Electron(); |
---|
| 85 | pmanager = particle->GetProcessManager(); |
---|
| 86 | pmanager->AddDiscreteProcess(hProcess); |
---|
| 87 | |
---|
| 88 | particle = G4Positron::Positron(); |
---|
| 89 | pmanager = particle->GetProcessManager(); |
---|
| 90 | pmanager->AddDiscreteProcess(hProcess); |
---|
| 91 | |
---|
| 92 | particle = G4MuonMinus::MuonMinus(); |
---|
| 93 | pmanager = particle->GetProcessManager(); |
---|
| 94 | pmanager->AddDiscreteProcess(hProcess); |
---|
| 95 | |
---|
| 96 | particle = G4MuonPlus::MuonPlus(); |
---|
| 97 | pmanager = particle->GetProcessManager(); |
---|
| 98 | pmanager->AddDiscreteProcess(hProcess); |
---|
| 99 | |
---|
| 100 | } |
---|
| 101 | |
---|
| 102 | |
---|