Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4QEmExtraPhysics.cc
Go to the documentation of this file.
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$
27//
28//---------------------------------------------------------------------------
29//
30// ClassName: G4QEmExtraPhysics
31//
32// Author: 23 May 2007 V. Ivanchenko
33//
34// Modified: 19 Nov 2009 M.Kosov: G4QInelastic instead of G4QCollision
35//
36//----------------------------------------------------------------------------
37//
38
39#include "G4QEmExtraPhysics.hh"
40#include "G4QInelastic.hh"
41
43#include "G4ProcessManager.hh"
44
46#include "G4MuonMinus.hh"
47#include "G4MuonPlus.hh"
48#include "G4Electron.hh"
49#include "G4Positron.hh"
50#include "G4Gamma.hh"
52
53
55 : G4VPhysicsConstructor("QEmExtra"), hProcess(0), verbose(ver), wasActivated(false)
56{
57 G4HadronicDeprecate("G4QEmExtraPhysics");
58 if(verbose > 1) G4cout << "### G4QEmExtraPhysics" << G4endl;
59}
60
62{
63 delete hProcess;
64}
65
67{
68// G4cout << "G4QEmExtraPhysics::ConstructParticle" << G4endl;
69 G4LeptonConstructor pLeptonConstructor;
70 pLeptonConstructor.ConstructParticle();
71}
72
74{
75 if(verbose > 1) G4cout << "### G4QEmExtraPhysics::ConstructProcess "
76 << wasActivated << G4endl;
77 if(wasActivated) return;
78 wasActivated = true;
79
80 hProcess = new G4QInelastic();
81
83 G4ProcessManager* pmanager = particle->GetProcessManager();
84 pmanager->AddDiscreteProcess(hProcess);
85
86 particle = G4Electron::Electron();
87 pmanager = particle->GetProcessManager();
88 pmanager->AddDiscreteProcess(hProcess);
89
90 particle = G4Positron::Positron();
91 pmanager = particle->GetProcessManager();
92 pmanager->AddDiscreteProcess(hProcess);
93
94 particle = G4MuonMinus::MuonMinus();
95 pmanager = particle->GetProcessManager();
96 pmanager->AddDiscreteProcess(hProcess);
97
98 particle = G4MuonPlus::MuonPlus();
99 pmanager = particle->GetProcessManager();
100 pmanager->AddDiscreteProcess(hProcess);
101
102}
103
104
#define G4HadronicDeprecate(name)
int G4int
Definition: G4Types.hh:66
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
static G4Electron * Electron()
Definition: G4Electron.cc:94
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static void ConstructParticle()
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:99
G4ProcessManager * GetProcessManager() const
static G4Positron * Positron()
Definition: G4Positron.cc:94
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
virtual void ConstructProcess()
G4QEmExtraPhysics(G4int ver=1)
virtual ~G4QEmExtraPhysics()
virtual void ConstructParticle()