From 39b3781f4a5f725c94e1d1e9fdb1d0914019e4c2 Mon Sep 17 00:00:00 2001
From: "P.-A. Loizeau" <p.-a.loizeau@gsi.de>
Date: Wed, 13 Jul 2022 16:31:51 +0200
Subject: [PATCH] Add automatic setup choice from runId for Au bench runs in
 unpack macros

---
 macro/run/run_unpack_online.C      | 4 ++++
 macro/run/run_unpack_online_bmon.C | 4 ++++
 macro/run/run_unpack_tsa.C         | 4 ++++
 macro/run/run_unpack_tsa_bmon.C    | 4 ++++
 4 files changed, 16 insertions(+)

diff --git a/macro/run/run_unpack_online.C b/macro/run/run_unpack_online.C
index 79351883ee..e3ef0f8a44 100644
--- a/macro/run/run_unpack_online.C
+++ b/macro/run/run_unpack_online.C
@@ -91,6 +91,10 @@ void run_unpack_online(std::vector<std::string> publisher = {"tcp://localhost:55
       /// Nickel runs: 2350 - 2397 = 23/05/2022 - 25/05/2022
       setupName = "mcbm_beam_2022_05_23_nickel";
     }
+    else if (2454 <= runid && runid <= 2497) {
+      /// Lambda Benchmark Gold runs: 2454 - 2497 = 16/06/2022 - 18/06/2022
+      setupName = "mcbm_beam_2022_06_16_gold";
+    }
     if (defaultSetupName != setupName) {
       std::cout << "Automatic setup choice for run " << runid << ": " << setupName << std::endl;
     }
diff --git a/macro/run/run_unpack_online_bmon.C b/macro/run/run_unpack_online_bmon.C
index f9c4d3ba6a..00c6ef3916 100644
--- a/macro/run/run_unpack_online_bmon.C
+++ b/macro/run/run_unpack_online_bmon.C
@@ -83,6 +83,10 @@ void run_unpack_online_bmon(std::vector<std::string> publisher = {"tcp://localho
       /// Nickel runs: 2350 - 2397 = 23/05/2022 - 25/05/2022
       setupName = "mcbm_beam_2022_05_23_nickel";
     }
+    else if (2454 <= runid && runid <= 2497) {
+      /// Lambda Benchmark Gold runs: 2454 - 2497 = 16/06/2022 - 18/06/2022
+      setupName = "mcbm_beam_2022_06_16_gold";
+    }
     if (defaultSetupName != setupName) {
       std::cout << "Automatic setup choice for run " << runid << ": " << setupName << std::endl;
     }
diff --git a/macro/run/run_unpack_tsa.C b/macro/run/run_unpack_tsa.C
index fdc2f83e59..c59c3c6813 100644
--- a/macro/run/run_unpack_tsa.C
+++ b/macro/run/run_unpack_tsa.C
@@ -109,6 +109,10 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid
       /// Nickel runs: 2350 - 2397 = 23/05/2022 - 25/05/2022
       setupName = "mcbm_beam_2022_05_23_nickel";
     }
+    else if (2454 <= runid && runid <= 2497) {
+      /// Lambda Benchmark Gold runs: 2454 - 2497 = 16/06/2022 - 18/06/2022
+      setupName = "mcbm_beam_2022_06_16_gold";
+    }
     if (defaultSetupName != setupName) {
       std::cout << "Automatic setup choice for run " << runid << ": " << setupName << std::endl;
     }
diff --git a/macro/run/run_unpack_tsa_bmon.C b/macro/run/run_unpack_tsa_bmon.C
index 177ff96add..aac144c4e7 100644
--- a/macro/run/run_unpack_tsa_bmon.C
+++ b/macro/run/run_unpack_tsa_bmon.C
@@ -96,6 +96,10 @@ void run_unpack_tsa_bmon(std::vector<std::string> infile = {"test.tsa"}, UInt_t
       /// Nickel runs: 2350 - 2397 = 23/05/2022 - 25/05/2022
       setupName = "mcbm_beam_2022_05_23_nickel";
     }
+    else if (2454 <= runid && runid <= 2497) {
+      /// Lambda Benchmark Gold runs: 2454 - 2497 = 16/06/2022 - 18/06/2022
+      setupName = "mcbm_beam_2022_06_16_gold";
+    }
     if (defaultSetupName != setupName) {
       std::cout << "Automatic setup choice for run " << runid << ": " << setupName << std::endl;
     }
-- 
GitLab