Skip to content

MRRTF-202: QC for matched muon tracks - #1505

Merged
Barthelemy merged 5 commits into
AliceO2Group:masterfrom
AliceMCH:mrrtf-202-qc-for-muon-matched-tracks
Oct 20, 2022
Merged

MRRTF-202: QC for matched muon tracks#1505
Barthelemy merged 5 commits into
AliceO2Group:masterfrom
AliceMCH:mrrtf-202-qc-for-muon-matched-tracks

Conversation

@aferrero2707

Copy link
Copy Markdown
Contributor

No description provided.

@aferrero2707
aferrero2707 force-pushed the mrrtf-202-qc-for-muon-matched-tracks branch from 13a7a9b to 417616d Compare October 9, 2022 18:49
Comment thread Modules/MUON/Common/src/MuonTrack.cxx Outdated
Comment thread Modules/MUON/Common/src/MuonTrack.cxx Outdated
Comment thread Modules/MUON/Common/src/MuonTrack.cxx Outdated
Comment thread Modules/MUON/Common/src/MuonTrack.cxx Outdated
Comment thread Modules/MUON/Common/src/MuonTrack.cxx Outdated
Comment thread Modules/MUON/Common/src/TrackPlotter.cxx Outdated
Comment thread Modules/MUON/Common/src/TrackPlotter.cxx Outdated
Comment thread Modules/MUON/MCH/src/TrackPlotter.cxx Outdated
Comment thread Modules/MUON/MCH/src/TrackPlotter.cxx Outdated
Comment thread Modules/MUON/MCH/src/TrackPlotter.cxx Outdated
if (selectedTracks[ix]) {
rtracks.emplace_back(tracks[ix]);
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that would be more efficient to pass the subspan of all the tracks in the ROF together with the selectedTracks vector to fillTrackPairHistos(...) and apply the selection there than coping the selected tracks in a new vector.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to let @aphecetche comment about this one, since he wrote the original code.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea was to get the fillXXX methods as simple as possible and thus only get them a span of tracks (as opposed to passing tracks and something else).

The ideal solution maybe would be to pass a pair of iterators to the fillXXX methods and let the iterators do the selection (and "hide" both the ROFs and the tracks container structure from the fill methods), but I thought that would be overkill.

Anyway, unless we have evidence that the creation of a new vector actually causes a performance problem, I would leave it as is for the moment.

The generic MuonTrack objects provides a generic interface
for accessing the parameters of muon tracks regardless of
their actual type (MCH-only, MCH+MCH or refitted MFT+MCH(+MID))
The plotter automatically creates and fills plots for the different
matching combinations (MCH, MCH+MID, MFT+MCH, MFT+MCH+MID).
Reference configuration files for the different matching combinations
are also included.
@aferrero2707
aferrero2707 force-pushed the mrrtf-202-qc-for-muon-matched-tracks branch from ad3af3d to e529a0b Compare October 17, 2022 06:56
@aferrero2707 aferrero2707 changed the title [WIP] [MRRTF-202] QC for matched muon tracks MRRTF-202: QC for matched muon tracks Oct 17, 2022
@aphecetche

Copy link
Copy Markdown
Contributor

@aferrero2707 there's a genuine "compilation" error :

Error in : I/O is supported only for unique_ptrs with a default deleter. o2::quality_control_modules::muon::TrackPlotter::mNofTracksPerTF appears to have a custom one, .

@aferrero2707

aferrero2707 commented Oct 17, 2022

Copy link
Copy Markdown
Contributor Author

@aphecetche interesting... I do not get this error when compiling on our development FLP with O2 stack.
Do you have a clue where the problem actually is? Is it due to the use of an array of unique_ptr?
Thanks!

@aferrero2707

Copy link
Copy Markdown
Contributor Author

@Barthelemy @knopers8 this one is finalized and CI is all green. Would it be possible to merge it? Thanks!

@Barthelemy
Barthelemy merged commit cd63cc9 into AliceO2Group:master Oct 20, 2022
@aferrero2707
aferrero2707 deleted the mrrtf-202-qc-for-muon-matched-tracks branch January 10, 2023 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants