LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
MyG4BiasedBertiniNeutronBuilder.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: G4BertiniNeutronBuilder.cc 66892 2013-01-17 10:57:59Z gunter $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: MyG4BertiniNeutronBuilder
31 //
32 // Author: 2002 H.P. Wellisch
33 //
34 // Modified:
35 // 02.04.2009 V.Ivanchenko remove add cross section, string builderis reponsible
36 // 30.03.2020 D. Rivera copy based on:
37 // geant4.10.03.p03/source/physics_lists/builders/src/G4BertiniNeutronBuilder.cc
38 //
39 //----------------------------------------------------------------------------
40 //
41 
43 //#include "Geant4/G4BertiniNeutronBuilder.hh"
44 #include "Geant4/G4ParticleDefinition.hh"
45 #include "Geant4/G4ParticleTable.hh"
46 #include "Geant4/G4ProcessManager.hh"
47 #include "Geant4/G4SystemOfUnits.hh"
48 
50 {
51  theMin = 0;
52  theMax = 9.9 * GeV;
53  theXSMultiplier = 1.0; // -- no bias
54  theModel = new G4CascadeInterface;
55 }
56 
58 {
59  theMin = 0;
60  theMax = 9.9 * GeV;
61  G4cout << "(MyG4BiasedBertiniNeutronBuilder) theBertiniNeutronBuilder was passed XSMultiplier = "
62  << XSMultiplier << G4endl;
63  theXSMultiplier = XSMultiplier;
64  theModel = new G4CascadeInterface;
65 }
66 
67 void
68 MyG4BiasedBertiniNeutronBuilder::Build(G4NeutronInelasticProcess* aP)
69 {
70  theModel->SetMinEnergy(theMin);
71  theModel->SetMaxEnergy(theMax);
72  G4cout << "(MyG4BiasedBertiniNeutronBuilder) Multiplying the G4NeutronInelastic XS by : "
73  << theXSMultiplier << G4endl;
74  aP->MultiplyCrossSectionBy(theXSMultiplier);
75  aP->RegisterMe(theModel);
76 }
77 
78 void
80 {}
81 
82 void
84 {}
85 
86 void
88 {}
89 
90 // 2002 by J.P. Wellisch
void Build(G4HadronElasticProcess *aP) override