From bd92c25b975689e8f2ba9b6cc1939df4eae963ea Mon Sep 17 00:00:00 2001 From: mmusich Date: Sun, 18 Aug 2024 15:29:09 +0200 Subject: [PATCH] add unit tests for L1TMuonGlobalParams_PayloadInspector --- CondCore/L1TPlugins/test/BuildFile.xml | 1 + .../test/testL1TObjectsPayloadInspector.cpp | 8 +++++++- CondCore/L1TPlugins/test/testL1TPI.sh | 12 ++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CondCore/L1TPlugins/test/BuildFile.xml b/CondCore/L1TPlugins/test/BuildFile.xml index 62b846fe6daf7..95216dc072b27 100644 --- a/CondCore/L1TPlugins/test/BuildFile.xml +++ b/CondCore/L1TPlugins/test/BuildFile.xml @@ -1,4 +1,5 @@ + diff --git a/CondCore/L1TPlugins/test/testL1TObjectsPayloadInspector.cpp b/CondCore/L1TPlugins/test/testL1TObjectsPayloadInspector.cpp index 2d42bf0a3b188..efd46aeb36b26 100644 --- a/CondCore/L1TPlugins/test/testL1TObjectsPayloadInspector.cpp +++ b/CondCore/L1TPlugins/test/testL1TObjectsPayloadInspector.cpp @@ -2,6 +2,7 @@ #include #include "CondCore/Utilities/interface/PayloadInspector.h" #include "CondCore/L1TPlugins/plugins/L1TUtmTriggerMenu_PayloadInspector.cc" +#include "CondCore/L1TPlugins/plugins/L1TMuonGlobalParams_PayloadInspector.cc" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/PluginManager/interface/PluginManager.h" #include "FWCore/PluginManager/interface/standard.h" @@ -59,7 +60,12 @@ int main(int argc, char** argv) { test5.process(connectionString, PI::mk_input(tag, start, end, tag2, start, end)); edm::LogPrint("testL1TObjectsPayloadInspector") << test5.data() << std::endl; - edm::LogPrint("testL1TObjectsPayloadInspector") << "## Exercising L1TGlobalPrescalesVetos tests" << std::endl; + edm::LogPrint("testL1TObjectsPayloadInspector") << "## Exercising L1TMuonGlobalParams_ tests" << std::endl; + + L1TMuonGlobalParamsInputBits test6; + tag = "L1TMuonGlobalParams_Stage2v0_2024_mc_v1"; + test6.process(connectionString, PI::mk_input(tag, start, end)); + edm::LogPrint("testL1TObjectsPayloadInspector") << test6.data() << std::endl; Py_Finalize(); } diff --git a/CondCore/L1TPlugins/test/testL1TPI.sh b/CondCore/L1TPlugins/test/testL1TPI.sh index 6df475d455966..486b9bd831085 100755 --- a/CondCore/L1TPlugins/test/testL1TPI.sh +++ b/CondCore/L1TPlugins/test/testL1TPI.sh @@ -86,3 +86,15 @@ getPayloadData.py \ mv *.png $W_DIR/results/L1TUtmTriggerMenu_CompareConditionsTwoTags.png +#################### +# Test L1TMuonGlobalParams input bits +#################### +getPayloadData.py \ + --plugin pluginL1TMuonGlobalParams_PayloadInspector \ + --plot plot_L1TMuonGlobalParamsInputBits \ + --tag L1TMuonGlobalParams_Stage2v0_2024_mc_v1 \ + --time_type Run --iovs '{"start_iov": "1", "end_iov" : "1"}' \ + --db Prod \ + --test; + +mv *.png $W_DIR/results/L1TMuonGlobalParams_InputBits.png