@@ -127,13 +127,23 @@ ScoutingMuonTriggerAnalyzer::ScoutingMuonTriggerAnalyzer(const edm::ParameterSet
127127void 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" ));
0 commit comments