IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue 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
Pranav Sampathkumar
corsika
Commits
be4e28a6
Commit
be4e28a6
authored
5 years ago
by
Maximilian Reininghaus
Committed by
Maximilian Reininghaus
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
stand-alone executable for cross-section readout
parent
60a345b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Processes/UrQMD/CMakeLists.txt
+6
-0
6 additions, 0 deletions
Processes/UrQMD/CMakeLists.txt
Processes/UrQMD/urqmd_xs.cc
+34
-0
34 additions, 0 deletions
Processes/UrQMD/urqmd_xs.cc
with
40 additions
and
0 deletions
Processes/UrQMD/CMakeLists.txt
+
6
−
0
View file @
be4e28a6
...
@@ -88,3 +88,9 @@ target_link_libraries (
...
@@ -88,3 +88,9 @@ target_link_libraries (
ProcessUrQMD
ProcessUrQMD
CORSIKAtesting
CORSIKAtesting
)
)
add_executable
(
urqmd_xs urqmd_xs.cc
)
target_link_libraries
(
urqmd_xs
ProcessUrQMD
CORSIKAparticles
)
This diff is collapsed.
Click to expand it.
Processes/UrQMD/urqmd_xs.cc
0 → 100644
+
34
−
0
View file @
be4e28a6
/*
* (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu
*
* See file AUTHORS for a list of contributors.
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
* the license.
*/
#include
<corsika/process/urqmd/UrQMD.h>
#include
<corsika/random/RNGManager.h>
#include
<corsika/units/PhysicalUnits.h>
#include
<cstdlib>
#include
<iostream>
using
namespace
corsika
;
using
namespace
corsika
::
units
::
si
;
int
main
()
{
random
::
RNGManager
::
GetInstance
().
RegisterRandomStream
(
"UrQMD"
);
corsika
::
process
::
UrQMD
::
UrQMD
urqmd
;
for
(
auto
Elab
=
100
_MeV
;
Elab
<=
10
_TeV
;
Elab
*=
1.02
)
{
std
::
cout
<<
Elab
/
1
_GeV
<<
'\t'
<<
urqmd
.
GetCrossSection
(
particles
::
Code
::
Proton
,
particles
::
Code
::
Proton
,
Elab
)
/
1
_mb
<<
std
::
endl
;
}
return
EXIT_SUCCESS
;
}
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