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

User-friendly interface(s) to get specific fit from demfit[] array #156

Open
AndrewEdmonds11 opened this issue Jun 17, 2024 · 0 comments
Open
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request python This is python-related ROOT This is ROOT-related

Comments

@AndrewEdmonds11
Copy link
Collaborator

At the moment, the track fit is sampled at various points (e.g. entrance, middle, and exit of the tracker for conversion electrons; inner and outer surface of the tracker for straight-line cosmics). These are stored in a vector (of vectors): demfit where the sample point determined by the surfaceId. This extra dimension does make e.g. plotting difficult but the extra dimension is required because we will want to add sample points in the future (e.g. back to the stopping target)

We need a nice interface for both ROOT and python such that an analyzer can get the fits for a single position. Something like:

df["dem_ent_fit"] = get_trk_entrance_fits(df["demfit"])
@AndrewEdmonds11 AndrewEdmonds11 converted this from a draft issue Jun 17, 2024
@AndrewEdmonds11 AndrewEdmonds11 added documentation Improvements or additions to documentation enhancement New feature or request python This is python-related ROOT This is ROOT-related labels Jun 17, 2024
@AndrewEdmonds11 AndrewEdmonds11 added this to the EventNtuple v06_00_00 milestone Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request python This is python-related ROOT This is ROOT-related
Projects
Status: Ready
Development

No branches or pull requests

2 participants