source: trunk/examples/advanced/gammaray_telescope/src/GammaRayTelMuonPhysics.cc@ 1036

Last change on this file since 1036 was 807, checked in by garnier, 17 years ago

update

File size: 3.9 KB
RevLine 
[807]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//
27// $Id: GammaRayTelMuonPhysics.cc,v 1.4 2006/06/29 15:56:50 gunter Exp $
28// GEANT4 tag $Name: $
29//
30//
31
32#include "GammaRayTelMuonPhysics.hh"
33
34#include "globals.hh"
35#include "G4ios.hh"
36#include <iomanip>
37
38
39GammaRayTelMuonPhysics::GammaRayTelMuonPhysics(const G4String& name)
40 : G4VPhysicsConstructor(name)
41{
42}
43
44GammaRayTelMuonPhysics::~GammaRayTelMuonPhysics()
45{
46}
47
48void GammaRayTelMuonPhysics::ConstructParticle()
49{
50
51}
52
53
54#include "G4ProcessManager.hh"
55
56void GammaRayTelMuonPhysics::ConstructProcess()
57{
58 G4ProcessManager * pManager = 0;
59
60 // Muon Plus Physics
61 pManager = G4MuonPlus::MuonPlus()->GetProcessManager();
62 // add processes
63 pManager->AddProcess(&fMuPlusIonisation, ordInActive,2, 2);
64
65 pManager->AddDiscreteProcess(&fMuPlusBremsstrahlung);
66
67 pManager->AddDiscreteProcess(&fMuPlusPairProduction);
68
69 pManager->AddProcess(&fMuPlusMultipleScattering);
70 pManager->SetProcessOrdering(&fMuPlusMultipleScattering, idxAlongStep, 1);
71 pManager->SetProcessOrdering(&fMuPlusMultipleScattering, idxPostStep, 1);
72
73 // Muon Minus Physics
74 pManager = G4MuonMinus::MuonMinus()->GetProcessManager();
75 // add processes
76 pManager->AddProcess(&fMuMinusIonisation, ordInActive,2, 2);
77
78 pManager->AddDiscreteProcess(&fMuMinusBremsstrahlung);
79
80 pManager->AddDiscreteProcess(&fMuMinusPairProduction);
81
82 pManager->AddProcess(&fMuMinusMultipleScattering);
83 pManager->SetProcessOrdering(&fMuMinusMultipleScattering, idxAlongStep, 1);
84 pManager->SetProcessOrdering(&fMuMinusMultipleScattering, idxPostStep, 1);
85 pManager->AddRestProcess(&fMuMinusCaptureAtRest);
86
87 // Tau Plus Physics
88 pManager = G4TauPlus::TauPlus()->GetProcessManager();
89 // add processes
90 pManager->AddProcess(&fTauPlusIonisation, ordInActive,2, 2);
91
92 pManager->AddProcess(&fTauPlusMultipleScattering);
93 pManager->SetProcessOrdering(&fTauPlusMultipleScattering, idxAlongStep, 1);
94 pManager->SetProcessOrdering(&fTauPlusMultipleScattering, idxPostStep, 1);
95
96 // Tau Minus Physics
97 pManager = G4TauMinus::TauMinus()->GetProcessManager();
98 // add processes
99 pManager->AddProcess(&fTauMinusIonisation, ordInActive,2, 2);
100
101 pManager->AddProcess(&fTauMinusMultipleScattering);
102 pManager->SetProcessOrdering(&fTauMinusMultipleScattering, idxAlongStep, 1);
103 pManager->SetProcessOrdering(&fTauMinusMultipleScattering, idxPostStep, 1);
104
105}
106
107
108
Note: See TracBrowser for help on using the repository browser.