Skip to content
Closed
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
2 changes: 1 addition & 1 deletion Common/TableProducer/match-mft-mch-data-mc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "GlobalTracking/MatchGlobalFwd.h"
#include "Math/SMatrix.h"
#include "Math/SVector.h"
#include "TLorentzVector.h"

Check failure on line 31 in Common/TableProducer/match-mft-mch-data-mc.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 "TVector2.h"
#include "TDatabasePDG.h"

Expand Down Expand Up @@ -57,7 +57,7 @@
using MyMFT = MyMFTs::iterator;

using SMatrix55 = ROOT::Math::SMatrix<double, 5, 5, ROOT::Math::MatRepSym<double, 5>>;
using SMatrix5 = ROOT::Math::SVector<Double_t, 5>;

Check failure on line 60 in Common/TableProducer/match-mft-mch-data-mc.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.

float mMu = TDatabasePDG::Instance()->GetParticle(13)->Mass();
int mRunNumber;
Expand All @@ -66,8 +66,8 @@
TLorentzVector muon2LV;
TLorentzVector dimuonLV;
*/
unordered_map<int, vector<int64_t>> map_mfttracks;

Check failure on line 69 in Common/TableProducer/match-mft-mch-data-mc.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
unordered_map<int, vector<int64_t>> map_muontracks;

Check failure on line 70 in Common/TableProducer/match-mft-mch-data-mc.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
unordered_map<int, bool> map_collisions;
unordered_map<int, bool> map_has_mfttracks_collisions;
unordered_map<int, bool> map_has_muontracks_collisions;
Expand Down Expand Up @@ -571,7 +571,7 @@
SMatrix55 mftcovs{mftv1.begin(), mftv1.end()};
SMatrix5 mftpars = {mfttrack.x(), mfttrack.y(), mfttrack.phi(), mfttrack.tgl(), mfttrack.signed1Pt()};
o2::track::TrackParCovFwd mftpartrack = {mfttrack.z(), mftpars, mftcovs, mfttrack.chi2()};
double propVec[3] = {fabs(mfttrack.x() - collision.posX()),

Check failure on line 574 in Common/TableProducer/match-mft-mch-data-mc.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
fabs(mfttrack.y() - collision.posY()),
fabs(mfttrack.z() - collision.posZ())};
double centerZ[3] = {mfttrack.x() - propVec[0] / 2.,
Expand Down Expand Up @@ -705,9 +705,9 @@
for (auto const& map_mfttrack : map_mfttracks) {
if (map_mfttrack.first == map_collision.first)
continue;
if (fabs(map_vtxz[map_mfttrack.first] - map_vtxz[map_collision.first]) > fEventMaxDeltaVtxZ)

Check failure on line 708 in Common/TableProducer/match-mft-mch-data-mc.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
continue;
if (fabs(map_nmfttrack[map_mfttrack.first] - map_nmfttrack[map_collision.first]) > fEventMaxDeltaNMFT)

Check failure on line 710 in Common/TableProducer/match-mft-mch-data-mc.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
continue;

for (auto const& imfttrack1 : map_mfttrack.second) {
Expand Down Expand Up @@ -764,8 +764,8 @@
float minimumR = 9999.;
int minimumIndexProbeMFTCand = -1;

unordered_map<int, vector<float>> map_tagMatchingParams;

Check failure on line 767 in Common/TableProducer/match-mft-mch-data-mc.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
unordered_map<int, vector<float>> map_probeMatchingParams;

Check failure on line 768 in Common/TableProducer/match-mft-mch-data-mc.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.

for (auto const& imfttrack1 : map_mfttracks[map_collision.first]) {
auto const& mfttrack1 = mfttracks.rawIteratorAt(imfttrack1);
Expand Down Expand Up @@ -800,7 +800,7 @@
MatchingParamsML<MyMUON, MyMFT, MyCollision> matchingProbe(probemuontrack, mfttrack1, collision, fMatchingMethod, fieldB);
matchingProbe.calcMatchingParams();
if (isPassMatchingPreselection(matchingProbe.getDx(), matchingProbe.getDy())) {
float R = sqrt(matchingProbe.getDx() * matchingProbe.getDx() + matchingProbe.getDy() * matchingProbe.getDy());

Check failure on line 803 in Common/TableProducer/match-mft-mch-data-mc.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
bool isTrue = isCorrectMatching(probemuontrack, mfttrack1);
matchingProbe.calcGlobalMuonParams();
vector<float>& probeMatchingParams = map_probeMatchingParams[nProbeMFTCand];
Expand Down Expand Up @@ -849,4 +849,4 @@
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
return WorkflowSpec{adaptAnalysisTask<match_mft_mch_data_mc>(cfgc)};
}
}
Loading