255 if (!handleTriggerResults.
isValid()) {
257 <<
"' not in event\n" 258 <<
"No trigger information produced";
272 bool physDecl(
false);
276 if (handleL1GlobalTriggerReadoutRecord.
isValid()) {
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()) {
301 LogError(
"triggerAlgorithmsValid") <<
"pat::TriggerAlgorithmCollection product with InputTag '" 304 if (handleTriggerConditions.
isValid()) {
307 LogError(
"triggerConditionsValid") <<
"pat::TriggerConditionCollection product with InputTag '" 310 if (handleTriggerPaths.
isValid()) {
313 LogError(
"triggerPathsValid") <<
"pat::TriggerPathCollection product with InputTag '" 316 if (handleTriggerFilters.
isValid()) {
319 LogError(
"triggerFiltersValid") <<
"pat::TriggerFilterCollection product with InputTag '" 322 if (handleTriggerObjects.
isValid()) {
325 LogError(
"triggerObjectsValid") <<
"pat::TriggerObjectCollection product with InputTag '" 343 if (condEventBlock.
isValid()) {
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);
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
bool accept() const
Has at least one path accepted the event?
edm::EDGetTokenT< TriggerObjectCollection > triggerObjectCollectionToken_
std::vector< edm::EDGetTokenT< TriggerObjectStandAloneMatch > > triggerMatcherTokens_
edm::EDGetTokenT< TriggerConditionCollection > triggerConditionCollectionToken_
const cms_uint16_t physicsDeclared() const
get/set "physics declared" bit
bool error() const
Has any path encountered an error (exception)
const edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > handleL1GtTriggerMenuToken_
edm::EDGetTokenT< TriggerPathCollection > triggerPathCollectionToken_
Log< level::Error, false > LogError
const L1GtFdlWord gtFdlWord(int bxInEventValue) const
get / set FDL word (record) in the GT readout record
bool wasrun() const
Was at least one path run?
edm::EDGetTokenT< edm::ConditionsInEventBlock > tagCondGtEventToken_
edm::InputTag tagTriggerProducer_
HLTConfigProvider hltConfig_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
uint32_t totalIntensityBeam2
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > l1GtToken_
edm::EDGetTokenT< TriggerAlgorithmCollection > triggerAlgorithmCollectionToken_
edm::InputTag tagTriggerResults_
edm::ConditionsInRunBlock condRun_
const std::string & tableName() const
HLT ConfDB table name.
std::vector< edm::InputTag > tagsTriggerMatcher_
edm::EDGetTokenT< TriggerFilterCollection > triggerFilterCollectionToken_
edm::ConditionsInLumiBlock condLumi_
Log< level::Warning, false > LogWarning