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
11 changes: 6 additions & 5 deletions PWGUD/Tasks/fwdMuonsUPC.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check warning on line 1 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand Down Expand Up @@ -164,7 +164,7 @@
const float kEtaMax = -2.5;
const float kPtMin = 0.;

struct fwdMuonsUPC {

Check warning on line 167 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/struct]

Use UpperCamelCase for names of structs.

// a pdg object
Service<o2::framework::O2DatabasePDG> pdg;
Expand Down Expand Up @@ -642,7 +642,7 @@
{

// check that all pairs are mu+mu-
if (std::abs(McPart1.pdgCode()) !=13 && std::abs(McPart2.pdgCode()) != 13)
if (std::abs(McPart1.pdgCode()) != 13 && std::abs(McPart2.pdgCode()) != 13)
LOGF(info, "PDG codes: %d | %d", McPart1.pdgCode(), McPart2.pdgCode());

// create Lorentz vectors
Expand Down Expand Up @@ -711,7 +711,7 @@
{

// check that all pairs are mu+mu-
if (std::abs(McPart1.pdgCode()) !=13 && std::abs(McPart2.pdgCode()) != 13)
if (std::abs(McPart1.pdgCode()) != 13 && std::abs(McPart2.pdgCode()) != 13)
LOGF(info, "PDG codes: %d | %d", McPart1.pdgCode(), McPart2.pdgCode());

// V0 selection
Expand Down Expand Up @@ -930,7 +930,7 @@
// loop over the candidates
for (const auto& item : tracksPerCandAll) {
if (item.second.size() != 4) {
LOGF(info, "number track (reco + gen) = %d",item.second.size());
LOGF(info, "number track (reco + gen) = %d", item.second.size());
continue;
}

Expand All @@ -945,10 +945,11 @@

// check that the method used here gets the the MC particles
// as the one used by Nazar
auto nz_trMc1 = McParts.iteratorAt(tr1.udMcParticleId());

Check warning on line 948 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
auto nz_trMc2 = McParts.iteratorAt(tr2.udMcParticleId());

Check warning on line 949 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.

if(nz_trMc1 != trMc1) LOGF(info, "diff wrt Nazar!");

if (nz_trMc1 != trMc1)
LOGF(info, "diff wrt Nazar!");
processMcRecoCand(cand, tr1, trMc1, tr2, trMc2);
}
}
Expand Down
Loading