Skip to content

PWGHF:Set the correlation status#6290

Merged
fgrosa merged 17 commits into
AliceO2Group:masterfrom
1481014945:master
May 30, 2024
Merged

PWGHF:Set the correlation status#6290
fgrosa merged 17 commits into
AliceO2Group:masterfrom
1481014945:master

Conversation

@1481014945

Copy link
Copy Markdown
Contributor

Hi,
I have added a column to set the correlation status. You can see my changes here. Can you give me some suggestions?

@fgrosa fgrosa 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 @1481014945 I just have few minor comments about the name of the variables, then we can merge it

Comment thread PWGHF/HFC/DataModel/CorrelationTables.h Outdated
DECLARE_SOA_COLUMN(MDbar, mDbar, float); //! Invariant mass of D0bar
DECLARE_SOA_COLUMN(SignalStatus, signalStatus, int); //! Tag for D0,D0bar
DECLARE_SOA_COLUMN(PoolBin, poolBin, int); //! Pool Bin for the MixedEvent
DECLARE_SOA_COLUMN(CorrelationStatus, correlationStatus, bool); //! Correlation Status

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.

I would call it with a more meaningful name

Suggested change
DECLARE_SOA_COLUMN(CorrelationStatus, correlationStatus, bool); //! Correlation Status
DECLARE_SOA_COLUMN(IsAutoCorrelated, isAutoCorrelated, bool); //! Correlation Status

Comment thread PWGHF/HFC/DataModel/CorrelationTables.h Outdated
aod::hf_correlation_d0_hadron::PtHadron,
aod::hf_correlation_d0_hadron::PoolBin);
aod::hf_correlation_d0_hadron::PoolBin,
aod::hf_correlation_d0_hadron::CorrelationStatus);

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.

Suggested change
aod::hf_correlation_d0_hadron::CorrelationStatus);
aod::hf_correlation_d0_hadron::IsAutoCorrelated);

Configurable<float> multMax{"multMax", 10000., "maximum multiplicity accepted"};
Configurable<float> ptSoftPionMax{"ptSoftPionMax", 3 * 800. * pow(10., -6.), "max. pT cut for soft pion identification"};
Configurable<bool> correlateD0WithLeadingParticle{"correlateD0WithLeadingParticle", false, "Switch for correlation of D0 mesons with leading particle only"};
Configurable<bool> setCorrelationState{"setCorrelationState", false, "Set correlation state"};

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.

Suggested change
Configurable<bool> setCorrelationState{"setCorrelationState", false, "Set correlation state"};
Configurable<bool> storeAutoCorrelationFlag{"storeAutoCorrelationFlag", false, "Store flag that indicates if the track is paired to its D-meson mother instead of skipping it"};

bool correlationStatus = false;
if ((candidate1.prong0Id() == track.globalIndex()) || (candidate1.prong1Id() == track.globalIndex())) {
continue;
if (!setCorrelationState) {

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.

Suggested change
if (!setCorrelationState) {
if (!storeAutoCorrelationFlag) {

bool correlationStatus = false;
if ((candidate1.prong0Id() == track.globalIndex()) || (candidate1.prong1Id() == track.globalIndex())) {
continue;
if (!setCorrelationState) {

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.

Suggested change
if (!setCorrelationState) {
if (!storeAutoCorrelationFlag) {

@fgrosa fgrosa enabled auto-merge (squash) May 30, 2024 09:36
@fgrosa fgrosa merged commit d93d6c3 into AliceO2Group:master May 30, 2024
nasirmehdimalik pushed a commit to nasirmehdimalik/O2Physics that referenced this pull request Jun 6, 2024
* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Delete PWGHF/DataModel/correlatorD0Hadrons.cxx

* Add files via upload

* Delete PWGHF/HFC/TableProducer/CorrelationTables.h

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload
GiorgioAlbertoLucia pushed a commit to GiorgioAlbertoLucia/O2Physics that referenced this pull request Jul 9, 2024
* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Delete PWGHF/DataModel/correlatorD0Hadrons.cxx

* Add files via upload

* Delete PWGHF/HFC/TableProducer/CorrelationTables.h

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload
echizzal pushed a commit to echizzal/O2Physics that referenced this pull request Jul 18, 2024
* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Delete PWGHF/DataModel/correlatorD0Hadrons.cxx

* Add files via upload

* Delete PWGHF/HFC/TableProducer/CorrelationTables.h

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload
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.

2 participants