27 : nameProcess_(iConfig.getParameter<
std::
string>(
"processName")),
28 autoProcessName_(nameProcess_ ==
"*"),
29 tagTriggerProducer_(
"patTrigger"),
30 tagsTriggerMatcher_(),
34 hltConfigInit_(
false),
36 tagTriggerResults_(
"TriggerResults"),
37 tagTriggerEvent_(
"hltTriggerSummaryAOD"),
43 gtCondRunInit_(
false),
44 gtCondLumiInit_(
false) {
45 if (iConfig.
exists(
"triggerResults"))
52 if (iConfig.
exists(
"triggerEvent"))
54 if (iConfig.
exists(
"patTriggerProducer"))
61 if (iConfig.
exists(
"condGtTag")) {
67 if (iConfig.
exists(
"l1GtTag"))
70 if (iConfig.
exists(
"patTriggerMatches"))
84 produces<TriggerEvent>();
98 if (processHistory.getConfigurationForProcess(iHist->processName(), processConfiguration) &&
108 <<
"' not produced according to process history of input data\n"
109 <<
"No trigger information produced.";
112 LogInfo(
"autoProcessName") <<
"HLT process name " <<
nameProcess_ <<
" used for PAT trigger information";
119 <<
"' differs from HLT process name '" <<
nameProcess_ <<
"'";
125 <<
"' differs from HLT process name '" <<
nameProcess_ <<
"'";
145 LogError(
"hltConfigExtraction") <<
"HLT config extraction error with process name '" <<
nameProcess_ <<
"'";
147 LogError(
"hltConfigSize") <<
"HLT config size error";
184 if (!handleTriggerResults.
isValid()) {
186 <<
"' not in event\n"
187 <<
"No trigger information produced";
201 bool physDecl(
false);
205 if (handleL1GlobalTriggerReadoutRecord.
isValid()) {
211 LogError(
"l1GlobalTriggerReadoutRecordValid")
212 <<
"L1GlobalTriggerReadoutRecord product with InputTag '" <<
tagL1Gt_.
encode() <<
"' not in event";
222 handleTriggerResults->
wasrun(),
223 handleTriggerResults->
accept(),
224 handleTriggerResults->
error(),
227 if (handleTriggerAlgorithms.
isValid()) {
230 LogError(
"triggerAlgorithmsValid") <<
"pat::TriggerAlgorithmCollection product with InputTag '"
233 if (handleTriggerConditions.
isValid()) {
236 LogError(
"triggerConditionsValid") <<
"pat::TriggerConditionCollection product with InputTag '"
239 if (handleTriggerPaths.
isValid()) {
242 LogError(
"triggerPathsValid") <<
"pat::TriggerPathCollection product with InputTag '"
245 if (handleTriggerFilters.
isValid()) {
248 LogError(
"triggerFiltersValid") <<
"pat::TriggerFilterCollection product with InputTag '"
251 if (handleTriggerObjects.
isValid()) {
254 LogError(
"triggerObjectsValid") <<
"pat::TriggerObjectCollection product with InputTag '"
272 if (condEventBlock.
isValid()) {
282 if (handleTriggerObjects.
isValid()) {
289 if (!handleTriggerObjectStandAloneMatch.isValid()) {
290 LogError(
"triggerMatchValid") <<
"pat::TriggerObjectStandAloneMatch product with InputTag '"
291 << labelTriggerObjectMatcher <<
"' not in event";
294 auto it = makeAssociativeIterator<reco::CandidateBaseRef>(*handleTriggerObjectStandAloneMatch,
iEvent);
295 auto itEnd = it.end();
298 iEvent.get(it->first.id(), handleCands);
300 while (it != itEnd) {
301 indices.push_back(it->second.key());
304 auto triggerObjectMatch = std::make_unique<TriggerObjectMatch>(handleTriggerObjects);
313 if (!handleTriggerObjectMatch.isValid()) {
314 LogError(
"triggerMatchValid") <<
"pat::TriggerObjectMatch product with InputTag '" << labelTriggerObjectMatcher
318 if (!(
triggerEvent->addObjectMatchResult(handleTriggerObjectMatch, labelTriggerObjectMatcher))) {
320 <<
"pat::TriggerEvent contains already a pat::TriggerObjectMatch from matcher module '"
321 << labelTriggerObjectMatcher <<
"'";