Skip to content

Conversation

@mconcas
Copy link
Collaborator

@mconcas mconcas commented Jul 29, 2021

@shahor02 : This PR is rebased on #6431 but it will likely be merged after.
Still have to do the tests, I'll keep you updated.

@mconcas mconcas changed the title Smoother mctruth enabled ITS: Add smoothing to tracker Jul 29, 2021
@mconcas mconcas force-pushed the smoother-mctruth-enabled branch 2 times, most recently from d8af0a9 to e431707 Compare August 11, 2021 15:57
@mconcas
Copy link
Collaborator Author

mconcas commented Aug 11, 2021

Hi @shahor02, I am starting again at looking into fake clusters.
The attached plot is produced with CheckTrackerFakeClusters.C (added in this PR).
fakeClusters

In the first row there are the distributions of fakes vs track length (no constraints on starting layer). Info on fakiness is fetched via TrackITS::isFakeOnLayer() if TrackITS::hasHitOnLayer() is true.
Second row is same, but filtering on tracks with only one fake cluster.

Data is also here, it's 1K pp events: https://cernbox.cern.ch/index.php/s/qgPHswoFoSx2EB5
Over a total of 16K reconstructed tracjks, ~200 are isFake().

Please let me know what further information I can provide.

trackEff

@shahor02
Copy link
Collaborator

@mconcas thanks! Is this with or w/o fix of @mpuccio which eliminates ~10% pt-independent fake contamination in min.bias pbpb?
When checking for fakes, you don't check if there is a correct cluster available or not, right?

@mconcas
Copy link
Collaborator Author

mconcas commented Aug 11, 2021

@mconcas thanks! Is this with or w/o fix of @mpuccio which eliminates ~10% pt-independent fake contamination in min.bias pbpb?

This is w/o Max's fix. It's just using mCTruth containers, differently from what we have upstream atm.

When checking for fakes, you don't check if there is a correct cluster available or not, right?

No, that was once done on a specific study on 7-clusters long tracks where we discovered they were not present. I can check for shorter tracks.

@shahor02
Copy link
Collaborator

@max is going to merge his PR, for cleanness, I would prefer checking the fakes once it is merged

@mconcas
Copy link
Collaborator Author

mconcas commented Aug 11, 2021

@max is going to merge his PR, for cleanness, I would prefer checking the fakes once it is merged

Sounds reasonable

@mconcas
Copy link
Collaborator Author

mconcas commented Sep 9, 2021

Hi @shahor02
I rebased locally on latest TF-based tracker.
Before force-pushing I just post the result of running on the same data now (using run_trac_ca_its.C):

Efficiencies:

  • Total number of tracks: 20890
    • Total number of tracks not corresponding to particles: 88 (0.421254%)
    • Total number of fakes: 2196 (10.5122%)
    • Total number of good: 18606 (89.0665%)

Efficiencies

Fake clusters:
fakeClusters

@mpuccio: does this look reasonable? Nothing should've changed as the smoother code addition is non operational for the moment.

If this is ok for the two of you I'll restart from here.

@shahor02
Copy link
Collaborator

shahor02 commented Sep 9, 2021

Hi @mconcas

Qualitatively they look reasonable to me, the numbers are difficult to compare to previous set due to different pT coverage.
Do you have macro to produce these histos? Later I may play with them if find some time.
Anyway, please remove the Drafts tag to trigger the CI.

@mconcas
Copy link
Collaborator Author

mconcas commented Sep 9, 2021

Hi @mconcas

Qualitatively they look reasonable to me, the numbers are difficult to compare to previous set due to different pT coverage.
Do you have macro to produce these histos? Later I may play with them if find some time.
Anyway, please remove the Drafts tag to trigger the CI.

Yes, the macro is committed and it's called CheckTrackerFakeClusters.C I'll then proceed with the force pushing

@mconcas mconcas force-pushed the smoother-mctruth-enabled branch from e431707 to 9bea879 Compare September 9, 2021 14:03
@mconcas mconcas marked this pull request as ready for review September 9, 2021 14:03
@mconcas mconcas requested review from a team, bovulpes, iouribelikov and rpezzi as code owners September 9, 2021 14:03
@mconcas mconcas force-pushed the smoother-mctruth-enabled branch from 9bea879 to e8c792f Compare September 13, 2021 16:19
@mconcas mconcas changed the title ITS: Add smoothing to tracker ITS tracker: Add smoothing class Sep 13, 2021
@mconcas mconcas force-pushed the smoother-mctruth-enabled branch 2 times, most recently from 59cf61d to 2f4aa1b Compare September 16, 2021 18:29
@mconcas mconcas force-pushed the smoother-mctruth-enabled branch from de83087 to 9f51b42 Compare September 17, 2021 12:46
@mconcas
Copy link
Collaborator Author

mconcas commented Sep 17, 2021

@shahor02 : now check on fake clusters are improved and merged in CheckTracksCA.C macro. It is now possible to see for fake cluster distributions whether there is the correct one (blue) or not (red).

E.g. pp:
fakeClusters_pp

and PbPb:
fakeClusters_PbPb

If @mpuccio agrees with the edits to the macro I think this PR can go through, so that he can in parallel continue with his work while I can do more detailed studies on the fakes.

auto& trc{tracks[iTrk]};
trc.setFirstClusterEntry(allClusIdx.size()); // before adding tracks, create final cluster indices
int ncl = trc.getNumberOfClusters(), nclf = 0;
uint8_t patt = 0;
Copy link
Collaborator Author

@mconcas mconcas Sep 17, 2021

Choose a reason for hiding this comment

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

@shahor02 please notice that I removed this part as the pattern is already set during the tracking step:

temporaryTrack.setExternalClusterIndex(iC, clusters[iC], clusters[iC] != constants::its::UnusedIndex);

These line were actually resetting the part of the mPattern reserved for MC information.

@mpuccio
Copy link
Contributor

mpuccio commented Sep 17, 2021

Unless there are other considerations, I would merge this PR as soon as tests are done, we will need this for the next development of the "track finding with holes".

@shahor02
Copy link
Collaborator

@mconcas thanks! I am slightly confused by the histos: they show majority fake, even for 7 hit tracks. Why?

@mconcas
Copy link
Collaborator Author

mconcas commented Sep 17, 2021

@mconcas thanks! I am slightly confused by the histos: they show majority fake, even for 7 hit tracks. Why?

Hi, I am not sure I understood the question. The histos are stacked and both blue and red represent tracks with fake clusters. In red case there is not the corresponding correct cluster, in blue case yes.

@shahor02
Copy link
Collaborator

@mconcas ah, ok, I did not realize only fakes contribute to both histos. Fine, thanks, will merge once CI passed

@davidrohr
Copy link
Collaborator

mac os CI seems stuck since few days, merging

@davidrohr davidrohr merged commit c67fca1 into AliceO2Group:dev Sep 18, 2021
@mconcas mconcas deleted the smoother-mctruth-enabled branch November 11, 2021 09:46
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