Skip to content
Merged
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
18 changes: 9 additions & 9 deletions PWGLF/Tasks/Resonances/heptaquark.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
/// \author junlee kim

#include <Framework/Configurable.h>
#include <TLorentzVector.h>

Check failure on line 16 in PWGLF/Tasks/Resonances/heptaquark.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
#include <Math/GenVector/Boost.h>
#include <Math/Vector4D.h>
#include <Math/Vector3D.h>
#include <TMath.h>
#include <TRandom3.h>
#include <fairlogger/Logger.h>
#include <iostream>

Check failure on line 23 in PWGLF/Tasks/Resonances/heptaquark.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[include-iostream]

Do not include iostream. Use O2 logging instead.
#include <iterator>
#include <string>
#include <vector>
Expand Down Expand Up @@ -202,33 +202,33 @@
double cosHel = hqlambda_boost.Vect().Dot(hqphipair_boost.Vect()) / (hqlambda_boost.Vect().Mag() * hqphipair_boost.Vect().Mag());
if (std::abs(cosHel) > cfgCollinear)
selection += 4;
/*
ROOT::Math::XYZVector rPV(col.posX(), col.posY(), col.posZ());
ROOT::Math::XYZVector rSV(hq3.hqx(), hq3.hqy(), hq3.hqz());
ROOT::Math::XYZVector L = rSV - rPV;
ROOT::Math::XYZVector exMom(ex.Px(), ex.Py(), ex.Pz());
double cosPoint = L.Dot(exMom) / (L.R() * pEx.R() + 1e-9);
if (cosPoint < cfgCosPoint)
return 8;
*/
/*
ROOT::Math::XYZVector rPV(col.posX(), col.posY(), col.posZ());
ROOT::Math::XYZVector rSV(hq3.hqx(), hq3.hqy(), hq3.hqz());
ROOT::Math::XYZVector L = rSV - rPV;
ROOT::Math::XYZVector exMom(ex.Px(), ex.Py(), ex.Pz());
double cosPoint = L.Dot(exMom) / (L.R() * pEx.R() + 1e-9);
if (cosPoint < cfgCosPoint)
return 8;
*/
return selection;
}

ROOT::Math::PxPyPzMVector DauVec1, DauVec2;

TLorentzVector exotic, HQ1, HQ2, HQ3;

Check failure on line 219 in PWGLF/Tasks/Resonances/heptaquark.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
TLorentzVector exoticRot2, HQ2Rot;

Check failure on line 220 in PWGLF/Tasks/Resonances/heptaquark.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
TLorentzVector exoticRot3, HQ3Rot;

Check failure on line 221 in PWGLF/Tasks/Resonances/heptaquark.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
TLorentzVector exoticRot23;

Check failure on line 222 in PWGLF/Tasks/Resonances/heptaquark.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
TLorentzVector HQ12, HQ13;

Check failure on line 223 in PWGLF/Tasks/Resonances/heptaquark.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
TLorentzVector HQ12Rot, HQ13Rot;

Check failure on line 224 in PWGLF/Tasks/Resonances/heptaquark.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.

void processSameEvent(aod::RedHQEvents::iterator const& collision, aod::HQTracks const& hqtracks)
{
if (collision.numLambda() < 1 || collision.numPhi() < 2)
return;

for (auto hqtrackd1 : hqtracks) {

Check failure on line 231 in PWGLF/Tasks/Resonances/heptaquark.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
if (hqtrackd1.hqId() != 333)
continue;

Expand Down Expand Up @@ -256,7 +256,7 @@
auto hqd1id = hqtrackd1.index();
histos.fill(HIST("hPhid1Mass"), HQ1.M(), HQ1.Pt());

for (auto hqtrackd2 : hqtracks) {

Check failure on line 259 in PWGLF/Tasks/Resonances/heptaquark.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
auto hqd2id = hqtrackd2.index();
if (hqd2id <= hqd1id)
continue;
Expand Down
Loading