Skip to content

Commit

Permalink
enhance the BeamSpotPayloadInspector unit tests for the BeamSpotOnlin…
Browse files Browse the repository at this point in the history
…eObjects
  • Loading branch information
mmusich committed Mar 4, 2022
1 parent 00f5c4f commit d20ead3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CondCore/BeamSpotPlugins/test/testBeamSpotPayloadInspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,23 @@ int main(int argc, char** argv) {

tag = "BeamSpotOnlineTestLegacy";
start = static_cast<unsigned long long>(1443392479297557);
end = static_cast<unsigned long long>(1470910334763033);

BeamSpotOnlineParameters histoOnlineParameters;
histoOnlineParameters.process(connectionString, PI::mk_input(tag, start, start));
edm::LogPrint("testBeamSpotPayloadInspector") << histoOnlineParameters.data() << std::endl;

BeamSpotOnlineParametersDiffSingleTag histoOnlineParametersDiff;
histoOnlineParametersDiff.process(connectionString, PI::mk_input(tag, start, end));
edm::LogPrint("testBeamSpotPayloadInspector") << histoOnlineParametersDiff.data() << std::endl;

tag1 = "BeamSpotOnlineObjects_Ideal_Centered_SLHC_v3_mc";
tag2 = "BeamSpotOnlineObjects_Realistic25ns_13TeVCollisions_RoundOpticsLowSigmaZ_RunBased_v1_mc";
start = static_cast<unsigned long long>(4294967297); /*Run 1 : LS 1 (packed: 4294967297) this needs to be per LS */

BeamSpotOnlineParametersDiffTwoTags histoOnlineParametersDiffTwoTags;
histoOnlineParametersDiffTwoTags.process(connectionString, PI::mk_input(tag1, start, start, tag2, start, start));
edm::LogPrint("testBeamSpotPayloadInspector") << histoOnlineParametersDiffTwoTags.data() << std::endl;

Py_Finalize();
}

0 comments on commit d20ead3

Please sign in to comment.