Open rahmans1 opened 1 year ago
Insights:
Compared commit history of elastic generator between develop and feature-trigscint branch
Commit 1476a58 and 79127a9 are not present in feature-trigscint but present in develop.
Checked out head 79127a9 which dates back to October 2021. It still shows cutoff.
Checked out head 0a716d6 (precedes 79127a9) and still see same cutoff.
Tracking develop commit history, we see that the large merge commit which demonstrated continuous energy spectrum was ccda46f. It stops working at next merge commit fe3209d. Both from May 2021.
ccda46f:
fe3209d:
There is very little difference in the source code between the two merge commits
diff -r ccda46f/src fe3209d/src:
Only in ccda46f/src: remollGen12CElastic.cc
Only in fe3209d/src: remollGenC12.cc
diff -r ccda46f/src/remollPrimaryGeneratorAction.cc fe3209d/src/remollPrimaryGeneratorAction.cc
30c30
< #include "remollGen12CElastic.hh"
---
> #include "remollGenC12.hh"
60c60,62
< fEvGenMap["carbon"] = new remollGen12CElastic();
---
> fEvGenMap["elasticC12"] = new remollGenC12(0);
> fEvGenMap["quasielasticC12"] = new remollGenC12(1);
> fEvGenMap["inelasticC12"] = new remollGenC12(2);
diff -r ccda46f/include fe3209d/include
Only in ccda46f/include: remollGen12CElastic.hh
Only in fe3209d/include: remollGenC12.hh
Cannot identify why this would effect the elastic ep generator at all.
Some bizarre behavior. In develop, the proportion of events sampled in the three energy loss regions seem to reflect the right proportions (40%, 20%, 40%)
However, for those events with evidx=2, the eloss sampled always returns ~11 GeV. So, beamE= 11GeV-eloss ~0 and this is roughly what's stored in ev.beamp. The relevant lines of code that does this is , and in remollGenpElastic.cc.
Interestingly, for commit head ccda46b, we do see a spread in energy loss region 2 (evidx=2):
@rahmans1 I think we fixed this issue right?
@rahmans1 I think we fixed this issue right?
The intermediate solution was to explicitly set the parameters with messenger commands. So, in that sense, it's solved. But we didn't get to putting in guardrails so that people don't accidentally think built in defaults are set properly.
Issue Unable to reproduce historical ev.beamp pattern.
Environment:
eic-shell 3.0-stable container
gcc-10.2.1 root-6.22.08 geant4-10.7.1
Input Macro
Steps to reproduce
git clone https://github.com/JeffersonLab/remoll cd remoll git checkout develop cmake -DCMAKE_BUILD_TYPE=Release -S . -B build cmake --build build -j 8 ./build/remoll macros/test.mac
git clone https://github.com/JeffersonLab/remoll cd remoll git checkout feature-trigscint cmake -DCMAKE_BUILD_TYPE=Release -S . -B build cmake --build build -j 8 ./build/remoll macros/test.mac