Skip to content
Merged
Show file tree
Hide file tree
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
50 changes: 50 additions & 0 deletions r3bdata/.clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# vi: ft=yaml
Checks: >
-*,
bugprone-*,
cert-dcl21-cpp,
cert-dcl50-cpp,
cert-env33-c,
cert-err34-c,
cert-err52-cpp,
cert-err60-cpp,
cert-flp30-c,
cert-msc50-cpp,
cert-msc51-cpp,
clang-analyzer-*,
cppcoreguidelines-*,
-cppcoreguidelines-pro-type-reinterpret-cast,
google-build-using-namespace,
google-explicit-constructor,
google-global-names-in-headers,
google-readability-casting,
google-runtime-int,
google-runtime-operator,
hicpp-*,
-hicpp-vararg,
misc-*,
modernize-*,
performance-*,
readability-*,
-hicpp-new-delete-operators,
-modernize-use-trailing-return-type

CheckOptions:
- key: bugprone-argument-comment.StrictMode
value: 1
- key: bugprone-easily-swappable-parameters.MinimumLength
value: 4
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: 1
- key: readability-identifier-length.IgnoredVariableNames
value: '^it$'
- key: readability-magic-numbers.IgnoreAllFloatingPointValues
value: 'true'
- key: cppcoreguidelines-avoid-magic-numbers.IgnoreAllFloatingPointValues
value: 'true'
- key: readability-function-cognitive-complexity.Threshold
value: 40
- key: readability-function-cognitive-complexity.IgnoreMacros
value: 'true'

FormatStyle: 'file'
26 changes: 13 additions & 13 deletions r3bdata/actafData/R3BActafMappedData.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/******************************************************************************
* Copyright (C) 2025 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
* Copyright (C) 2025 Members of R3B Collaboration *
* Copyright (C) 2025-2026 Members of R3B Collaboration *
* *
* This software is distributed under the terms of the *
* GNU General Public Licence (GPL) version 3, *
Expand Down Expand Up @@ -71,18 +71,18 @@ class R3BActafMappedData : public TObject

virtual ~R3BActafMappedData() = default;

[[nodiscard]] inline UInt_t GetPad() const { return fPad; }
[[nodiscard]] inline const std::array<double, ACTAF_BINS>& GetTrace() const { return fTrace; }
[[nodiscard]] inline double GetE() const { return fE; }
[[nodiscard]] inline double GetBaseline() const { return fBaseline; }
[[nodiscard]] inline double GetRisetime() const { return fRisetime; }
[[nodiscard]] inline int GetMaxpos() const { return fMaxpos; }
[[nodiscard]] inline double GetMaxampl() const { return fMaxamplitude; }
[[nodiscard]] inline double GetLeadingEdgeTime() const { return fLeadingEdge10; }
[[nodiscard]] inline double GetRms() const { return fRms; }
[[nodiscard]] inline int GetTimeTag() const { return fTimeTag; }
[[nodiscard]] inline int GetDetMask() const { return fDetMask; }
[[nodiscard]] inline double GetMaw() const { return fMaw; }
[[nodiscard]] UInt_t GetPad() const { return fPad; }
[[nodiscard]] const std::array<double, ACTAF_BINS>& GetTrace() const { return fTrace; }
[[nodiscard]] double GetE() const { return fE; }
[[nodiscard]] double GetBaseline() const { return fBaseline; }
[[nodiscard]] double GetRisetime() const { return fRisetime; }
[[nodiscard]] int GetMaxpos() const { return fMaxpos; }
[[nodiscard]] double GetMaxampl() const { return fMaxamplitude; }
[[nodiscard]] double GetLeadingEdgeTime() const { return fLeadingEdge10; }
[[nodiscard]] double GetRms() const { return fRms; }
[[nodiscard]] int GetTimeTag() const { return fTimeTag; }
[[nodiscard]] int GetDetMask() const { return fDetMask; }
[[nodiscard]] double GetMaw() const { return fMaw; }

[[nodiscard]] std::string toString() const;
void Print(const Option_t*) const override;
Expand Down
Loading