IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 65ed7e5f authored by ralfulrich's avatar ralfulrich
Browse files

remove comments and added pragmas

parent 32d16e46
No related branches found
No related tags found
2 merge requests!234WIP: Initial example of python as script language from C++,!232Conex EM
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
*/ */
#pragma once #pragma once
#include <corsika/environment/Environment.h> #include <corsika/environment/Environment.h>
#include <corsika/geometry/Point.h> #include <corsika/geometry/Point.h>
#include <corsika/geometry/Vector.h> #include <corsika/geometry/Vector.h>
......
...@@ -47,7 +47,6 @@ install ( ...@@ -47,7 +47,6 @@ install (
TARGETS ProcessCONEXSourceCut TARGETS ProcessCONEXSourceCut
LIBRARY DESTINATION lib LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib ARCHIVE DESTINATION lib
# PUBLIC_HEADER DESTINATION include/${MODEL_NAMESPACE}
) )
# -------------------- # --------------------
......
...@@ -78,20 +78,13 @@ void CONEXSourceCut::addParticle(int egs_pid, HEPEnergyType energy, ...@@ -78,20 +78,13 @@ void CONEXSourceCut::addParticle(int egs_pid, HEPEnergyType energy,
double v = direction.dot(x_sf_).magnitude(); double v = direction.dot(x_sf_).magnitude();
double w = direction.dot(showerAxis_.GetDirection()).magnitude(); double w = direction.dot(showerAxis_.GetDirection()).magnitude();
// int iri = 2; // EGS medium air
double weight = 1; double weight = 1;
// int latchin = 1; // generation, we don't have the actual value...
double E = energy / 1_GeV; double E = energy / 1_GeV;
std::cout << "CONEXSourceCut: removing " << egs_pid << " " << std::scientific << energy std::cout << "CONEXSourceCut: removing " << egs_pid << " " << std::scientific << energy
<< std::endl; << std::endl;
// conex_.Shower(egs_pid, E, x, y, altitude, slantDistance, lateralX, lateralY,
// slantX,
// time, u, v, w, iri, weight, latchin);
std::cout << "#### parameters to show_() ####" << std::endl; std::cout << "#### parameters to show_() ####" << std::endl;
std::cout << "egs_pid = " << egs_pid << std::endl; std::cout << "egs_pid = " << egs_pid << std::endl;
std::cout << "E = " << E << std::endl; std::cout << "E = " << E << std::endl;
...@@ -132,8 +125,6 @@ void CONEXSourceCut::SolveCE() { ...@@ -132,8 +125,6 @@ void CONEXSourceCut::SolveCE() {
conex::conexcascade_(); conex::conexcascade_();
// RU: this here is from cxroot:
int nX = conex::get_number_of_depth_bins_(); // make sure this works! int nX = conex::get_number_of_depth_bins_(); // make sure this works!
int icut = 1; int icut = 1;
...@@ -172,8 +163,6 @@ void CONEXSourceCut::SolveCE() { ...@@ -172,8 +163,6 @@ void CONEXSourceCut::SolveCE() {
} }
} }
// RU: move all the non-C8 code from the following c++ function into a new file. Here we
// only want to have a single function call to CONEX left.
CONEXSourceCut::CONEXSourceCut(geometry::Point center, CONEXSourceCut::CONEXSourceCut(geometry::Point center,
environment::ShowerAxis const& showerAxis, environment::ShowerAxis const& showerAxis,
......
...@@ -8,11 +8,7 @@ ...@@ -8,11 +8,7 @@
* the license. * the license.
*/ */
#ifndef _corsika_process_particle_cut_CONEXSourceCut_h_ #pragma once
#define _corsika_process_particle_cut_CONEXSourceCut_h_
//#define __CORSIKA8__ // must define this conex-internal flag
//#include <ConexDynamicInterface.h>
#include <corsika/environment/ShowerAxis.h> #include <corsika/environment/ShowerAxis.h>
#include <corsika/geometry/Point.h> #include <corsika/geometry/Point.h>
...@@ -53,7 +49,6 @@ namespace corsika::process { ...@@ -53,7 +49,6 @@ namespace corsika::process {
auto const& GetObserverCS() const { return conexObservationCS_; } auto const& GetObserverCS() const { return conexObservationCS_; }
private: private:
// ConexDynamicInterface conex_;
//! CONEX e.m. particle codes //! CONEX e.m. particle codes
static std::array<std::pair<particles::Code, int>, 3> constexpr egs_em_codes_{ static std::array<std::pair<particles::Code, int>, 3> constexpr egs_em_codes_{
......
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