Skip to content
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

Tracking issue for displaced tracks and electron reconstruction efficiency #25

Open
Tracked by #35
gaswk opened this issue Mar 7, 2024 · 13 comments
Open
Tracked by #35

Comments

@gaswk
Copy link

gaswk commented Mar 7, 2024

After investigating the tracking issue, adjusting the parameters MaxCellAngle and MaxCellAngleRZ to 0.5 (as opposed to 0.1), in the displaced step, has significantly enhanced the reconstruction of displaced tracks (tested with displaced single particle). These conditions were frequently not met, leading to track not being reconstructed.
The choice of the 0.5 value was somewhat arbitrary, and further optimisation is required.

However, despite this adjustment, an issue persists in properly reconstructing the Heavy Neutral Lepton (HNL) vertex with electron tracks. Interestingly, when considering all tracks in the event, the HNL vertex reconstruction aligns better with the expected distribution. What factors could be contributing to the reconstruction efficiency of electron?

1- Reconstructed vertex displacement (normalised to 1)
Screenshot from 2024-03-07 13-44-19

2- Comparison of Generated and reconstructed vertex displacement for MaxCellAngle, MaxCellAngleRZ = 0.5, left reconstructed with electrons tracks and right with all tracks in the event
Screenshot from 2024-03-07 13-46-34 Screenshot from 2024-03-07 13-47-09

3- Comparison of Generated and reconstructed vertex displacement MaxCellAngle, MaxCellAngleRZ = 0.1, left reconstructed with electrons tracks and right with all tracks in the event
Screenshot from 2024-03-07 13-48-38 Screenshot from 2024-03-07 13-48-48

@Zehvogel
Copy link
Collaborator

Zehvogel commented Mar 7, 2024

Hi Galle,

very interesting results!
Can you also check how the change of this criterion affects the track finding efficiency and the fake rate?
It is a bit hard to judge from your plots if the distribution is different because the tracks are missing or because the tracks are reconstructed incorrectly.
In the longer run we should probably collect a set of tracking performance plot scripts that we can put into a CI workflow...

Regarding the electrons: there are also some issues reconstructing prompt electrons that I noticed recently
image
I hoped that this can be fixed by relaxing another cut somewhere, but I had no time to investigate yet.

@gaswk
Copy link
Author

gaswk commented Mar 7, 2024

I gave you access to the aida files, with both values of MaxCellAngle. I think tracks were not correctly reconstructed. Both files are for 500mm displayed muons

/eos/user/g/gasadows/Output/TrackingPerformance/testREC_500mm_MCA01_aida.root

/eos/user/g/gasadows/Output/TrackingPerformance/testREC_500mm_MCA05_aida.root

@Zehvogel
Copy link
Collaborator

Yes, as far as I can see from the files (MyClicEfficiencyCalculator/simplifiedEfficiencyTree/m_reconstructed) the issue seems to be that the tracks are not reconstructed at all.

In the 0.1 case its only 6/87 tracks and in the 0.5 case it is 37/87

I am a bit surprised by the uneven number of 87 but I think this includes being in the detector acceptance and maybe one of the particles goes down the beamline...

I would still like to check how this change influences the fake rate of tracking in more busy events before making this the new default but that will still take me a while.

@gaswk
Copy link
Author

gaswk commented Jul 29, 2024

While investigating Pandora particles, mainly photons instead of electrons, tracks are not consistently associated with clusters. A comparison of track positions at calo and cluster positions reveals a mismatch.
Screenshot from 2024-07-29 09-49-47
Screenshot from 2024-07-29 09-50-11

@andresailer
Copy link
Collaborator

Hi @gaswk

Can you plot the 3D distance between tracks and clusters? Maybe even split between tracks and clusters that were matched and unmatched clusters and tracks?
The track position is at the calo front face surface, and the cluster in the calorimeter, so some distance is expected.

@gaswk
Copy link
Author

gaswk commented Aug 6, 2024

Here is DeltaR and DeltaD for tracks and clusters position
Screenshot from 2024-08-06 14-03-56

@andresailer
Copy link
Collaborator

Thanks!

What is DeltaD?
And DeltaR is the difference in radius between trackState and cluster, or cluster and trackstate?

@gaswk
Copy link
Author

gaswk commented Aug 6, 2024

D = sqrt(X^2 + Y^2 + Z^2)
Both are differences between cluster and trackstate (Delta = cluster - tracktate)

@andresailer
Copy link
Collaborator

It is DeltaD = sqrt(Sum_i (X_c^i-X_t^i)^2)) ? How can it be negative?

@gaswk
Copy link
Author

gaswk commented Aug 6, 2024

DeltaD = D_cluster - D_trackstate

@andresailer
Copy link
Collaborator

That is not the 3D distance though. So if you could plot the DeltaD as I defined above?

@gaswk
Copy link
Author

gaswk commented Aug 14, 2024

Here is the Delta3D distribution for matched and not matched electrons
Screenshot from 2024-08-13 18-51-07

@andresailer
Copy link
Collaborator

Thanks for the plot @gaswk ! There is not really any difference between the distribution, so the issue is probably elsewhere.

@Zehvogel Zehvogel mentioned this issue Sep 23, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants