IAP GITLAB

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

fixed missing dptl(12) (generation counter) assignment

parent 6f227571
No related branches found
No related tags found
2 merge requests!240fixed missing dptl(12) (generation counter) assignment,!234WIP: Initial example of python as script language from C++
...@@ -78,6 +78,7 @@ void CONEXSourceCut::addParticle(int egs_pid, HEPEnergyType energy, ...@@ -78,6 +78,7 @@ void CONEXSourceCut::addParticle(int egs_pid, HEPEnergyType energy,
double weight = 1; double weight = 1;
int latchin = 1; // generation
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
...@@ -105,6 +106,7 @@ void CONEXSourceCut::addParticle(int egs_pid, HEPEnergyType energy, ...@@ -105,6 +106,7 @@ void CONEXSourceCut::addParticle(int egs_pid, HEPEnergyType energy,
conex::cxoptl_.dptl[8 - 1] = altitude; conex::cxoptl_.dptl[8 - 1] = altitude;
conex::cxoptl_.dptl[9 - 1] = time; conex::cxoptl_.dptl[9 - 1] = time;
conex::cxoptl_.dptl[11 - 1] = weight; conex::cxoptl_.dptl[11 - 1] = weight;
conex::cxoptl_.dptl[12 - 1] = latchin;
conex::cxoptl_.dptl[13 - 1] = slantX; conex::cxoptl_.dptl[13 - 1] = slantX;
conex::cxoptl_.dptl[14 - 1] = lateralX; conex::cxoptl_.dptl[14 - 1] = lateralX;
conex::cxoptl_.dptl[15 - 1] = lateralY; conex::cxoptl_.dptl[15 - 1] = lateralY;
......
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