Skip to content

Commit

Permalink
add unit tests for L1TMuonGlobalParams_PayloadInspector
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed Aug 18, 2024
1 parent ed98ad9 commit bd92c25
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions CondCore/L1TPlugins/test/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<use name="CondCore/Utilities"/>
<use name="FWCore/PluginManager"/>
<use name="L1Trigger/L1TMuon"/>
<bin file="testL1TObjectsPayloadInspector.cpp" name="testL1TObjectsPayloadInspector">
</bin>
8 changes: 7 additions & 1 deletion CondCore/L1TPlugins/test/testL1TObjectsPayloadInspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <sstream>
#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"
Expand Down Expand Up @@ -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();
}
12 changes: 12 additions & 0 deletions CondCore/L1TPlugins/test/testL1TPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bd92c25

Please sign in to comment.