Skip to content

PWGHF: fix downsampling tree creator Lc. - #4511

Merged
fgrosa merged 1 commit into
AliceO2Group:masterfrom
mfaggin:fixdownsampling
Jan 29, 2024
Merged

PWGHF: fix downsampling tree creator Lc.#4511
fgrosa merged 1 commit into
AliceO2Group:masterfrom
mfaggin:fixdownsampling

Conversation

@mfaggin

Copy link
Copy Markdown
Collaborator

No description provided.

@fgrosa
fgrosa enabled auto-merge (squash) January 29, 2024 17:28
@mfaggin

Copy link
Copy Markdown
CollaboratorAuthor

thanks @fgrosa

@fgrosa
fgrosa merged commit f90a19c into AliceO2Group:masterJan 29, 2024
float FunctionE) {
double pseudoRndm = trackPos1.pt() * 1000. - (int64_t)(trackPos1.pt() * 1000);
if (FunctionSelection >= 1 && pseudoRndm < downSampleBkgFactor && candidate.pt() < downSampleBkgPtMax) {
if (FunctionSelection >= 1 && (candidate.pt() > downSampleBkgPtMax || (pseudoRndm < downSampleBkgFactor && candidate.pt() < downSampleBkgPtMax))) {

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.

Shouldn't the && candidate.pt() < downSampleBkgPtMax part be dropped as it is trivially true inside that condition?

hahassan7 pushed a commit to hahassan7/O2Physics that referenced this pull request Feb 1, 2024
Co-authored-by: Mattia Faggin <mfaggin@cern.ch>
basiach pushed a commit to basiach/O2Physics that referenced this pull request Feb 23, 2024
Co-authored-by: Mattia Faggin <mfaggin@cern.ch>
Sign up for freeto 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.

3 participants

@mfaggin@fgrosa@vkucera