From f1878daf3144fe64d655a192ad870ac3c48c99f2 Mon Sep 17 00:00:00 2001 From: Daniel Wielanek Date: Tue, 7 Jan 2025 20:56:10 +0100 Subject: [PATCH] Small corrections in cut templates and description of math method. --- features/hal_plus/templates/EventCutTemplate.cxx | 2 +- features/hal_plus/templates/EventCutTemplate.h | 2 +- features/hal_plus/templates/TrackCutTemplate.cxx | 2 +- features/hal_plus/templates/TrackCutTemplate.h | 2 +- features/hal_plus/templates/TwoTrackCutTemplate.cxx | 2 +- features/hal_plus/templates/TwoTrackCutTemplate.h | 2 +- features/std/StdMath.h | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/features/hal_plus/templates/EventCutTemplate.cxx b/features/hal_plus/templates/EventCutTemplate.cxx index b94bd4a0..1d79aa25 100644 --- a/features/hal_plus/templates/EventCutTemplate.cxx +++ b/features/hal_plus/templates/EventCutTemplate.cxx @@ -24,7 +24,7 @@ namespace MyHal { * @param taskID * @return */ - Int_t EventCutTemplate::Init(Int_t taskID) { + Bool_t EventCutTemplate::Init(Int_t taskID) { Hal::DataFormatManager* mngr = Hal::DataFormatManager::Instance(); const Hal::Event* event = mngr->GetFormat(taskID, Hal::EFormatDepth::kNonBuffered); if (dynamic_cast(event)) return kTRUE; diff --git a/features/hal_plus/templates/EventCutTemplate.h b/features/hal_plus/templates/EventCutTemplate.h index fd2ddc6a..df42fc97 100644 --- a/features/hal_plus/templates/EventCutTemplate.h +++ b/features/hal_plus/templates/EventCutTemplate.h @@ -11,7 +11,7 @@ namespace MyHal { class EventCutTemplate : public Hal::EventCut { public: EventCutTemplate(); - Int_t Init(Int_t taskID); + Bool_t Init(Int_t taskID); Bool_t Pass(Hal::Event* pair); Hal::Package* Report() const; virtual ~EventCutTemplate(); diff --git a/features/hal_plus/templates/TrackCutTemplate.cxx b/features/hal_plus/templates/TrackCutTemplate.cxx index 18485a46..ecdfb352 100644 --- a/features/hal_plus/templates/TrackCutTemplate.cxx +++ b/features/hal_plus/templates/TrackCutTemplate.cxx @@ -23,7 +23,7 @@ namespace MyHal { * @param taskID * @return */ - Int_t TrackCutTemplate::Init(Int_t taskID) { + Bool_t TrackCutTemplate::Init(Int_t taskID) { Hal::DataFormatManager* mngr = Hal::DataFormatManager::Instance(); const Hal::Event* event = mngr->GetFormat(taskID, Hal::EFormatDepth::kNonBuffered); if (dynamic_cast(event)) return kTRUE; diff --git a/features/hal_plus/templates/TrackCutTemplate.h b/features/hal_plus/templates/TrackCutTemplate.h index 842967ae..2e650651 100644 --- a/features/hal_plus/templates/TrackCutTemplate.h +++ b/features/hal_plus/templates/TrackCutTemplate.h @@ -11,7 +11,7 @@ namespace MyHal { class TrackCutTemplate : public Hal::TrackCut { public: TrackCutTemplate(); - Int_t Init(Int_t taskID); + Bool_t Init(Int_t taskID); Bool_t Pass(Hal::Track* pair); Hal::Package* Report() const; virtual ~TrackCutTemplate(); diff --git a/features/hal_plus/templates/TwoTrackCutTemplate.cxx b/features/hal_plus/templates/TwoTrackCutTemplate.cxx index 6e758e15..89d12a9e 100644 --- a/features/hal_plus/templates/TwoTrackCutTemplate.cxx +++ b/features/hal_plus/templates/TwoTrackCutTemplate.cxx @@ -25,7 +25,7 @@ namespace MyHal { * @param taskID * @return */ - Int_t TwoTrackCutTemplate::Init(Int_t taskID) { + Bool_t TwoTrackCutTemplate::Init(Int_t taskID) { Hal::DataFormatManager* mngr = Hal::DataFormatManager::Instance(); const Hal::Event* event = mngr->GetFormat(taskID, Hal::EFormatDepth::kNonBuffered); if (dynamic_cast(event)) return kTRUE; diff --git a/features/hal_plus/templates/TwoTrackCutTemplate.h b/features/hal_plus/templates/TwoTrackCutTemplate.h index 304da600..d337101e 100644 --- a/features/hal_plus/templates/TwoTrackCutTemplate.h +++ b/features/hal_plus/templates/TwoTrackCutTemplate.h @@ -11,7 +11,7 @@ namespace MyHal { class TwoTrackCutTemplate : public Hal::TwoTrackCut { public: TwoTrackCutTemplate(); - Int_t Init(Int_t taskID); + Bool_t Init(Int_t taskID); Bool_t Pass(Hal::TwoTrack* pair); Hal::Package* Report() const; virtual ~TwoTrackCutTemplate() {}; diff --git a/features/std/StdMath.h b/features/std/StdMath.h index 45daf34a..1d4fb4ae 100644 --- a/features/std/StdMath.h +++ b/features/std/StdMath.h @@ -133,7 +133,7 @@ namespace Hal { * NOTE: sometimes this algo fails to invert matrices, in such case prints warnings * @param x * @param y - * @return polynomial fitted to n-points p[0] is linear term + * @return polynomial fitted to n-points p[0] is const term */ std::vector LagrangeInterpol(const std::vector& x, const std::vector& y); } // namespace Std