Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
np
nptool
Commits
cca502be
Commit
cca502be
authored
8 years ago
by
Morfouace
Browse files
Options
Downloads
Patches
Plain Diff
* Modifyins NPIonIonInelasticPhysics
parent
81547e52
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NPSimulation/Core/NPIonIonInelasticPhysic.cc
+9
-6
9 additions, 6 deletions
NPSimulation/Core/NPIonIonInelasticPhysic.cc
Projects/Lassa/RunToTreat.txt
+1
-1
1 addition, 1 deletion
Projects/Lassa/RunToTreat.txt
with
10 additions
and
7 deletions
NPSimulation/Core/NPIonIonInelasticPhysic.cc
+
9
−
6
View file @
cca502be
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
#include
"G4IonsShenCrossSection.hh"
#include
"G4IonsShenCrossSection.hh"
#include
"G4BGGNucleonElasticXS.hh"
#include
"G4BGGNucleonElasticXS.hh"
#include
"G4ComponentGGHadronNucleusXsc.hh"
#include
"G4ComponentGGHadronNucleusXsc.hh"
#include
"G4CrossSectionInelastic.hh"
// Elastic
// Elastic
...
@@ -98,6 +99,8 @@ void NPIonIonInelasticPhysic::ConstructProcess()
...
@@ -98,6 +99,8 @@ void NPIonIonInelasticPhysic::ConstructProcess()
G4IonsShenCrossSection
*
ShenCrossSections
=
new
G4IonsShenCrossSection
;
G4IonsShenCrossSection
*
ShenCrossSections
=
new
G4IonsShenCrossSection
;
G4ComponentGGHadronNucleusXsc
*
GlauberGribovCrossSection
=
new
G4ComponentGGHadronNucleusXsc
;
G4ComponentGGHadronNucleusXsc
*
GlauberGribovCrossSection
=
new
G4ComponentGGHadronNucleusXsc
;
G4CrossSectionInelastic
*
GlauberGribovDataSet
=
new
G4CrossSectionInelastic
(
GlauberGribovCrossSection
);
// ******************
// ******************
// **** Elastic ****
// **** Elastic ****
// ******************
// ******************
...
@@ -131,7 +134,7 @@ void NPIonIonInelasticPhysic::ConstructProcess()
...
@@ -131,7 +134,7 @@ void NPIonIonInelasticPhysic::ConstructProcess()
protonInelasticProcess
->
AddDataSet
(
ShenCrossSections
);
protonInelasticProcess
->
AddDataSet
(
ShenCrossSections
);
protonInelasticProcess
->
AddDataSet
(
TripatiCrossSections
);
protonInelasticProcess
->
AddDataSet
(
TripatiCrossSections
);
protonInelasticProcess
->
AddDataSet
(
TripatiLightCrossSections
);
protonInelasticProcess
->
AddDataSet
(
TripatiLightCrossSections
);
//protonInelasticProcess -> AddDataSet(GlauberGribov
CrossSection
);
//protonInelasticProcess -> AddDataSet(GlauberGribov
DataSet
);
protonInelasticProcess
->
RegisterMe
(
ligthBinary
);
protonInelasticProcess
->
RegisterMe
(
ligthBinary
);
//protonInelasticProcess -> RegisterMe(JQMDmodel);
//protonInelasticProcess -> RegisterMe(JQMDmodel);
...
@@ -141,16 +144,16 @@ void NPIonIonInelasticPhysic::ConstructProcess()
...
@@ -141,16 +144,16 @@ void NPIonIonInelasticPhysic::ConstructProcess()
processManager
=
particle
->
GetProcessManager
();
processManager
=
particle
->
GetProcessManager
();
processManager
->
AddDiscreteProcess
(
protonInelasticProcess
);
processManager
->
AddDiscreteProcess
(
protonInelasticProcess
);
double
energy
;
double
energy
=
0
;
for
(
int
i
=
0
;
i
<
1
0
;
i
++
){
for
(
int
i
=
0
;
i
<
5
0
;
i
++
){
energy
=
10
*
i
;
energy
+
=
5
;
G4DynamicParticle
*
dp
=
new
G4DynamicParticle
(
particle
,
G4ThreeVector
(
0
,
0
,
1
),
energy
*
MeV
);
G4DynamicParticle
*
dp
=
new
G4DynamicParticle
(
particle
,
G4ThreeVector
(
0
,
0
,
1
),
energy
*
MeV
);
G4Element
*
element
=
new
G4Element
(
"Tin"
,
"Sn"
,
50
,
120
*
g
/
mole
);
G4Element
*
element
=
new
G4Element
(
"Tin"
,
"Sn"
,
50
,
120
*
g
/
mole
);
//G4Element* element = new G4Element("Cupper","Cu",29,59*g/mole);
//G4Element* element = new G4Element("Cupper","Cu",29,59*g/mole);
cout
<<
"Glauber | Energy = "
<<
energy
<<
" | Cross Section = "
<<
GlauberGribovCrossSection
->
GetInelasticGlauberGribov
(
dp
,
50
,
70
)
/
barn
<<
" barn"
<<
endl
;
cout
<<
"Glauber | Energy = "
<<
energy
<<
" | Cross Section = "
<<
GlauberGribovCrossSection
->
GetInelasticGlauberGribov
(
dp
,
50
,
70
)
/
barn
<<
" barn"
<<
endl
;
//
cout << GlauberGribovCrossSection->Get
I
nelastic
GlauberGribovXsc()/barn
<< endl;
cout
<<
GlauberGribovCrossSection
->
Get
HNi
nelastic
Xsc
(
dp
,
element
)
<<
endl
;
cout
<<
"Tripathi | Energy = "
<<
energy
<<
" | Cross Section = "
<<
TripatiLightCrossSections
->
GetCrossSection
(
dp
,
element
,
0
)
/
barn
<<
" barn"
<<
endl
;
cout
<<
"Tripathi | Energy = "
<<
energy
<<
" | Cross Section = "
<<
TripatiLightCrossSections
->
GetCrossSection
(
dp
,
element
,
0
)
/
barn
<<
" barn"
<<
endl
;
//
cout << "Shen | Energy = " << energy << " | Cross Section = " << ShenCrossSections->GetCrossSection(dp,element,0)/barn << " barn" << endl;
cout
<<
"Shen | Energy = "
<<
energy
<<
" | Cross Section = "
<<
ShenCrossSections
->
GetCrossSection
(
dp
,
element
,
0
)
/
barn
<<
" barn"
<<
endl
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Projects/Lassa/RunToTreat.txt
+
1
−
1
View file @
cca502be
TTreeName
TTreeName
SimulatedTree
SimulatedTree
RootFileName
RootFileName
../../Outputs/Simulation/
e09042_protonpbuu_nucl
.root
../../Outputs/Simulation/
one_lassa_proton_tripathi
.root
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment