-
Notifications
You must be signed in to change notification settings - Fork 14
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
Changes to run pandora on tracks created from generator-level particles #43
Changes to run pandora on tracks created from generator-level particles #43
Conversation
Hi Giovanni, can you add to the release note that this is a work around needed because currently one can not us the edm4hep <--> lcio converters when using functionals? |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Giovanni! Here some comments
@BrieucF I think I implemented all your comments. I also made extrapolation to endcap work as well as to barrel. It should be OK for a final review round. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR.
I confirm it compiles.
@BrieucF do you think it would be worth to provide a test for CI, which can also be used as example for potential users?
Yes, I think it is worth adding a test |
Test added ;) |
The test fails because for the extrapolation to the calorimeter it requires the calorimeter data extension to be filled, as it will be possible when key4hep/k4geo#419 will be merged. Should we (1) wait for that PR to be merged, (2) merge anyway with a test failing, or (3) add a protection to the algorithm that when the extension is missing the extrapolation to the calo is not performed? (3) seems the best way to me but I will be busy all day... |
Thanks for adding the test! I just realized that this algorithm relies on the data extension of a specific calorimeter, making it quite specialized and less reusable. Would you consider either renaming it to better reflect its specificity or adapting it to be more general? For example, it could read the size variables [link] from input instead of depending on the data extension. Let me know what you think! |
Hi @atolosadelgado |
That makes sense. Since the algorithm depends on the calorimeter, could you reference it in the name? The ARC group will need to develop a similar algorithm without this dependency, so a more explicit name would help avoid confusion. Thanks! |
Currently, the data extension is only used to extract the size of the calorimeter. Would it be possible to add an option (as a non-default setting) to pass the calorimeter size as parameters of the Gaudi algorithm? This would make the algorithm more flexible and suitable for other systems that do not provide the data extension. |
Hi @atolosadelgado I changed the algorithm name so that now it's clear it extrapolates to the ecal. |
Started from Archil's implementation in https://github.com/Archil-AD/k4RecTracker/tree/pandora but
BEGINRELEASENOTES
ENDRELEASENOTES
Tagging @BrieucF - let's have a look at the code not just in terms of style but also at what it does so that we do things right. For instance might be things that need to be done a bit differently for tracks that point towards the ECAL endcap rather than the barrel. I will make it a draft while we iterate over it