-
Notifications
You must be signed in to change notification settings - Fork 15
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
Problems with parameterized magnetic field #124
Comments
Looking at your plot, there is no r dependence (I know we only use Bz), I think it was in the code, let me check. Oh, it is there, but the a parameter is e-11 so probably to small to notice. ` // Config for Bfield. Note: for now the same for CMS-2017 and CylCowWLids. inline float BfieldFromZR(const float z, const float r) |
To make the comparison explicit, look at the following directories:
CMSSWtrack track-param matching w/ param b-field 10mu HSCMSSWtrack track-param matching w/ static b-field 10mu HSIt seems with the parameterized field is turned on, the loss of efficiency is at around |eta| = 1.0, but improves around |eta| = 1.8. |
I will trace a few tracks and see. |
Revisiting this issue: As you can see, the performance is slightly worse for the parametric b field, but the difference is not nearly as large as it was two years ago. This is definitely worth including in the list of improvements for the new tuning. Head of devel (constant b field) For what it's worth, I did double check and compare our implementation to that in CMSSW and everything seems consistent. |
One more set of plots before I add this to Pandora's Box. I ran mkFit within CMSSW with the parametric B field turned on for inter-layer propagation only (orange) or inter-layer propagation and the backward fit (black). Nominal CMSSW (blue) and mkFit (red) are also shown. The full set of plots can be found here. The effects are mostly within the noise, except for the pt residuals with respect to eta: The residuals in the endcaps get closer to CMSSW but further from 0. This is contradictory to what we see in our standalone plots, where the pt diffs improve (see below). The difference probably comes from the details of the CMSSW final fit, and it probably isn't worth investigating further now. Although it would be really useful to have plots of pt resolution vs eta in our standalone validation. Parameterized b field used for interlayer propagation: The timing is essentially identical with and without the parametric b field, at least when using a single thread within CMSSW. |
I'm trying to understand how to match the two plots: one is deltaPt/ptSim (dimensionless), while the other is deltaPt/(ptSim*ptReco) (in units of 1/GeV). Wild-guessing an average pt of 2 GeV, I should be looking at the bias/mode "feature" of about 0.01/GeV in the mkFIt validation d(1/pt) histogram. |
oh, and there is an obvious eta dependence part: the concern in the comparison with the MTV is localized in the endcap, while the mkFit val plot is integrated for all eta |
@slava77 I agree, these plots are not an apples-to-apples comparison, so maybe it's overstating it to say that the two sets of plots are contradictory. All I meant was that the pt diffs get better in our standalone validation, but the only noticeable effect in MTV is that the pt residuals get worse. As I mentioned earlier, it would be really useful to have plots of pt resolution vs eta in our standalone validation. |
As we have seen a few times now, the efficiency for both building and backward fit degrades when the parameterized magnetic field is turned on. It seems to be affecting the transition region the most, and not as noticeable elsewhere.
There have already been some ideas on how to check what is happening. I wanted to post this here for quick feedback. Please feel free to add insights as it comes.
For reference, I am linking the delta for the magnetic field map between a static 3.8 T field and the parameterized one made from a simple macro (magfield.C): https://kmcdermo.web.cern.ch/kmcdermo/keep_old_mictrk/magfield/fieldmap/
The text was updated successfully, but these errors were encountered: