Skip to content

Commit 572d341

Browse files
authored
Merge pull request #48968 from mmusich/mm_dealWithFakeHLTMenuScoutingMuonTriggerAnalyzer
deal with `Fake` HLT menus in `ScoutingMuonTriggerAnalyzer`
2 parents 55976f2 + b887563 commit 572d341

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

HLTriggerOffline/Scouting/plugins/ScoutingMuonTriggerAnalyzer.cc

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,23 @@ ScoutingMuonTriggerAnalyzer::ScoutingMuonTriggerAnalyzer(const edm::ParameterSet
127127
void ScoutingMuonTriggerAnalyzer::dqmBeginRun(edm::Run const& iRun, edm::EventSetup const& iSetup) {
128128
bool changed{false};
129129
hltConfig_.init(iRun, iSetup, hltProcessName_, changed);
130+
131+
// deal with Fake HLT menus
132+
if (hltConfig_.tableName().find("Fake") != std::string::npos) {
133+
edm::LogPrint("ScoutingMuonTriggerAnalyzer")
134+
<< "Detected Fake in HLT Config tableName(): " << hltConfig_.tableName()
135+
<< "; the list of trigger expressions is going to be overridden!" << std::endl;
136+
vtriggerSelector_.clear();
137+
return;
138+
}
139+
130140
for (const auto& menu : special_HLT_Menus_) {
131141
std::size_t found = hltConfig_.tableName().find(menu);
132142
if (found != std::string::npos) {
133143
isSpecial_ = true;
134-
edm::LogWarning("ScoutingMuonTriggerAnalyzer")
144+
edm::LogPrint("ScoutingMuonTriggerAnalyzer")
135145
<< "Detected " << menu << " in HLT Config tableName(): " << hltConfig_.tableName()
136-
<< "; the list of trigger expressions is going to be overriden!" << std::endl;
146+
<< "; the list of trigger expressions is going to be overridden!" << std::endl;
137147
break;
138148
}
139149
}
@@ -279,7 +289,7 @@ void ScoutingMuonTriggerAnalyzer::fillDescriptions(edm::ConfigurationDescription
279289

280290
desc.add<std::string>("OutputInternalPath", "MY_FOLDER");
281291
desc.add<std::vector<string>>("triggerSelection", {});
282-
desc.add<std::string>("hltProcessName", "HLT");
292+
desc.add<std::string>("hltProcessName", {});
283293
desc.add<std::vector<std::string>>("special_HLT_Menus", {})
284294
->setComment("list of HLT menus to use to clear the trigger selection");
285295
desc.add<edm::InputTag>("ScoutingMuonCollection", edm::InputTag("hltScoutingMuonPackerVtx"));

HLTriggerOffline/Scouting/python/ScoutingMuonTriggerAnalyzer_cfi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,15 @@
3131
OutputInternalPath = cms.string('/HLT/ScoutingOffline/Muons/L1Efficiency/DoubleMu'), #Output of the root file
3232
ScoutingMuonCollection = cms.InputTag('hltScoutingMuonPackerVtx'),
3333
triggerSelection = cms.vstring(["DST_PFScouting_ZeroBias_v*", "DST_PFScouting_DoubleEG_v*", "DST_PFScouting_JetHT_v*"]), #Denominator
34-
special_HLT_Menus = cms.vstring(["LumiScan"]), # list of menus to use to reset the trigge selections
34+
special_HLT_Menus = cms.vstring(["LumiScan"]), # list of menus to use to reset the trigger selections
3535
triggerConfiguration = cms.PSet(
3636
hltResults = cms.InputTag('TriggerResults','','HLT'),
3737
l1tResults = cms.InputTag('','',''),
3838
l1tIgnoreMaskAndPrescale = cms.bool(False),
3939
throw = cms.bool(True),
4040
usePathStatus = cms.bool(False),
4141
),
42+
hltProcessName = cms.string("HLT"),
4243
AlgInputTag = cms.InputTag("gtStage2Digis"),
4344
l1tAlgBlkInputTag = cms.InputTag("gtStage2Digis"),
4445
l1tExtBlkInputTag = cms.InputTag("gtStage2Digis"),

0 commit comments

Comments
 (0)