Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QNeutronHPBuilder.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: G4QNeutronHPBuilder
31//
32// Author: April 2012 M. Kosov
33//
34// Modified:
35//
36//----------------------------------------------------------------------------
37// Short description: for use in CHIPS_HP physics list (mix Q w/ HP at 20 MeV)
38//----------------------------------------------------------------------------
39//
41#include "G4SystemOfUnits.hh"
42
44 theNeutrons(0)
45 , theNeutronFission(0)
46 , theNeutronCapture(0)
47 , theCHIPSNGamma(0)
48 , theHPNeutron(0)
49 , wasActivated(false)
50{
51 theNeutronInelastic = new G4NeutronInelasticProcess;
52 theCHIPSInelastic = new G4QInelastic;
54 const G4String& INprocessName = "MixedHPQNeutronInelasticProcess";
55 theInProcessMixer= new G4QDiscProcessMixer(INprocessName, proj);
56 const G4String& NGprocessName = "MixedHPQNeutronGammaProcess";
57 theNgProcessMixer= new G4QDiscProcessMixer(NGprocessName, proj);
58 const G4String& FIprocessName = "MixedHPQNeutronFissionProcess";
59 theFiProcessMixer= new G4QDiscProcessMixer(FIprocessName, proj);
60}
61
63{
64 delete theCHIPSInelastic;
65 delete theCHIPSNGamma;
66 delete theNeutronInelastic;
67 delete theHPNeutron;
68 delete theInProcessMixer;
69 delete theNgProcessMixer;
70 delete theFiProcessMixer;
71}
72
74{
75 wasActivated = true;
76 // The model definition for neutrons (needed for HP implementation)
77 theNeutrons = new G4NeutronBuilder;
78 theNeutrons->RegisterMe( theHPNeutron = new G4NeutronHPBuilder );
79 // End of the model definition
80 std::vector<G4VNeutronBuilder *>::iterator i;
81 for(i = theModelCollections.begin(); i != theModelCollections.end(); i++)
82 {
83 (*i)->Build(theNeutronInelastic);
84 (*i)->Build(theNeutronCapture);
85 (*i)->Build(theNeutronFission);
86 }
88
89 theInProcessMixer->AddDiscreteProcess(theCHIPSInelastic, 1.E8*megaelectronvolt);
90 theInProcessMixer->AddDiscreteProcess(theNeutronInelastic, 19.9*megaelectronvolt);
91
92 theNgProcessMixer->AddDiscreteProcess(theCHIPSNGamma, 1.E8*megaelectronvolt);
93 theNgProcessMixer->AddDiscreteProcess(theNeutronCapture, 19.9*megaelectronvolt);
94
95 //theFiProcessMixer->AddDiscreteProcess(theCHIPSFission, 1.E8*megaelectronvolt);
96 //theFiProcessMixer->AddDiscreteProcess(theNeutronFission, 19.9*megaelectronvolt);
97
98 theProcMan->AddDiscreteProcess(theInProcessMixer); // Mix CHIPS+HP for inelastic
99 theProcMan->AddDiscreteProcess(theNgProcessMixer); // Mix CHIPS+HP for (n,gamma)
100 theProcMan->AddDiscreteProcess(theNeutronFission); // Only HP for fission
101 //theProcMan->AddDiscreteProcess(theFiProcessMixer); // Mix CHIPS+HP for fission
102}
103// 2009 by M. Kosov
void RegisterMe(G4VNeutronBuilder *aB)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
void AddDiscreteProcess(G4VDiscreteProcess *DP, G4double MaxE)