-
Notifications
You must be signed in to change notification settings - Fork 18
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
update sliding-window clustering for Theta-Module readout #58
Conversation
Hello Tong, this will break the FCC-hh clustering. I would propose to create new algorithms under |
@@ -23,6 +23,9 @@ CaloTowerTool::CaloTowerTool(const std::string& type, const std::string& name, c | |||
declareProperty("hcalExtBarrelCells", m_hcalExtBarrelCells, ""); | |||
declareProperty("hcalEndcapCells", m_hcalEndcapCells, ""); | |||
declareProperty("hcalFwdCells", m_hcalFwdCells, ""); | |||
declareProperty("positionsECalBarrelTool", m_cellPositionsECalBarrelTool, | |||
"Handle for tool to retrieve cell positions in ECal Barrel"); |
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 there a way to not introduce the dependency on the Cell Position tools?
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.
Do you need to adjust cell positions or you asume they are not positioned at all?
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.
I need to get the cell positions in theta and phi. For theta, we can also use "segmentation->theta(cellID)" from segmentation. However "segmentation->phi(cellID)" only returns a relative shift in phi, not the actual phi position of a cell. So @giovannimarchiori suggested me to use the Cell Position Tool.
What do you think? @giovannimarchiori
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.
The cell positions are needed to find out to which tower in eta-phi they belong, but the position does not need to be modified. So probably one could just run the clustering on the positioned cells and there would be no need for the positioning tool here.
@dasphy this means that you should use "ECalBarrelPositionedCells" rather than EcalBarrelCellsName (= "ECalBarrelCells") for towers.ecalBarrelCells.Path in https://github.com/BrieucF/LAr_scripts/pull/16/files#diff-58bdd8a8f3d731a4b580bf79c17c026b7ccd59c296d01a3c1aa01b02ffd6a4cf
Can you try to use the positioned cells (and retrieve theta/phi directly from their position) rather than from the positioning tool or the segmentation?
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.
That's a good idea, thanks @giovannimarchiori
I agree, since |
OK. |
Hello @BrieucF , @kjvbrt ,
Let me know if there are any issues, thanks! Cheers, |
Hi @dasphy, when trying out the PR I got the following error:
Is it because it also depends on #59 ? |
Hi @kjvbrt , Please run the FCCee SW clustering using run_thetamodulemerged.py Best,
|
Hi @kjvbrt
Because it depends on this PR: Cheers, Tong |
Hi @dasphy, I'm still not able to run the modified run_thetamodulemerged.py. I'm getting:
|
Sorry I haven't seen this before. Tong |
Hi @kjvbrt , @BrieucF Tong |
SW-clustering code in this PR also updated with k4geo. |
Hi @kjvbrt , @BrieucF , run_thetamodulemerged.py script is updated: this one is closed & discarded: Tong |
Hello @kjvbrt , @BrieucF , |
Hello @kjvbrt , @jmcarcell , Tagging: @giovannimarchiori @gartrog Best, Tong |
Hello,
I create this PR for making sliding-window clustering work with Theta-Module readout.
Please help me review the code, thank you!
Related PRs:
key4hep/k4FWCore#158
BrieucF/LAr_scripts#16
@BrieucF
@giovannimarchiori
@gartrog
Cheers,
Tong Li