Skip to content

Commit 5d256fa

Browse files
committed
Fix clang-tidy findings in lumi vertex task
1 parent 1a963b5 commit 5d256fa

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

PWGMM/Lumi/Tasks/lumiVertex.cxx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "Common/CCDB/ctpRateFetcher.h"
2020
#include "Common/Core/trackUtilities.h"
2121
#include "Common/DataModel/EventSelection.h"
22-
#include "Common/DataModel/TrackSelectionTables.h"
2322

2423
#include <CCDB/BasicCCDBManager.h>
2524
#include <CommonConstants/LHCConstants.h>
@@ -116,7 +115,7 @@ using UnfilteredTracks = soa::Join<aod::Tracks, aod::TracksCov, aod::TracksExtra
116115
struct LumiVertex {
117116
Produces<o2::aod::EventInfo> rowEventInfo;
118117
Produces<o2::aod::EventInfoBC> rowEventInfoBC;
119-
Service<o2::ccdb::BasicCCDBManager> ccdb;
118+
Service<o2::ccdb::BasicCCDBManager> ccdb{};
120119
const char* ccdbPathGrp = "GLO/Config/GRPMagField";
121120
const char* ccdbPathLut = "GLO/Param/MatLUT";
122121
const char* ccdburl = "http://alice-ccdb.cern.ch";
@@ -280,8 +279,8 @@ struct LumiVertex {
280279

281280
static bool hasFT0ACCoincidence(uint8_t triggerMask)
282281
{
283-
return (triggerMask & (1 << o2::ft0::Triggers::bitA)) &&
284-
(triggerMask & (1 << o2::ft0::Triggers::bitC));
282+
return (triggerMask & (1U << o2::ft0::Triggers::bitA)) != 0U &&
283+
(triggerMask & (1U << o2::ft0::Triggers::bitC)) != 0U;
285284
}
286285

287286
static bool hasAnyFT0Trigger(const std::bitset<64>& ctpInputMask)
@@ -687,7 +686,7 @@ struct LumiVertex {
687686

688687
const uint64_t relativeTimestamp = getRelativeTimestamp(bc);
689688
const uint64_t globalBC = bc.globalBC();
690-
const int32_t localBC = static_cast<int32_t>(globalBC % o2::constants::lhc::LHCMaxBunches);
689+
const auto localBC = static_cast<int32_t>(globalBC % o2::constants::lhc::LHCMaxBunches);
691690
const std::bitset<64> ctpInputMask(bc.inputMask());
692691
const bool hasFT0 = bc.has_ft0();
693692
const uint8_t ft0TriggerMask =

0 commit comments

Comments
 (0)