[PWGLF,PWGMM] add mftReassociationValidation.cxx task#15054
Open
AlexianL wants to merge 9 commits intoAliceO2Group:masterfrom
Open
[PWGLF,PWGMM] add mftReassociationValidation.cxx task#15054AlexianL wants to merge 9 commits intoAliceO2Group:masterfrom
AlexianL wants to merge 9 commits intoAliceO2Group:masterfrom
Conversation
…ted as reasso2D is
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the mftReassociationValidation.cxx task with the goal of estimating the efficiency of MFT tracks DCA reassociation methods.
processMcReassociation3d as an example :
I loop over all tracks in the BestCollisionsFwd3d table (reassociated3dMftTrack)
I get the original track info by templating : auto templatedTrack = reassociated2dMftTrack.template mfttrack_as();
I check only tracks who have a MC particle (these MC particle are obtained by templating the tracks as McParticle
auto particle = templatedTrack.template mcParticle_asaod::McParticles();)
I separate ambiguous and non-ambiguous track through : if (reassociated2dMftTrack.ambDegree() > 1) { // AMBIGUOUS TRACKS
For all ambiguous tracks, I check whether the collision with which it is associated to mcCollisionId() corresponds with the MC particle associated to the same track mcCollisionId() : if (collision.mcCollisionId() == particle.mcCollisionId()) {
Then for ambiguous tracks only, I check whether the track was reassociated (or not) to a new collision using the 3D reassociation method : if (templatedTrack.collisionId() == reassociated2dMftTrack.bestCollisionId()) { // IS NOT 2D REASSOCIATED
For both reassociated tracks (which have bestCollisionId different than collisionId) and not reassociated tracks (which have bestCollisionId == collisionId) I have to obtain the information of the reassociated (or not) collision through a hash table. This is done in the "processCreateLookupTable" function, where I store the posX, posY, posZ and mcCollisionId of all collisions. Then back to processMcReassociation3d, I get these informations back by searching for the BestCollisionId in this hash table. In the end, I get the mcCollisionId of the collision corresponding to BestCollisionId through : const int mcCollisionIdReco = iteratorRecoMcCollisionId->second;
Once this information is retrieve, I can check whether the collision with which it is associated to mcCollisionId() corresponds with the MC particle associated to the same track mcCollisionId() : if (mcCollisionIdReco == particle.mcCollisionId()) {
If the track is non-ambiguous (= associated in time with only one collision), I check whether the collision with which it is associated to mcCollisionId() corresponds with the MC particle associated to the same track mcCollisionId() : if (collision.mcCollisionId() == particle.mcCollisionId()) {