Skip to content

[PWGLF] Table producer for photonDe correlation study#15509

Draft
arvindkhuntia wants to merge 8 commits intoAliceO2Group:masterfrom
arvindkhuntia:master
Draft

[PWGLF] Table producer for photonDe correlation study#15509
arvindkhuntia wants to merge 8 commits intoAliceO2Group:masterfrom
arvindkhuntia:master

Conversation

@arvindkhuntia
Copy link
Contributor

No description provided.

Please consider the following formatting changes to AliceO2Group#15509
@maciacco maciacco marked this pull request as draft March 24, 2026 18:22
@alibuild
Copy link
Collaborator

Error while checking build/O2Physics/o2 for 9dd013d at 2026-03-24 20:10:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/15509-slc9_x86-64/0/PWGLF/TableProducer/Nuspex/photonDeuteron.cxx:20:10: fatal error: Common/DataModel/PIDResponse.h: No such file or directory
ninja: build stopped: subcommand failed.

Full log here.

@vkucera
Copy link
Collaborator

vkucera commented Mar 24, 2026

@arvindkhuntia How did you test your changes? They don't compile.

#include "Framework/HistogramRegistry.h"
#include "Framework/runDataProcessing.h"

#include <TLorentzVector.h>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Useless

#include <TLorentzVector.h>
#include <TVector3.h>

#include <iostream>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Forbidden

using namespace o2::framework;
using namespace o2::framework::expressions;

struct PhotonDeuteronCorrelation {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is it different from the file name?

Comment on lines +117 to +118
o2physics_add_dpl_workflow(photon-deuteron-corr
SOURCES photonDeuteron.cxx
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do these names consist of different words?

Comment on lines +62 to +65
// Particle masses (in GeV/c²)
static constexpr float massProton = o2::constants::physics::MassProton;
static constexpr float massNeutron = o2::constants::physics::MassNeutron;
static constexpr float massDeuteron = o2::constants::physics::MassDeuteron;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Useless. Do not hide the use of common constants.

Comment on lines +179 to +189
float getDeltaPhi(float phi1, float phi2)
{
float dphi = phi1 - phi2;
if (dphi > 1.5 * M_PI) {
dphi -= 2.0 * M_PI;
}
if (dphi < -0.5 * M_PI) {
dphi += 2.0 * M_PI;
}
return dphi;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are you reinventing the wheel?

Comment on lines +294 to +299
TLorentzVector photonVec, deuteronVec;
photonVec.SetPtEtaPhiM(photon.pt(), photon.eta(), photon.phi(), 0.0); // Photon-mass = 0
deuteronVec.SetPtEtaPhiM(deuteron.pt(), deuteron.eta(), deuteron.phi(), massDeuteron); // Deuteron-mass

TLorentzVector combinedVec = photonVec + deuteronVec;
float invMass = combinedVec.M();
Copy link
Collaborator

Choose a reason for hiding this comment

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

You don't need TLorentzVector for these simple calculations. Use RecoDecay methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants