Geant4_10
G4MuonMinusCapture.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: G4MuonMinusCapture.cc 74377 2013-10-04 08:29:54Z gcosmo $
27 //
28 //---------------------------------------------------------------------
29 //
30 // GEANT4 Class
31 //
32 // File name: G4MuonMinusCapture
33 //
34 // Author V.Ivanchenko 25 April 2012
35 //
36 //
37 // Class Description:
38 //
39 // Base process class for stopping of mu-
40 //
41 // Modifications:
42 //
43 // 20121003 K. Genser -- Changed the constructor argument type
44 // Used two argument base constructor
45 // 20121016 K. Genser -- Reverting to use one argument base c'tor
46 // 20121002 K. Genser -- Replaced G4MuMinusCapturePrecompound with
47 // G4CascadeInterface (Bertini)
48 //------------------------------------------------------------------------
49 
50 #include "G4MuonMinusCapture.hh"
51 #include "G4HadronicProcessType.hh"
52 #include "G4MuonMinusBoundDecay.hh"
53 #include "G4HadronicInteraction.hh"
54 #include "G4MuonMinus.hh"
55 #include "G4CascadeInterface.hh"
56 
57 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
58 
60  : G4HadronStoppingProcess ("muMinusCaptureAtRest")
61 {
62  SetBoundDecay(new G4MuonMinusBoundDecay()); // Owned by InteractionRegistry
63  if (!hiptr) {
64  hiptr = new G4CascadeInterface(); // Owned by InteractionRegistry
65  }
66  RegisterMe(hiptr);
67 }
68 
69 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
70 
72 {}
73 
74 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
75 
77 {
78  return (&p == G4MuonMinus::MuonMinus());
79 }
80 
81 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
82 
84 {
85  outFile << "Stopping of mu- using default element selector, EM cascade"
86  << " sampling and bound decay sampling.\n"
87  << "Bertini model is used for nuclear capture\n";
88 }
89 
90 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
void SetBoundDecay(G4HadronicInteraction *ptr)
std::ofstream outFile
Definition: GammaRayTel.cc:68
const char * p
Definition: xmltok.h:285
G4MuonMinusCapture(G4HadronicInteraction *hiptr=0)
void RegisterMe(G4HadronicInteraction *a)
bool G4bool
Definition: G4Types.hh:79
G4bool IsApplicable(const G4ParticleDefinition &)
void ProcessDescription(std::ostream &outFile) const
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100