IAP GITLAB

Skip to content
Snippets Groups Projects
Commit fc91d2a2 authored by Felix Riehn's avatar Felix Riehn
Browse files

added number of wounded nucleons to sibyll interface

parent f4bf3233
No related branches found
No related tags found
1 merge request!42Resolve "missing rotation between corsika stack and sibyll stack"
Pipeline #115 failed
...@@ -16,10 +16,11 @@ namespace corsika::process::sibyll { ...@@ -16,10 +16,11 @@ namespace corsika::process::sibyll {
class Interaction : public corsika::process::InteractionProcess<Interaction> { class Interaction : public corsika::process::InteractionProcess<Interaction> {
mutable int fCount = 0; mutable int fCount = 0;
mutable int fNucCount = 0;
public: public:
Interaction() {} Interaction() {}
~Interaction() { std::cout << "Sibyll::Interaction n=" << fCount << std::endl; } ~Interaction() { std::cout << "Sibyll::Interaction n=" << fCount << " Nnuc=" << fNucCount <<std::endl;}
void Init() { void Init() {
...@@ -227,7 +228,8 @@ namespace corsika::process::sibyll { ...@@ -227,7 +228,8 @@ namespace corsika::process::sibyll {
// print final state // print final state
int print_unit = 6; int print_unit = 6;
sib_list_(print_unit); sib_list_(print_unit);
fNucCount += get_nwounded()-1;
// delete current particle // delete current particle
p.Delete(); p.Delete();
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
#include <corsika/random/RNGManager.h> #include <corsika/random/RNGManager.h>
#include <random> #include <random>
int get_nwounded() { return s_chist_.nwd; }
double s_rndm_(int&) { double s_rndm_(int&) {
static corsika::random::RNG& rng = static corsika::random::RNG& rng =
corsika::random::RNGManager::GetInstance().GetRandomStream("s_rndm"); corsika::random::RNGManager::GetInstance().GetRandomStream("s_rndm");
......
...@@ -19,6 +19,12 @@ extern struct { ...@@ -19,6 +19,12 @@ extern struct {
int np; int np;
} s_plist_; } s_plist_;
// additional information about interactions.
// number of wounded nucleons, number of hard and soft scatterings etc.
extern struct {
int nnsof[20], nnjet[20], jdif[20], nwd, njet, nsof;
}s_chist_;
extern struct { extern struct {
double cbr[223 + 16 + 12 + 8]; double cbr[223 + 16 + 12 + 8];
int kdec[1338 + 6 * (16 + 12 + 8)]; int kdec[1338 + 6 * (16 + 12 + 8)];
...@@ -85,6 +91,8 @@ void sib_sigma_hp_(const int&, const double&, double&, double&, double&, double* ...@@ -85,6 +91,8 @@ void sib_sigma_hp_(const int&, const double&, double&, double&, double&, double*
double s_rndm_(int&); double s_rndm_(int&);
int get_nwounded();
// phojet random generator setup // phojet random generator setup
void pho_rndin_(int&, int&, int&, int&); void pho_rndin_(int&, int&, int&, int&);
} }
......
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