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

ALERT s/l/c/o indexing starts from zero #272

Open
baltzell opened this issue May 22, 2024 · 2 comments
Open

ALERT s/l/c/o indexing starts from zero #272

baltzell opened this issue May 22, 2024 · 2 comments

Comments

@baltzell
Copy link
Collaborator

Should see how much work it would be adopt the standard convention.

@baltzell
Copy link
Collaborator Author

baltzell commented May 22, 2024

For the two geometry services, the necessary changes look straightforward enough.

AHDC reconstruction uses indexes for a few geometry calculations and bounds checking, but it looks also manageable. This should be all of them:

phi calculation

something with bounds, looks as if it was already assuming indexing started from 1?

phi calculation

a bit scary but presumably easy

various geometry calculations

@baltzell
Copy link
Collaborator Author

baltzell commented May 23, 2024

@mpaolone In the recent file from @efuchey, attached, AHDC::adc's layer cleary starts from 0, but I never see component=0. That's consistent with gemc 5.9's ahdc__geometry* files and hit process code. The geometry services (AHDC and ATOF) in COATJAVA internally index everything from zero (and use them for geometry calculations) and export them with the same convention. In GEMC's factory.groovy, the compoment (and only the component) it receives from the geometry service is manually incremented by one for AHDC before outputting the geometry txt files.

So this surely explains the manual -1 offsetting and 1:N bounds checking for only wire (compoment) in AHDC reconstruction, which is then used for geometry calculations similar to as in the geometry service.

alert_adc_sim_1k.hipo.gz

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

No branches or pull requests

1 participant