Skip to content

PWGHF: Add task to perform optimisation of preselections - #6612

Merged
jgrosseo merged 11 commits into
AliceO2Group:devfrom
fgrosa:sel_opt
Aug 17, 2021
Merged

PWGHF: Add task to perform optimisation of preselections #6612
jgrosseo merged 11 commits into
AliceO2Group:devfrom
fgrosa:sel_opt

Conversation

@fgrosa

@fgrosa fgrosa commented Jul 8, 2021

Copy link
Copy Markdown
Collaborator

No description provided.

@fgrosa
fgrosa requested review from ginnocen and vkucera as code owners July 8, 2021 12:19
@fgrosa
fgrosa marked this pull request as draft July 8, 2021 12:19
@fgrosa fgrosa changed the title Add task to perform optimisation of preselections [PWGHF] Add task to perform optimisation of preselections Jul 8, 2021
@vkucera vkucera changed the title [PWGHF] Add task to perform optimisation of preselections PWGHF: Add task to perform optimisation of preselections Jul 9, 2021

@vkucera vkucera left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hi @fgrosa , on the first look, it seems fine to me. I have a general comment, though.

It is better to use the <object><attribute> (or <general><specific>) naming scheme, so that names of the same kind of objects start with same string and the different attributes follow.
This scheme makes names more readable, searchable and sortable.

For example, I think that

nCutsToTestCosp
nCutsToTestDecLen
nCutsToTestPtTrackMin

vecCutsCosp
vecCutsDecLen
vecCutsPtTrackMin

is more readable (and sortable) than

nCospCutsToTest
nDecLenCutsToTest
nMinTrackPtCutsToTest

cospCutsVec
decLenCutsVec
minTrackPtCutsVec

Btw, you already use that scheme for histogram names.

"hPromptVsPtD0ToPiK"
"hPromptVsPtJpsiToEE"
"hPromptVsPt2Prong"

@fgrosa

fgrosa commented Jul 14, 2021

Copy link
Copy Markdown
Collaborator Author

Hi @fgrosa , on the first look, it seems fine to me. I have a general comment, though.

It is better to use the <object><attribute> (or <general><specific>) naming scheme, so that names of the same kind of objects start with same string and the different attributes follow.
This scheme makes names more readable, searchable and sortable.

For example, I think that

nCutsToTestCosp
nCutsToTestDecLen
nCutsToTestPtTrackMin

vecCutsCosp
vecCutsDecLen
vecCutsPtTrackMin

is more readable (and sortable) than

nCospCutsToTest
nDecLenCutsToTest
nMinTrackPtCutsToTest

cospCutsVec
decLenCutsVec
minTrackPtCutsVec

Btw, you already use that scheme for histogram names.

"hPromptVsPtD0ToPiK"
"hPromptVsPtJpsiToEE"
"hPromptVsPt2Prong"

Hi @vkucera, thanks for your feedback! Indeed I did not pay too much attention to the naming scheme, I should have now changed all the variables according to your suggestion!

@fgrosa

fgrosa commented Aug 1, 2021

Copy link
Copy Markdown
Collaborator Author

This PR depends on #6783 (thanks @mpuccio!)

@jgrosseo
jgrosseo merged commit 62aaf78 into AliceO2Group:dev Aug 17, 2021
EmilGorm pushed a commit to EmilGorm/AliceO2 that referenced this pull request Nov 22, 2021
…p#6612)

* Add task to perform optimisation of preselections
* Add minimum track pT and histograms for inclusive 2 and 2 prongs
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