source: trunk/examples/extended/optical/LXe/src/LXeMuonPhysics.cc @ 893

Last change on this file since 893 was 807, checked in by garnier, 16 years ago

update

File size: 3.5 KB
Line 
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#include "LXeMuonPhysics.hh"
27
28#include "globals.hh"
29#include "G4ios.hh"
30#include <iomanip>  
31
32
33LXeMuonPhysics::LXeMuonPhysics(const G4String& name)
34                   :  G4VPhysicsConstructor(name)
35{
36}
37
38LXeMuonPhysics::~LXeMuonPhysics()
39{
40}
41
42#include "G4ParticleDefinition.hh"
43#include "G4ParticleTable.hh"
44
45#include "G4MuonPlus.hh"
46#include "G4MuonMinus.hh"
47#include "G4NeutrinoMu.hh"
48#include "G4AntiNeutrinoMu.hh"
49
50void LXeMuonPhysics::ConstructParticle()
51{
52  // Mu
53  G4MuonPlus::MuonPlusDefinition();
54  G4MuonMinus::MuonMinusDefinition();
55  G4NeutrinoMu::NeutrinoMuDefinition();
56  G4AntiNeutrinoMu::AntiNeutrinoMuDefinition();
57}
58
59
60#include "G4ProcessManager.hh"
61
62void LXeMuonPhysics::ConstructProcess()
63{
64  fMuPlusIonisation = new G4MuIonisation();
65  fMuPlusMultipleScattering = new G4MultipleScattering();
66  fMuPlusBremsstrahlung=new G4MuBremsstrahlung();
67  fMuPlusPairProduction= new G4MuPairProduction();
68
69  fMuMinusIonisation = new G4MuIonisation();
70  fMuMinusMultipleScattering = new G4MultipleScattering;
71  fMuMinusBremsstrahlung = new G4MuBremsstrahlung();
72  fMuMinusPairProduction = new G4MuPairProduction();
73
74  fMuMinusCaptureAtRest = new G4MuonMinusCaptureAtRest();
75
76  G4ProcessManager * pManager = 0;
77
78  // Muon Plus Physics
79  pManager = G4MuonPlus::MuonPlus()->GetProcessManager();
80   
81  pManager->AddProcess(fMuPlusMultipleScattering,-1,  1, 1);
82  pManager->AddProcess(fMuPlusIonisation,        -1,  2, 2);
83  pManager->AddProcess(fMuPlusBremsstrahlung,    -1,  3, 3);
84  pManager->AddProcess(fMuPlusPairProduction,    -1,  4, 4);
85
86  // Muon Minus Physics
87  pManager = G4MuonMinus::MuonMinus()->GetProcessManager();
88   
89  pManager->AddProcess(fMuMinusMultipleScattering,-1,  1, 1);
90  pManager->AddProcess(fMuMinusIonisation,        -1,  2, 2);
91  pManager->AddProcess(fMuMinusBremsstrahlung,    -1,  3, 3);
92  pManager->AddProcess(fMuMinusPairProduction,    -1,  4, 4);
93
94  pManager->AddRestProcess(fMuMinusCaptureAtRest);
95
96}
97
98
99
Note: See TracBrowser for help on using the repository browser.