-
Notifications
You must be signed in to change notification settings - Fork 19
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
expanded version of CreateCaloCells that also add proper cell positions #100
expanded version of CreateCaloCells that also add proper cell positions #100
Conversation
…s. Include also hcal endcap in test, and move to new hcal positioning tool for hcal barrel)
…unning over particle gun samples
Hi @giovannimarchiori, would this algorithm work also for FCChh? |
Hi @kjvbrt - definitely. I guess you are suggesting to move the files to RecCalorimeter, like CreateCaloCells? |
Yes |
RecFCCeeCalorimeter/src/components/CreatePositionedCaloCells.cpp
Outdated
Show resolved
Hide resolved
|
||
// Copy over the CellIDEncoding string from the input collection to the output collection | ||
auto hitsEncoding = m_hitsCellIDEncoding.get_optional(); | ||
if (!hitsEncoding.has_value()) { |
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.
Is this worthy of crashing, can't this be just a warning?
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.
it's exactly as in CreateCaloCells (
// Copy over the CellIDEncoding string from the input collection to the output collection |
Hi @kjvbrt , I implemented your comments and answered one question. I reran the tests locally and also in GitHub and they ran fine |
Hi @giovannimarchiori, nice :) |
This PR tries to tackle #7
The position added to the cells by CreateCaloCells uses volume ID + segmentation to calculate the position of the cells, but it lacks the z information (maybe the code could have worked but the part that retrieves the z information from the segmentation does not seem to be implemented, and would depend on the segmentation type).
Since we have already tools that translates cellID into position, I wrote a CreatePositionedCaloCells algorithm that works exactly like CreateCaloCells but for the cell position uses the positioning tool to calculate it and save it into the cell.
I think this tool could probably supersede both CreateCaloCells and CreateCaloCellPositionsFCCee, but for the moment I just added a new tool and left there the old ones so that nobody is affected.
The new tool is scheduled in the test being run automatically and is used systematically instead of CreateCaloCells and CreateCaloCellPositionsFCCee.
In this PR I also enabled in the test script the hcal endcap digisation and the new positioning tool for hcal barrel and endcap that were not included in the tests so far.
I will make some tests in the coming days to check that the output is unchanged by switching to the new tool but the review of the code structure can proceed in parallel.