IAP GITLAB

Skip to content
Snippets Groups Projects
Commit be4e28a6 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by Maximilian Reininghaus
Browse files

stand-alone executable for cross-section readout

parent 60a345b5
No related branches found
No related tags found
No related merge requests found
...@@ -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
)
/*
* (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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment