255 if (!handleTriggerResults.
isValid()) {
257 <<
"' not in event\n"
258 <<
"No trigger information produced";
272 bool physDecl(
false);
276 if (handleL1GlobalTriggerReadoutRecord.
isValid()) {
277 L1GtFdlWord fdlWord = handleL1GlobalTriggerReadoutRecord->gtFdlWord();
282 LogError(
"l1GlobalTriggerReadoutRecordValid")
283 <<
"L1GlobalTriggerReadoutRecord product with InputTag '" <<
tagL1Gt_.
encode() <<
"' not in event";
291 auto triggerEvent = std::make_unique<TriggerEvent>(handleL1GtTriggerMenu->gtTriggerMenuName(),
293 handleTriggerResults->wasrun(),
294 handleTriggerResults->accept(),
295 handleTriggerResults->error(),
298 if (handleTriggerAlgorithms.
isValid()) {
299 triggerEvent->setAlgorithms(handleTriggerAlgorithms);
301 LogError(
"triggerAlgorithmsValid") <<
"pat::TriggerAlgorithmCollection product with InputTag '"
304 if (handleTriggerConditions.
isValid()) {
305 triggerEvent->setConditions(handleTriggerConditions);
307 LogError(
"triggerConditionsValid") <<
"pat::TriggerConditionCollection product with InputTag '"
310 if (handleTriggerPaths.
isValid()) {
311 triggerEvent->setPaths(handleTriggerPaths);
313 LogError(
"triggerPathsValid") <<
"pat::TriggerPathCollection product with InputTag '"
316 if (handleTriggerFilters.
isValid()) {
317 triggerEvent->setFilters(handleTriggerFilters);
319 LogError(
"triggerFiltersValid") <<
"pat::TriggerFilterCollection product with InputTag '"
322 if (handleTriggerObjects.
isValid()) {
323 triggerEvent->setObjects(handleTriggerObjects);
325 LogError(
"triggerObjectsValid") <<
"pat::TriggerObjectCollection product with InputTag '"
343 if (condEventBlock.
isValid()) {
344 triggerEvent->setBstMasterStatus(condEventBlock->bstMasterStatus);
345 triggerEvent->setTurnCount(condEventBlock->turnCountNumber);
353 if (handleTriggerObjects.
isValid()) {
360 if (!handleTriggerObjectStandAloneMatch.isValid()) {
361 LogError(
"triggerMatchValid") <<
"pat::TriggerObjectStandAloneMatch product with InputTag '"
362 << labelTriggerObjectMatcher <<
"' not in event";
365 auto it = makeAssociativeIterator<reco::CandidateBaseRef>(*handleTriggerObjectStandAloneMatch,
iEvent);
366 auto itEnd = it.end();
369 iEvent.
get(it->first.id(), handleCands);
371 while (it != itEnd) {
372 indices.push_back(it->second.key());
375 auto triggerObjectMatch = std::make_unique<TriggerObjectMatch>(handleTriggerObjects);
378 matchFiller.insert(handleCands, indices.begin(), indices.end());
382 iEvent.
put(
std::move(triggerObjectMatch), labelTriggerObjectMatcher));
384 if (!handleTriggerObjectMatch.isValid()) {
385 LogError(
"triggerMatchValid") <<
"pat::TriggerObjectMatch product with InputTag '" << labelTriggerObjectMatcher
389 if (!(triggerEvent->addObjectMatchResult(handleTriggerObjectMatch, labelTriggerObjectMatcher))) {
391 <<
"pat::TriggerEvent contains already a pat::TriggerObjectMatch from matcher module '"
392 << labelTriggerObjectMatcher <<
"'";
uint32_t totalIntensityBeam1
edm::EDGetTokenT< TriggerObjectCollection > triggerObjectCollectionToken_
std::vector< edm::EDGetTokenT< TriggerObjectStandAloneMatch > > triggerMatcherTokens_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< TriggerConditionCollection > triggerConditionCollectionToken_
const edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > handleL1GtTriggerMenuToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< TriggerPathCollection > triggerPathCollectionToken_
const std::string & tableName() const
HLT ConfDB table name.
Log< level::Error, false > LogError
edm::EDGetTokenT< edm::ConditionsInEventBlock > tagCondGtEventToken_
edm::InputTag tagTriggerProducer_
bool get(ProductID const &oid, Handle< PROD > &result) const
HLTConfigProvider hltConfig_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
uint32_t totalIntensityBeam2
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > l1GtToken_
edm::EDGetTokenT< TriggerAlgorithmCollection > triggerAlgorithmCollectionToken_
const cms_uint16_t physicsDeclared() const
get/set "physics declared" bit
edm::InputTag tagTriggerResults_
edm::ConditionsInRunBlock condRun_
std::vector< edm::InputTag > tagsTriggerMatcher_
edm::EDGetTokenT< TriggerFilterCollection > triggerFilterCollectionToken_
edm::ConditionsInLumiBlock condLumi_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Log< level::Warning, false > LogWarning