From 2d78ca898fe640e5344be9f1886c840899fe5d91 Mon Sep 17 00:00:00 2001 From: Radoslaw Karabowicz Date: Tue, 10 Jun 2025 15:43:11 +0200 Subject: [PATCH 1/2] fix(sim): Add GetSaveCurrentEvent() to FairMCApplication Allows the user to get the state of the fSaveCurrentEvent flag. Fixes issue #1604. --- fairroot/base/sim/FairMCApplication.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fairroot/base/sim/FairMCApplication.h b/fairroot/base/sim/FairMCApplication.h index 3d558e6fa6..94883eab35 100644 --- a/fairroot/base/sim/FairMCApplication.h +++ b/fairroot/base/sim/FairMCApplication.h @@ -1,5 +1,5 @@ /******************************************************************************** - * Copyright (C) 2014-2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH * + * Copyright (C) 2014-2025 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH * * * * This software is distributed under the terms of the * * GNU Lesser General Public Licence (LGPL) version 3, * @@ -219,6 +219,12 @@ class FairMCApplication : public TVirtualMCApplication */ void SetSaveCurrentEvent(Bool_t set) { fSaveCurrentEvent = set; } + /** + * Returns the state of the flag deciding whether the current event + * is goint to be stored. + */ + bool GetSaveCurrentEvent() { return fSaveCurrentEvent; } + /** * Get the current application state. */ From 7dae0b8af78d3072c392ea8663207ded39c50ff7 Mon Sep 17 00:00:00 2001 From: Radoslaw Karabowicz Date: Fri, 13 Jun 2025 11:37:54 +0200 Subject: [PATCH 2/2] fix(steer): Add GetMarkFill() to FairRun Allows the user to get the state of the fMarkFill flag. Fixes issue #1604. --- fairroot/base/steer/FairRun.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fairroot/base/steer/FairRun.h b/fairroot/base/steer/FairRun.h index cc945caa1a..6acd695b9a 100644 --- a/fairroot/base/steer/FairRun.h +++ b/fairroot/base/steer/FairRun.h @@ -1,5 +1,5 @@ /******************************************************************************** - * Copyright (C) 2014-2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH * + * Copyright (C) 2014-2025 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH * * * * This software is distributed under the terms of the * * GNU Lesser General Public Licence (LGPL) version 3, * @@ -154,6 +154,9 @@ class FairRun : public TNamed //** Mark/Unmark event to be filled into output. Default is TRUE. */ void MarkFill(Bool_t flag) { fMarkFill = flag; } + //** Get the state of the flag deciding whether the current event is goint to be stored. */ + bool GetMarkFill() { return fMarkFill; } + //** Get option string */ TString GetOptions() { return fOptions; };