Skip to content

Commit b2ea09f

Browse files
committed
Fix linter warnings
1 parent 8ca985e commit b2ea09f

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

PWGUD/TableProducer/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ o2physics_add_dpl_workflow(tau-three-prong-event-table-producer
6161
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
6262
COMPONENT_NAME Analysis)
6363

64-
o2physics_add_dpl_workflow(upccand-producer-muon
65-
SOURCES upccandProducerMuon.cxx
64+
o2physics_add_dpl_workflow(upc-cand-producer-muon
65+
SOURCES UpcCandProducerMuon.cxx
6666
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::UPCCutparHolder O2::GlobalTracking
6767
COMPONENT_NAME Analysis)

PWGUD/TableProducer/upccandProducerMuon.cxx renamed to PWGUD/TableProducer/UpcCandProducerMuon.cxx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12+
/// \file UpcCandProducerMuon.cxx
13+
/// \brief UPC candidate producer for forward muons without MFT
14+
/// \author Nazar Burmasov, nazar.burmasov@cern.ch
15+
/// \since 19.12.2025
16+
1217
#include "PWGUD/Core/UPCCutparHolder.h"
1318
#include "PWGUD/Core/UPCHelpers.h"
1419
#include "PWGUD/DataModel/UDTables.h"
@@ -89,7 +94,7 @@ struct UpcCandProducerMuon {
8994

9095
bool cut(const o2::dataformats::GlobalFwdTrack& pft, const ForwardTracks::iterator& fwdTrack)
9196
{
92-
constexpr double absorberMid = 26.5;
97+
constexpr double AbsorberMid = 26.5;
9398
histRegistry.fill(HIST("MuonsSelCounter"), upchelpers::kFwdSelAll, 1);
9499
auto pt = pft.getPt();
95100
auto eta = pft.getEta();
@@ -99,7 +104,7 @@ struct UpcCandProducerMuon {
99104
bool passPt = pt > fUpcCuts.getFwdPtLow() && pt < fUpcCuts.getFwdPtHigh();
100105
bool passEta = eta > fUpcCuts.getFwdEtaLow() && eta < fUpcCuts.getFwdEtaHigh();
101106
bool passRabs = rabs > fUpcCuts.getMuonRAtAbsorberEndLow() && rabs < fUpcCuts.getMuonRAtAbsorberEndHigh();
102-
bool passPDca = rabs < absorberMid ? pdca < fUpcCuts.getMuonPDcaHighFirst() : pdca < fUpcCuts.getMuonPDcaHighSecond();
107+
bool passPDca = rabs < AbsorberMid ? pdca < fUpcCuts.getMuonPDcaHighFirst() : pdca < fUpcCuts.getMuonPDcaHighSecond();
103108
bool passChi2 = chi2 > fUpcCuts.getFwdChi2Low() && chi2 < fUpcCuts.getFwdChi2High();
104109
if (passPt)
105110
histRegistry.fill(HIST("MuonsSelCounter"), upchelpers::kFwdSelPt, 1);
@@ -389,19 +394,19 @@ struct UpcCandProducerMuon {
389394
}
390395

391396
std::map<uint64_t, int64_t> mapGlobalBcWithV0A{};
392-
constexpr float fv0ValidTime = 15.f;
397+
constexpr float FV0ValidTime = 15.f;
393398
for (const auto& fv0 : fv0s) {
394-
if (std::abs(fv0.time()) > fv0ValidTime)
399+
if (std::abs(fv0.time()) > FV0ValidTime)
395400
continue;
396401
uint64_t globalBC = vGlobalBCs[fv0.bcId()];
397402
mapGlobalBcWithV0A[globalBC] = fv0.globalIndex();
398403
}
399404
auto nFV0s = mapGlobalBcWithV0A.size();
400405

401406
std::map<uint64_t, int64_t> mapGlobalBcWithZdc{};
402-
constexpr float zdcValidTime = 2.f;
407+
constexpr float ZDCValidTime = 2.f;
403408
for (const auto& zdc : zdcs) {
404-
if (std::abs(zdc.timeZNA()) > zdcValidTime && std::abs(zdc.timeZNC()) > zdcValidTime)
409+
if (std::abs(zdc.timeZNA()) > ZDCValidTime && std::abs(zdc.timeZNC()) > ZDCValidTime)
405410
continue;
406411
uint64_t globalBC = vGlobalBCs[zdc.bcId()];
407412
mapGlobalBcWithZdc[globalBC] = zdc.globalIndex();

PWGUD/TableProducer/fwdTrackPropagation.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ struct FwdTrackPropagation {
114114
propFwdTracks.reserve(fwdTracks.size());
115115
propFwdTracksCov.reserve(fwdTracks.size());
116116

117-
constexpr float zAbsorberFront = -90.f;
117+
constexpr float ZAbsorberFront = -90.f;
118118
for (const auto& t : fwdTracks) {
119-
if (t.z() < zAbsorberFront) {
119+
if (t.z() < ZAbsorberFront) {
120120
std::array<float, 3> vtx = {0.f, 0.f, 0.f};
121121
std::array<float, 2> vtxCov = {0.f, 0.f};
122122
if (t.has_collision() && t.trackType() < ForwardTrackTypeEnum::GlobalForwardTrack) { // propagate only global muon tracks to collision vtx

0 commit comments

Comments
 (0)