Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1256,9 +1256,9 @@ struct HResonanceCorrelationFilter {
}

LorentzVectorPtEtaPhiMass kaon = LorentzVectorPtEtaPhiMass(kaonTrack.pt(), kaonTrack.eta(), kaonTrack.phi(),
o2::constants::physics::MassKPlus);
o2::constants::physics::MassKPlus);
LorentzVectorPtEtaPhiMass pion = LorentzVectorPtEtaPhiMass(pionTrack.pt(), pionTrack.eta(), pionTrack.phi(),
o2::constants::physics::MassPiPlus);
o2::constants::physics::MassPiPlus);
LorentzVectorPtEtaPhiMass kstar = kaon + pion;

float invMass = kstar.M();
Expand Down
20 changes: 10 additions & 10 deletions PWGLF/Tasks/Resonances/hResonanceCorrelation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ struct HResonanceCorrelation {
c.isRightBg = (massWindowConfigurationsPhi.minBgNSigma * sig < delta && delta < massWindowConfigurationsPhi.maxBgNSigma * sig);

c.passesMcSelection = (!masterConfigurations.doMCassociation || assocCandidate.mcTruePhi()) &&
(!doAssocPhysicalPrimary || assocCandidate.mcPhysicalPrimary());
(!doAssocPhysicalPrimary || assocCandidate.mcPhysicalPrimary());

// Candidate-level kinematic/spectrum QA, ported from the equivalent
// block in hStrangeCorrelation.cxx (h3d<Species>Spectrum[Y],
Expand Down Expand Up @@ -1714,7 +1714,7 @@ struct HResonanceCorrelation {
c.isRightBg = (massWindowConfigurationsKstar.minBgNSigma * sig < delta && delta < massWindowConfigurationsKstar.maxBgNSigma * sig);

c.passesMcSelection = (!masterConfigurations.doMCassociation || assocCandidate.mcTrueKstar()) &&
(!doAssocPhysicalPrimary || assocCandidate.mcPhysicalPrimary());
(!doAssocPhysicalPrimary || assocCandidate.mcPhysicalPrimary());

// Same candidate-level Spectrum/EtaVsPtVsPhi QA as fillCorrelationsPhi
// above -- see the comment there for rationale.
Expand Down Expand Up @@ -2719,7 +2719,7 @@ struct HResonanceCorrelation {
std::vector<uint32_t> piIndices;
std::vector<uint32_t> phiIndices;
std::vector<uint32_t> kstarIndices; // intentionally left unpopulated: Kstar0 is not
// extended to this process function in this version
// extended to this process function in this version

for (auto const& mcParticle : mcParticles) {
double geta = mcParticle.eta();
Expand Down Expand Up @@ -2832,9 +2832,9 @@ struct HResonanceCorrelation {
}
}

associatedIndices.emplace_back(phiIndices); // IndexPhi = 0
associatedIndices.emplace_back(kstarIndices); // IndexKstar = 1 (always empty here)
associatedIndices.emplace_back(piIndices); // IndexPion = 2
associatedIndices.emplace_back(phiIndices); // IndexPhi = 0
associatedIndices.emplace_back(kstarIndices); // IndexKstar = 1 (always empty here)
associatedIndices.emplace_back(piIndices); // IndexPion = 2
associatedIndices.emplace_back(assocHadronIndices); // Hadron = 3

for (std::size_t iTrigger = 0; iTrigger < triggerIndices.size(); iTrigger++) {
Expand Down Expand Up @@ -2916,7 +2916,7 @@ struct HResonanceCorrelation {
std::vector<uint32_t> piIndices;
std::vector<uint32_t> phiIndices;
std::vector<uint32_t> kstarIndices; // intentionally left unpopulated: Kstar0 is not
// extended to this process function in this version
// extended to this process function in this version
float centMultFT0M = -1;
float centMultFT0A = -1;
float centMultFT0C = -1;
Expand Down Expand Up @@ -3000,9 +3000,9 @@ struct HResonanceCorrelation {
}
}

associatedIndices.emplace_back(phiIndices); // IndexPhi = 0
associatedIndices.emplace_back(kstarIndices); // IndexKstar = 1 (always empty here)
associatedIndices.emplace_back(piIndices); // IndexPion = 2
associatedIndices.emplace_back(phiIndices); // IndexPhi = 0
associatedIndices.emplace_back(kstarIndices); // IndexKstar = 1 (always empty here)
associatedIndices.emplace_back(piIndices); // IndexPion = 2
associatedIndices.emplace_back(assocHadronIndices); // Hadron = 3
for (std::size_t iTrigger = 0; iTrigger < triggerIndices.size(); iTrigger++) {
auto triggerParticle = mcParticles.iteratorAt(triggerIndices[iTrigger]);
Expand Down
Loading