40 verbose_(iConfig.getUntrackedParameter<
bool>(
"verbose")),
44 produces<StringCollection>(
"failedTriggerDescription");
71 std::map<std::string, unsigned int> offlineNameBitMap;
77 std::map<std::string, unsigned int>::iterator it = offlineNameBitMap.find(
onlineActualNames_[
i]);
78 if (it != offlineNameBitMap.end()) {
82 <<
" not found in Offline "
93 TH1F *
h = fs->
make<TH1F>(it->c_str(), it->c_str(), 10, 0, 10);
94 TAxis *
a =
h->GetXaxis();
95 a->SetBinLabel(1,
"OnPass_OffPass");
96 a->SetBinLabel(2,
"OnFail_OffFail");
97 a->SetBinLabel(3,
"OnPass_OffFail");
98 a->SetBinLabel(4,
"OnFail_OffPass");
99 a->SetBinLabel(5,
"OnError_OffError");
100 a->SetBinLabel(6,
"OnRun_OffError");
101 a->SetBinLabel(7,
"OnError_OffRun");
102 a->SetBinLabel(8,
"OnRun_OffNotRun");
103 a->SetBinLabel(9,
"OnNotRun_OffRun");
104 a->SetBinLabel(10,
"OnNotRun_OffNotRun");
162 bool hasDisagreement =
false;
166 bool onRun = onlineResults->
wasrun(
i);
167 bool offRun = offlineResults->
wasrun(offlineTriggerBit);
168 bool onAccept = onlineResults->
accept(
i);
169 bool offAccept = offlineResults->
accept(offlineTriggerBit);
170 bool onError = onlineResults->
error(
i);
171 bool offError = offlineResults->
error(offlineTriggerBit);
174 if (onError || offError) {
175 if (onError && offError) {
177 }
else if (onError) {
182 }
else if ((!onRun) || (!offRun)) {
183 if ((!onRun) && (!offRun)) {
191 if (onAccept && offAccept) {
193 }
else if ((!onAccept) && (!offAccept)) {
195 }
else if (onAccept) {
215 std::ostringstream
desc;
217 resultDescription->push_back(
desc.str());
222 hasDisagreement =
true;
224 hasDisagreement =
true;
240 event.put(
std::move(resultDescription),
"failedTriggerDescription");
254 std::cout <<
"HLT-Compare ---------- Trigger Comparison Summary ----------" << std::endl;
255 std::cout <<
"HLT-Compare The following events had trigger mismatches:" << std::endl;
256 std::map<unsigned int, std::map<std::string, unsigned int>>::iterator it;
258 std::cout <<
"HLT-Compare Event: " << it->first << std::endl;
259 std::map<std::string, unsigned int>::iterator jt;
260 for (jt = it->second.begin(); jt != it->second.end(); ++jt) {
264 std::cout <<
"HLT-Compare ------------ End Trigger Comparison ------------" << std::endl;