Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normal incidence #112

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

Normal incidence #112

wants to merge 11 commits into from

Conversation

chchatte92
Copy link
Member

Briefly, what does this PR introduce?

The PR tries to estimate the incidence angle of the impinging MC photons.
For the testing purpose I am just using the existic test_pixel_gap_cuts.cpp; will move to a total new code in case the procedure is right.

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • [X ] New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators
    @c-dilks is aware of the studies and he has been asked to kindly review the changes made in EICRecon to get the sensor normalZ.

Does this PR introduce breaking changes? What changes might users need to make to their code?

Does this PR change default behavior?

chchatte92 and others added 7 commits October 5, 2023 22:11
I had it in my local copy, and pushed and old commit yesterday before your suggestions.

Co-authored-by: Wouter Deconinck <wdconinc@gmail.com>
Accepted.

Co-authored-by: Christopher Dilks <c-dilks@users.noreply.github.com>
@@ -72,6 +74,12 @@ int main(int argc, char** argv) {

auto cellID = sim_hit.getCellID();
auto pos = sim_hit.getPosition();
auto mom = sim_hit.getMomentum();
TVector3 p; p.SetX(mom.x); p.SetY(mom.y); p.SetZ(mom.z);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
TVector3 p; p.SetX(mom.x); p.SetY(mom.y); p.SetZ(mom.z);
TVector3 p(mom.x, mom.y, mom.z);

Copy link
Member Author

@chchatte92 chchatte92 Oct 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The one you suggested was what I tried for the first time. The compilation failed and it complained that this method not found (LoL) and so I had to move to SetX(). This morning I have updated my eic-shell, I will try once more.

src/test_pixel_gap_cuts.cpp Outdated Show resolved Hide resolved
@c-dilks c-dilks mentioned this pull request Oct 25, 2023
7 tasks
@c-dilks
Copy link
Member

c-dilks commented Nov 1, 2023

With eic/EICrecon#1068 merged, is this ready?

@chchatte92 chchatte92 closed this Feb 20, 2024
@chchatte92 chchatte92 reopened this Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants