IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 3f199db9 authored by Felix Riehn's avatar Felix Riehn Committed by ralfulrich
Browse files

conex

parent 6fbd39e4
No related branches found
No related tags found
No related merge requests found
...@@ -35,8 +35,7 @@ namespace corsika { ...@@ -35,8 +35,7 @@ namespace corsika {
make_translation(c8cs, translation.getComponents(c8cs)); make_translation(c8cs, translation.getComponents(c8cs));
auto const transformCS = make_rotationToZ(intermediateCS, translation); auto const transformCS = make_rotationToZ(intermediateCS, translation);
std::cout << "translation C8/CONEX obs: " << translation.getComponents() CORSIKA_LOG_DEBUG("translation C8/CONEX obs: ", translation.getComponents());
<< std::endl;
/* /*
auto const transform = CoordinateSystem::getTransformation( auto const transform = CoordinateSystem::getTransformation(
...@@ -63,27 +62,25 @@ namespace corsika { ...@@ -63,27 +62,25 @@ namespace corsika {
})} })}
, y_sf_{showerAxis_.getDirection().cross(x_sf_)} { , y_sf_{showerAxis_.getDirection().cross(x_sf_)} {
std::cout << "x_sf (conexObservationCS): " << x_sf_.getComponents(conexObservationCS_) CORSIKA_LOG_DEBUG("x_sf (conexObservationCS): {}",
<< std::endl; x_sf_.getComponents(conexObservationCS_));
std::cout << "x_sf (C8): " << x_sf_.getComponents(center.getCoordinateSystem()) CORSIKA_LOG_DEBUG("x_sf (C8): {}", x_sf_.getComponents(center.getCoordinateSystem()));
<< std::endl;
CORSIKA_LOG_DEBUG("y_sf (conexObservationCS): {}",
y_sf_.getComponents(conexObservationCS_));
std::cout << "y_sf (conexObservationCS): " << y_sf_.getComponents(conexObservationCS_) CORSIKA_LOG_DEBUG("y_sf (C8): {}", y_sf_.getComponents(center.getCoordinateSystem()));
<< std::endl;
std::cout << "y_sf (C8): " << y_sf_.getComponents(center.getCoordinateSystem())
<< std::endl;
std::cout << "showerAxisDirection (conexObservationCS): " CORSIKA_LOG_DEBUG("showerAxisDirection (conexObservationCS): {}",
<< showerAxis_.getDirection().getComponents(conexObservationCS_) showerAxis_.getDirection().getComponents(conexObservationCS_));
<< std::endl; CORSIKA_LOG_DEBUG(
std::cout << "showerAxisDirection (C8): " "showerAxisDirection (C8): {}",
<< showerAxis_.getDirection().getComponents(center.getCoordinateSystem()) showerAxis_.getDirection().getComponents(center.getCoordinateSystem()));
<< std::endl;
std::cout << "showerCore (conexObservationCS): " CORSIKA_LOG_DEBUG("showerCore (conexObservationCS): {}",
<< showerCore_.getCoordinates(conexObservationCS_) << std::endl; showerCore_.getCoordinates(conexObservationCS_));
std::cout << "showerCore (C8): " CORSIKA_LOG_DEBUG("showerCore (C8): {}",
<< showerCore_.getCoordinates(center.getCoordinateSystem()) << std::endl; showerCore_.getCoordinates(center.getCoordinateSystem()));
int randomSeeds[3] = {1234, 0, 0}; // will be overwritten later?? int randomSeeds[3] = {1234, 0, 0}; // will be overwritten later??
int heModel = eSibyll23; int heModel = eSibyll23;
...@@ -114,7 +111,10 @@ namespace corsika { ...@@ -114,7 +111,10 @@ namespace corsika {
showerAxisConex.getX().magnitude()) * showerAxisConex.getX().magnitude()) *
180 / M_PI; 180 / M_PI;
std::cout << "theta (deg) = " << theta << "; phi (deg) = " << phi << std::endl; CORSIKA_LOG_DEBUG(
"theta (deg) = {}"
"; phi (deg) = {}",
theta, phi);
int ipart = static_cast<int>(primaryPDG); int ipart = static_cast<int>(primaryPDG);
auto rng = RNGManager::getInstance().getRandomStream("cascade"); auto rng = RNGManager::getInstance().getRandomStream("cascade");
...@@ -152,8 +152,8 @@ namespace corsika { ...@@ -152,8 +152,8 @@ namespace corsika {
// EM particle // EM particle
auto const egs_pid = it->second; auto const egs_pid = it->second;
std::cout << "position conexObs: " << position.getCoordinates(conexObservationCS_) CORSIKA_LOG_DEBUG("position conexObs: {}",
<< std::endl; position.getCoordinates(conexObservationCS_));
auto const coords = position.getCoordinates(conexObservationCS_) / 1_m; auto const coords = position.getCoordinates(conexObservationCS_) / 1_m;
double const x = coords[0].magnitude(); double const x = coords[0].magnitude();
...@@ -187,24 +187,23 @@ namespace corsika { ...@@ -187,24 +187,23 @@ namespace corsika {
double const E = energy / 1_GeV; double const E = energy / 1_GeV;
double const m = mass / 1_GeV; double const m = mass / 1_GeV;
std::cout << "CONEXhybrid: removing " << egs_pid << " " << std::scientific << energy CORSIKA_LOG_DEBUG("CONEXhybrid: removing {} {:5e} GeV", egs_pid, energy);
<< " GeV" << std::endl;
CORSIKA_LOG_DEBUG("#### parameters to cegs4_() ####");
std::cout << "#### parameters to cegs4_() ####" << std::endl; CORSIKA_LOG_DEBUG("egs_pid = {}", egs_pid);
std::cout << "egs_pid = " << egs_pid << std::endl; CORSIKA_LOG_DEBUG("E = {}", E);
std::cout << "E = " << E << std::endl; CORSIKA_LOG_DEBUG("m = {}", m);
std::cout << "m = " << m << std::endl; CORSIKA_LOG_DEBUG("x = {}", x);
std::cout << "x = " << x << std::endl; CORSIKA_LOG_DEBUG("y = {}", y);
std::cout << "y = " << y << std::endl; CORSIKA_LOG_DEBUG("altitude = {}", altitude);
std::cout << "altitude = " << altitude << std::endl; CORSIKA_LOG_DEBUG("slantDistance = {}", slantDistance);
std::cout << "slantDistance = " << slantDistance << std::endl; CORSIKA_LOG_DEBUG("lateralX = {}", lateralX);
std::cout << "lateralX = " << lateralX << std::endl; CORSIKA_LOG_DEBUG("lateralY = {}", lateralY);
std::cout << "lateralY = " << lateralY << std::endl; CORSIKA_LOG_DEBUG("slantX = {}", slantX);
std::cout << "slantX = " << slantX << std::endl; CORSIKA_LOG_DEBUG("time = {}", time);
std::cout << "time = " << time << std::endl; CORSIKA_LOG_DEBUG("u = {}", u);
std::cout << "u = " << u << std::endl; CORSIKA_LOG_DEBUG("v = {}", v);
std::cout << "v = " << v << std::endl; CORSIKA_LOG_DEBUG("w = {}", w);
std::cout << "w = " << w << std::endl;
::conex::cxoptl_.dptl[10 - 1] = egs_pid; ::conex::cxoptl_.dptl[10 - 1] = egs_pid;
::conex::cxoptl_.dptl[4 - 1] = E; ::conex::cxoptl_.dptl[4 - 1] = E;
......
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