Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wiechula committed Jan 16, 2024
1 parent 2af2d97 commit 5a44644
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion DataFormats/Detectors/TPC/include/DataFormatsTPC/IDC.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ struct Data {

uint32_t getLinkValue(const uint32_t link) const
{
const auto valPtr = dataWords;
const uint32_t offset = link * IDCvalueBits;
const uint32_t selectedWord = offset / 8;
const uint32_t requiredShift = offset % 8;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class LaserTrack : public o2::track::TrackPar
static constexpr std::array<float, 4> CoarseBundleZPos{243.5, 165.5, 82, 11.5}; ///< coarse z-position of the laser bundles

LaserTrack() = default;
LaserTrack(int id, float x, float alpha, const std::array<float, o2::track::kNParams>& par) : mID(id), o2::track::TrackPar(x, alpha, par) { ; }
LaserTrack(int id, float x, float alpha, const std::array<float, o2::track::kNParams>& par) : o2::track::TrackPar(x, alpha, par), mID(id) {}
LaserTrack(LaserTrack const&) = default;

/// set laser track ID
Expand Down
6 changes: 3 additions & 3 deletions DataFormats/Detectors/TPC/src/ClusterNativeHelper.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ std::unique_ptr<ClusterNativeAccess> ClusterNativeHelper::createClusterNativeInd
{
std::unique_ptr<ClusterNativeAccess> retVal(new ClusterNativeAccess);
memset(retVal.get(), 0, sizeof(*retVal));
for (int i = 0; i < clusters.size(); i++) {
for (size_t i = 0; i < clusters.size(); i++) {
if (retVal->nClusters[clusters[i].sector][clusters[i].globalPadRow]) {
LOG(error) << "Received two containers for the same sector / row";
return std::unique_ptr<ClusterNativeAccess>();
Expand All @@ -77,7 +77,7 @@ std::unique_ptr<ClusterNativeAccess> ClusterNativeHelper::createClusterNativeInd
}
retVal->clustersLinear = buffer.get();
retVal->setOffsetPtrs();
for (int i = 0; i < clusters.size(); i++) {
for (size_t i = 0; i < clusters.size(); i++) {
memcpy(&buffer[retVal->clusterOffset[clusters[i].sector][clusters[i].globalPadRow]], clusters[i].clusters.data(), sizeof(*retVal->clustersLinear) * clusters[i].clusters.size());
if (mcTruth) {
for (unsigned int j = 0; j < clusters[i].clusters.size(); j++) {
Expand All @@ -87,7 +87,7 @@ std::unique_ptr<ClusterNativeAccess> ClusterNativeHelper::createClusterNativeInd
}
}
}
return (std::move(retVal));
return retVal;
}

ClusterNativeHelper::Reader::~Reader()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
namespace o2::tpc
{

class LaserTracksCalibrator : public o2::calibration::TimeSlotCalibration<CalibLaserTracks>
class LaserTracksCalibrator final : public o2::calibration::TimeSlotCalibration<CalibLaserTracks>
{
using TFType = o2::calibration::TFType;
using Slot = o2::calibration::TimeSlot<o2::tpc::CalibLaserTracks>;
Expand Down

0 comments on commit 5a44644

Please sign in to comment.