-
Notifications
You must be signed in to change notification settings - Fork 23
PF hit association #1856
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
base: trunk
Are you sure you want to change the base?
PF hit association #1856
Conversation
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.
This is looking good, I have a few cleanup requests and one comment about sharing EcalGeo information with CLUE.
Remove remnant of attempt to set hits directly Co-authored-by: Tom Eichlersmith <[email protected]>
Co-authored-by: Tom Eichlersmith <[email protected]>
The failing histogram tests are caused by a name change |
float d_r = std::sqrt(std::pow((ecal_clusters[0].getCentroidX() - | ||
ecal_clusters[1].getCentroidX()), | ||
2) + | ||
std::pow((ecal_clusters[0].getCentroidY() - | ||
ecal_clusters[1].getCentroidY()), | ||
2)); |
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 suggest to do a*a
instead of pow(a,2)
, it's much faster
std::vector<double> layer_thickness = {2., 3.5, 5.3, 5.3, 5.3, 5.3, | ||
5.3, 5.3, 5.3, 5.3, 5.3, 10.5, | ||
10.5, 10.5, 10.5, 10.5}; |
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.
This is not true for v15 anymore
Examples | ||
-------- | ||
from LDMX.Recon.pfReco import pileupFinder | ||
p.sequence.append( pileupFinder ) |
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'd suggest to add this to the 2e CI
I am updating ldmx-sw, here are the details.
What are the issues that this addresses?
This allows association back to hits from clusters that were associated with PF tracks in the PFlow algorithm. It also includes a first go at a pileup electron identifier processor, that subtracts hits associated to high-momentum tracks from the ecal rechit collection (or rather, makes a new collection without those hits).
Check List
Plot showing 10 2e inclusive events, ecal rec hits x: black is all hits, red is after pileup removal. This is not at all optimized yet (clustering needs improvements) but the principle works.