44 nameProcess_( iConfig.getParameter< std::string >(
"processName" ) ),
45 autoProcessName_( nameProcess_ ==
"*" ),
46 onlyStandAlone_( iConfig.getParameter< bool >(
"onlyStandAlone" ) ),
49 tagL1GlobalTriggerObjectMapRecord_(
"hltL1GtObjectMap" ),
58 autoProcessNameL1ExtraMu_(
false ),
59 autoProcessNameL1ExtraNoIsoEG_(
false ),
60 autoProcessNameL1ExtraIsoEG_(
false ),
61 autoProcessNameL1ExtraCenJet_(
false ),
62 autoProcessNameL1ExtraForJet_(
false ),
63 autoProcessNameL1ExtraTauJet_(
false ),
64 autoProcessNameL1ExtraETM_(
false ),
65 autoProcessNameL1ExtraHTM_(
false ),
69 tagTriggerResults_(
"TriggerResults" ),
70 tagTriggerEvent_(
"hltTriggerSummaryAOD" ),
72 labelHltPrescaleTable_(),
73 hltPrescaleTableRun_(),
74 hltPrescaleTableLumi_(),
75 addPathModuleLabels_(
false )
81 if ( iConfig.
exists(
"l1ExtraMu" ) ) {
88 if ( iConfig.
exists(
"l1ExtraNoIsoEG" ) ) {
95 if ( iConfig.
exists(
"l1ExtraIsoEG" ) ) {
102 if ( iConfig.
exists(
"l1ExtraCenJet" ) ) {
109 if ( iConfig.
exists(
"l1ExtraForJet" ) ) {
116 if ( iConfig.
exists(
"l1ExtraTauJet" ) ) {
123 if ( iConfig.
exists(
"l1ExtraETM" ) ) {
130 if ( iConfig.
exists(
"l1ExtraHTM" ) ) {
150 produces< TriggerAlgorithmCollection >();
151 produces< TriggerConditionCollection >();
152 produces< TriggerPathCollection >();
153 produces< TriggerFilterCollection >();
154 produces< TriggerObjectCollection >();
156 produces< TriggerObjectStandAloneCollection >();
177 if ( processHistory.getConfigurationForProcess( iHist->processName(), processConfiguration ) &&
178 pset::Registry::instance()->getMapped( processConfiguration.parameterSetID(), processPSet ) &&
187 LogError(
"autoProcessName" ) <<
"trigger::TriggerEvent product with label '" <<
tagTriggerEvent_.
label() <<
"' not produced according to process history of input data\n"
188 <<
"No trigger information produced";
191 LogInfo(
"autoProcessName" ) <<
"HLT process name' " <<
nameProcess_ <<
"' used for PAT trigger information";
214 bool changed(
true );
216 LogError(
"hltConfigExtraction" ) <<
"HLT config extraction error with process name '" <<
nameProcess_ <<
"'";
218 LogError(
"hltConfigSize" ) <<
"HLT config size error";
229 if ( handleHltPrescaleTable.
isValid() ) {
252 if ( handleHltPrescaleTable.
isValid() ) {
280 if( ! handleTriggerResults.
isValid() ) {
282 <<
"No HLT information produced";
284 }
else if ( ! handleTriggerEvent.
isValid() ) {
286 <<
"No HLT information produced";
302 if ( handleHltPrescaleTable.
isValid() ) {
303 hltPrescaleTable =
trigger::HLTPrescaleTable( handleHltPrescaleTable->set(), handleHltPrescaleTable->labels(), handleHltPrescaleTable->table() );
307 if ( hltPrescaleTable.size() == 0 ) {
310 <<
"Using default from event setup";
315 LogDebug(
"hltPrescaleTable" ) <<
"HLT prescale table found in event setup";
317 LogWarning(
"hltPrescaleSet" ) <<
"HLTPrescaleTable from event setup has error";
321 unsigned set( hltPrescaleTable.set() );
322 if ( hltPrescaleTable.size() > 0 ) {
324 bool foundPrescaleLabel(
false );
325 for (
unsigned iLabel = 0; iLabel < hltPrescaleTable.labels().size(); ++iLabel ) {
328 foundPrescaleLabel =
true;
332 if ( ! foundPrescaleLabel ) {
338 LogWarning(
"hltPrescaleTable" ) <<
"No HLT prescale table found\n"
339 <<
"Using default empty table with all prescales 1";
343 const unsigned sizeFilters( handleTriggerEvent->sizeFilters() );
344 const unsigned sizeObjects( handleTriggerEvent->sizeObjects() );
348 std::map< std::string, int > moduleStates;
349 std::multimap< std::string, std::pair< std::string, std::pair< bool, bool > > > filterPaths;
351 for (
size_t iP = 0; iP < sizePaths; ++iP ) {
355 unsigned indexLastFilterPathModules( handleTriggerResults->index( indexPath ) + 1 );
356 unsigned indexLastFilterFilters( sizeFilters );
357 while ( indexLastFilterPathModules > 0 ) {
358 --indexLastFilterPathModules;
359 const std::string labelLastFilterPathModules(
hltConfig_.
moduleLabel( indexPath, indexLastFilterPathModules ) );
360 indexLastFilterFilters = handleTriggerEvent->filterIndex(
InputTag( labelLastFilterPathModules,
"",
nameProcess_ ) );
361 if ( indexLastFilterFilters < sizeFilters ) {
366 for (
size_t iM = 0; iM < sizeModulesPath; ++iM ) {
368 const unsigned indexFilter( handleTriggerEvent->filterIndex(
InputTag( nameFilter,
"",
nameProcess_ ) ) );
369 if ( indexFilter < sizeFilters ) {
370 bool pathLastFilterAccepted( handleTriggerResults->wasrun( indexPath ) && handleTriggerResults->accept( indexPath ) && indexFilter == indexLastFilterFilters );
371 bool pathL3FilterAccepted( handleTriggerResults->wasrun( indexPath ) && handleTriggerResults->accept( indexPath ) &&
hltConfig_.
saveTags( nameFilter ) );
372 std::pair< bool, bool > pathStatusValues( pathLastFilterAccepted, pathL3FilterAccepted );
373 std::pair< std::string, std::pair< bool, bool > > pathAndStatus( namePath, pathStatusValues );
374 filterPaths.insert( std::pair< std::string, std::pair< std::string, std::pair< bool, bool > > >( nameFilter, pathAndStatus ) );
378 TriggerPath triggerPath( namePath, indexPath,
hltConfig_.
prescaleValue( set, namePath ), handleTriggerResults->wasrun( indexPath ), handleTriggerResults->accept( indexPath ), handleTriggerResults->error( indexPath ), indexLastFilterPathModules,
hltConfig_.
saveTagsModules( namePath ).size() );
380 assert( indexLastFilterPathModules < sizeModulesPath );
381 std::map< unsigned, std::string > indicesModules;
382 for (
size_t iM = 0; iM < sizeModulesPath; ++iM ) {
385 triggerPath.addModule( nameModule );
387 const unsigned indexFilter( handleTriggerEvent->filterIndex(
InputTag( nameModule,
"",
nameProcess_ ) ) );
388 if ( indexFilter < sizeFilters ) {
389 triggerPath.addFilterIndex( indexFilter );
392 indicesModules.insert( std::pair< unsigned, std::string >( slotModule, nameModule ) );
396 for ( L1SeedCollection::const_iterator iSeed = l1Seeds.begin(); iSeed != l1Seeds.end(); ++iSeed ) {
397 triggerPath.addL1Seed( *iSeed );
400 triggerPaths->push_back( triggerPath );
402 for ( std::map< unsigned, std::string >::const_iterator iM = indicesModules.begin(); iM != indicesModules.end(); ++iM ) {
403 if ( iM->first < indexLastFilterPathModules ) {
404 moduleStates[ iM->second ] = 1;
405 }
else if ( iM->first == indexLastFilterPathModules ) {
406 moduleStates[ iM->second ] = handleTriggerResults->accept( indexPath );
407 }
else if ( moduleStates.find( iM->second ) == moduleStates.end() ) {
408 moduleStates[ iM->second ] = -1;
422 std::multimap< trigger::size_type, int > objectTypes;
423 std::multimap< trigger::size_type, std::string > filterLabels;
425 for (
size_t iF = 0; iF < sizeFilters; ++iF ) {
426 const std::string nameFilter( handleTriggerEvent->filterTag( iF ).label() );
428 const trigger::Vids & types = handleTriggerEvent->filterIds( iF );
429 assert( types.size() == keys.size() );
430 for (
size_t iK = 0; iK < keys.size(); ++iK ) {
431 filterLabels.insert( std::pair< trigger::size_type, std::string >( keys[ iK ], nameFilter ) );
432 objectTypes.insert( std::pair< trigger::size_type, int >( keys[ iK ], types[ iK ] ) );
438 const trigger::Keys & collectionKeys( handleTriggerEvent->collectionKeys() );
439 std::map< trigger::size_type, trigger::size_type > newObjectKeys;
440 for (
size_t iO = 0, iC = 0; iO < sizeObjects && iC < handleTriggerEvent->sizeCollections(); ++iO ) {
442 TriggerObject triggerObject( handleTriggerEvent->getObjects().at( iO ) );
444 while ( iO >= collectionKeys[ iC ] ) ++iC;
445 triggerObject.
setCollection( handleTriggerEvent->collectionTag( iC ) );
447 for ( std::multimap< trigger::size_type, int >::iterator iM = objectTypes.begin(); iM != objectTypes.end(); ++iM ) {
448 if ( iM->first == iO ) {
449 triggerObject.addTriggerObjectType( iM->second );
456 bool excluded(
false );
464 if ( excluded )
continue;
465 for ( std::multimap< trigger::size_type, std::string >::iterator iM = filterLabels.begin(); iM != filterLabels.end(); ++iM ) {
466 if ( iM->first == iO ) {
468 for ( std::multimap< std::string, std::pair< std::string, std::pair< bool, bool > > >::iterator iP = filterPaths.begin(); iP != filterPaths.end(); ++iP ) {
469 if ( iP->first == iM->second ) {
470 triggerObjectStandAlone.
addPathName( iP->second.first, iP->second.second.first, iP->second.second.second );
477 triggerObjectsStandAlone->push_back( triggerObjectStandAlone );
485 for (
size_t iF = 0; iF < sizeFilters; ++iF ) {
486 const std::string nameFilter( handleTriggerEvent->filterTag( iF ).label() );
488 const trigger::Vids & types = handleTriggerEvent->filterIds( iF );
492 triggerFilter.
setType( typeFilter );
495 for (
size_t iK = 0; iK < keys.size(); ++iK ) {
497 if ( newObjectKeys.find( keys.at( iK ) ) != newObjectKeys.end() ) {
498 if ( newObjectKeys[ keys.at( iK ) ] == sizeObjects )
continue;
502 LogWarning(
"triggerObjectKey" ) <<
"TriggerFilter '" << nameFilter <<
"' requests non-existing TriggerObject key " << keys.at( iK ) <<
"\n"
503 <<
"Skipping object assignment";
507 std::map< std::string, int >::iterator iS( moduleStates.find( nameFilter ) );
508 if ( iS != moduleStates.end() ) {
509 if ( ! triggerFilter.
setStatus( iS->second ) ) {
516 triggerFilters->push_back( triggerFilter );
519 iEvent.
put( triggerFilters );
528 std::map< L1GtObject, std::vector< unsigned > > l1ObjectTypeMap;
533 if ( handleL1ExtraMu.
isValid() ) {
534 std::vector< unsigned > muKeys;
535 for (
size_t l1Mu = 0; l1Mu < handleL1ExtraMu->size(); ++l1Mu ) {
536 if (
mainBxOnly_ && handleL1ExtraMu->at( l1Mu ).bx() != 0 )
continue;
542 const reco::LeafCandidate * leafCandidate( handleL1ExtraMu->at( l1Mu ).reco::LeafCandidate::clone() );
549 triggerObjectsStandAlone->push_back( triggerObjectStandAlone );
550 if ( handleL1ExtraMu->at( l1Mu ).bx() == 0 ) muKeys.push_back( triggerObjectsStandAlone->size() - 1 );
552 l1ObjectTypeMap.insert( std::make_pair(
Mu, muKeys ) );
553 }
else LogError(
"l1ExtraValid" ) <<
"l1extra::L1MuonParticleCollection product with InputTag '" <<
tagL1ExtraMu_.
encode() <<
"' not in event";
558 if ( handleL1ExtraNoIsoEG.
isValid() ) {
559 std::vector< unsigned > noIsoEGKeys;
560 for (
size_t l1NoIsoEG = 0; l1NoIsoEG < handleL1ExtraNoIsoEG->size(); ++l1NoIsoEG ) {
561 if (
mainBxOnly_ && handleL1ExtraNoIsoEG->at( l1NoIsoEG ).bx() != 0 )
continue;
567 const reco::LeafCandidate * leafCandidate( handleL1ExtraNoIsoEG->at( l1NoIsoEG ).reco::LeafCandidate::clone() );
574 triggerObjectsStandAlone->push_back( triggerObjectStandAlone );
575 if ( handleL1ExtraNoIsoEG->at( l1NoIsoEG ).bx() == 0 ) noIsoEGKeys.push_back( triggerObjectsStandAlone->size() - 1 );
577 l1ObjectTypeMap.insert( std::make_pair(
NoIsoEG, noIsoEGKeys ) );
583 if ( handleL1ExtraIsoEG.
isValid() ) {
584 std::vector< unsigned > isoEGKeys;
585 for (
size_t l1IsoEG = 0; l1IsoEG < handleL1ExtraIsoEG->size(); ++l1IsoEG ) {
586 if (
mainBxOnly_ && handleL1ExtraIsoEG->at( l1IsoEG ).bx() != 0 )
continue;
592 const reco::LeafCandidate * leafCandidate( handleL1ExtraIsoEG->at( l1IsoEG ).reco::LeafCandidate::clone() );
599 triggerObjectsStandAlone->push_back( triggerObjectStandAlone );
600 if ( handleL1ExtraIsoEG->at( l1IsoEG ).bx() == 0 ) isoEGKeys.push_back( triggerObjectsStandAlone->size() - 1 );
602 l1ObjectTypeMap.insert( std::make_pair(
IsoEG, isoEGKeys ) );
608 if ( handleL1ExtraCenJet.
isValid() ) {
609 std::vector< unsigned > cenJetKeys;
610 for (
size_t l1CenJet = 0; l1CenJet < handleL1ExtraCenJet->size(); ++l1CenJet ) {
611 if (
mainBxOnly_ && handleL1ExtraCenJet->at( l1CenJet ).bx() != 0 )
continue;
617 const reco::LeafCandidate * leafCandidate( handleL1ExtraCenJet->at( l1CenJet ).reco::LeafCandidate::clone() );
624 triggerObjectsStandAlone->push_back( triggerObjectStandAlone );
625 if ( handleL1ExtraCenJet->at( l1CenJet ).bx() == 0 ) cenJetKeys.push_back( triggerObjectsStandAlone->size() - 1 );
627 l1ObjectTypeMap.insert( std::make_pair(
CenJet, cenJetKeys ) );
633 if ( handleL1ExtraForJet.
isValid() ) {
634 std::vector< unsigned > forJetKeys;
635 for (
size_t l1ForJet = 0; l1ForJet < handleL1ExtraForJet->size(); ++l1ForJet ) {
636 if (
mainBxOnly_ && handleL1ExtraForJet->at( l1ForJet ).bx() != 0 )
continue;
642 const reco::LeafCandidate * leafCandidate( handleL1ExtraForJet->at( l1ForJet ).reco::LeafCandidate::clone() );
649 triggerObjectsStandAlone->push_back( triggerObjectStandAlone );
650 if ( handleL1ExtraForJet->at( l1ForJet ).bx() == 0 ) forJetKeys.push_back( triggerObjectsStandAlone->size() - 1 );
652 l1ObjectTypeMap.insert( std::make_pair(
ForJet, forJetKeys ) );
658 if ( handleL1ExtraTauJet.
isValid() ) {
659 std::vector< unsigned > tauJetKeys;
660 for (
size_t l1TauJet = 0; l1TauJet < handleL1ExtraTauJet->size(); ++l1TauJet ) {
661 if (
mainBxOnly_ && handleL1ExtraTauJet->at( l1TauJet ).bx() != 0 )
continue;
667 const reco::LeafCandidate * leafCandidate( handleL1ExtraTauJet->at( l1TauJet ).reco::LeafCandidate::clone() );
674 triggerObjectsStandAlone->push_back( triggerObjectStandAlone );
675 if ( handleL1ExtraTauJet->at( l1TauJet ).bx() == 0 ) tauJetKeys.push_back( triggerObjectsStandAlone->size() - 1 );
677 l1ObjectTypeMap.insert( std::make_pair(
TauJet, tauJetKeys ) );
683 if ( handleL1ExtraETM.
isValid() ) {
684 std::vector< unsigned > etmKeys;
685 for (
size_t l1ETM = 0; l1ETM < handleL1ExtraETM->size(); ++l1ETM ) {
686 if (
mainBxOnly_ && handleL1ExtraETM->at( l1ETM ).bx() != 0 )
continue;
692 const reco::LeafCandidate * leafCandidate( handleL1ExtraETM->at( l1ETM ).reco::LeafCandidate::clone() );
699 triggerObjectsStandAlone->push_back( triggerObjectStandAlone );
700 if ( handleL1ExtraETM->at( l1ETM ).bx() == 0 ) etmKeys.push_back( triggerObjectsStandAlone->size() - 1 );
702 l1ObjectTypeMap.insert( std::make_pair(
ETM, etmKeys ) );
703 }
else LogError(
"l1ExtraValid" ) <<
"l1extra::L1EtMissParticleCollection product with InputTag '" <<
tagL1ExtraETM_.
encode() <<
"' not in event";
708 if ( handleL1ExtraHTM.
isValid() ) {
709 std::vector< unsigned > htmKeys;
710 for (
size_t l1HTM = 0; l1HTM < handleL1ExtraHTM->size(); ++l1HTM ) {
711 if (
mainBxOnly_ && handleL1ExtraHTM->at( l1HTM ).bx() != 0 )
continue;
717 const reco::LeafCandidate * leafCandidate( handleL1ExtraHTM->at( l1HTM ).reco::LeafCandidate::clone() );
724 triggerObjectsStandAlone->push_back( triggerObjectStandAlone );
725 if ( handleL1ExtraHTM->at( l1HTM ).bx() == 0 ) htmKeys.push_back( triggerObjectsStandAlone->size() - 1 );
727 l1ObjectTypeMap.insert( std::make_pair(
HTM, htmKeys ) );
728 }
else LogError(
"l1ExtraValid" ) <<
"l1extra::L1EtMissParticleCollection product with InputTag '" <<
tagL1ExtraHTM_.
encode() <<
"' not in event";
740 std::map< L1GtObject, trigger::TriggerObjectType > mapObjectTypes;
757 const std::vector< ConditionMap > l1GtConditionsVector( l1GtTriggerMenu.
gtConditionMap() );
760 for (
size_t iCv = 0; iCv < l1GtConditionsVector.size(); ++iCv ) {
761 l1GtConditions.insert( l1GtConditionsVector.at( iCv ).begin(), l1GtConditionsVector.at( iCv ).end() );
763 triggerAlgos->reserve( l1GtAlgorithms.size() + l1GtTechTriggers.size() );
766 if( ! handleL1GlobalTriggerObjectMapRecord.
isValid() ) {
768 <<
"No L1 objects and GTL results available for physics algorithms";
771 for (
CItAlgo iAlgo = l1GtAlgorithms.begin(); iAlgo != l1GtAlgorithms.end(); ++iAlgo ) {
772 const std::string & algoName( iAlgo->second.algoName() );
781 LogError(
"l1Algo" ) <<
"L1 physics algorithm '" << algoName <<
"' not found in the L1 menu\n"
786 LogError(
"l1Algo" ) <<
"L1 physics algorithm '" << algoName <<
"' does not have category 'AlgorithmTrigger' from 'L1GtUtils'\n"
790 bool decisionBeforeMask;
791 bool decisionAfterMask;
796 LogError(
"l1Algo" ) <<
"L1 physics algorithm '" << algoName <<
"' decision has error code " <<
error <<
" from 'L1GtUtils'\n"
803 if( ! handleL1GlobalTriggerObjectMapRecord.
isValid() ) {
804 triggerAlgos->push_back( triggerAlgo );
808 if ( ! l1ObjectMap ) {
809 LogError(
"l1ObjectMap" ) <<
"L1 physics algorithm '" << algoName <<
"' is missing in L1GlobalTriggerObjectMapRecord\n"
810 <<
"Skipping conditions and GTL result";
811 triggerAlgos->push_back( triggerAlgo );
815 if ( ( l1ObjectMap->algoGtlResult() != decisionBeforeMask ) && ( decisionBeforeMask ==
true ) ) {
816 LogInfo(
"l1ObjectMap" ) <<
"L1 physics algorithm '" << algoName <<
"' with different decisions in\n"
817 <<
"L1GlobalTriggerObjectMapRecord (GTL result) : " << l1ObjectMap->algoGtlResult() <<
"\n"
818 <<
"L1GlobalTriggerReadoutRecord (decision before mask): " << decisionBeforeMask;
820 triggerAlgo.
setGtlResult( l1ObjectMap->algoGtlResult() );
822 const std::vector< L1GtLogicParser::OperandToken > &
tokens( l1ObjectMap->operandTokenVector() );
823 for (
size_t iT = 0; iT <
tokens.size(); ++iT ) {
825 size_t key( triggerConditions->size() );
826 for (
size_t iC = 0; iC < triggerConditions->size(); ++iC ) {
827 if ( token.tokenName == triggerConditions->at( iC ).name() ) {
832 if (
key == triggerConditions->size() ) {
834 if ( l1GtConditions.find( triggerCond.
name() ) != l1GtConditions.end() ) {
835 triggerCond.
setCategory( l1GtConditions[ triggerCond.
name() ]->condCategory() );
836 triggerCond.
setType( l1GtConditions[ triggerCond.
name() ]->condType() );
837 const std::vector< L1GtObject > l1ObjectTypes( l1GtConditions[ triggerCond.
name() ]->objectType() );
838 for (
size_t iT = 0 ; iT < l1ObjectTypes.size(); ++iT ) {
842 CombinationsInCond combis( l1ObjectMap->combinationVector().at( token.tokenNumber ) );
843 for (
size_t iVV = 0; iVV < combis.size(); ++iVV ) {
845 for (
size_t iV = 0; iV < combi.size(); ++iV ) {
846 if ( iV >= l1ObjectTypes.size() ) {
847 LogError(
"l1CondMap" ) <<
"Index " << iV <<
" in combinations vector overshoots size " << l1ObjectTypes.size() <<
" of types vector in conditions map\n"
848 <<
"Skipping object key in condition " << triggerCond.
name();
849 }
else if ( l1ObjectTypeMap.find( l1ObjectTypes.at( iV ) ) != l1ObjectTypeMap.end() ) {
850 if ( combi.at( iV ) >= int( l1ObjectTypeMap[ l1ObjectTypes.at( iV ) ].size() ) ) {
851 LogError(
"l1CondMap" ) <<
"Index " << combi.at( iV ) <<
" in combination overshoots number " << l1ObjectTypeMap[ l1ObjectTypes.at( iV ) ].size() <<
"of according trigger objects\n"
852 <<
"Skipping object key in condition " << triggerCond.
name();
854 const unsigned objectKey( l1ObjectTypeMap[ l1ObjectTypes.at( iV ) ].at( combi.at( iV ) ) );
857 triggerObjectsStandAlone->at( objectKey ).addAlgorithmName( triggerAlgo.
name(), ( triggerAlgo.
decision() && triggerCond.
wasAccept() ) );
858 triggerObjectsStandAlone->at( objectKey ).addConditionName( triggerCond.
name() );
863 LogWarning(
"l1CondMap" ) <<
"L1 conditions '" << triggerCond.
name() <<
"' not found in the L1 menu\n"
864 <<
"Remains incomplete";
866 triggerConditions->push_back( triggerCond );
870 triggerAlgos->push_back( triggerAlgo );
873 for (
CItAlgo iAlgo = l1GtTechTriggers.begin(); iAlgo != l1GtTechTriggers.end(); ++iAlgo ) {
874 const std::string & algoName( iAlgo->second.algoName() );
883 LogError(
"l1Algo" ) <<
"L1 technical trigger '" << algoName <<
"' not found in the L1 menu\n"
888 LogError(
"l1Algo" ) <<
"L1 technical trigger '" << algoName <<
"' does not have category 'TechnicalTrigger' from 'L1GtUtils'\n"
892 bool decisionBeforeMask;
893 bool decisionAfterMask;
898 LogError(
"l1Algo" ) <<
"L1 technical trigger '" << algoName <<
"' decision has error code " <<
error <<
" from 'L1GtUtils'\n"
904 triggerAlgos->push_back( triggerAlgo );
909 iEvent.
put( triggerAlgos );
910 iEvent.
put( triggerConditions );
914 iEvent.
put( triggerObjectsStandAlone );
unsigned int set() const
low-level const accessors for data members
unsigned int size() const
number of trigger paths in trigger table
collection_type::const_iterator const_iterator
T getParameter(std::string const &) const
bool getByLabel(std::string const &label, Handle< PROD > &result) const
std::string name() const
Get the filter label.
Analysis-level L1 trigger algorithm class.
const int l1Results(const edm::Event &iEvent, const edm::InputTag &l1GtRecordInputTag, const edm::InputTag &l1GtReadoutRecordInputTag, const std::string &nameAlgoTechTrig, bool &decisionBeforeMask, bool &decisionAfterMask, int &prescaleFactor, int &triggerMask) const
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
edm::InputTag tagL1ExtraForJet_
const std::string moduleType(const std::string &module) const
C++ class name of module.
bool autoProcessNameL1ExtraHTM_
virtual void beginLuminosityBlock(edm::LuminosityBlock &iLuminosityBlock, const edm::EventSetup &iSetup)
bool autoProcessNameL1ExtraIsoEG_
const std::string & triggerName(unsigned int triggerIndex) const
edm::InputTag tagTriggerEvent_
PATTriggerProducer(const edm::ParameterSet &iConfig)
HLTConfigProvider hltConfig_
bool setStatus(int status)
enum start value shifted to 81 so as to avoid clashes with PDG codes
bool autoProcessNameL1ExtraTauJet_
virtual bool hasCollection(const std::string &collName) const
Checks, if a certain label of original collection is assigned (method overrides)
#define DEFINE_FWK_MODULE(type)
edm::InputTag tagTriggerResults_
const bool l1AlgoTechTrigBitNumber(const std::string &nameAlgoTechTrig, TriggerCategory &trigCategory, int &bitNumber) const
static const unsigned int NumberTechnicalTriggers
bool wasAccept() const
Get the success flag.
std::string name() const
Get L1 algorithm name.
const std::vector< std::vector< std::pair< bool, std::string > > > & hltL1GTSeeds() const
The single EDProduct containing the HLT Prescale Table.
void setGtlResult(bool gtlResult)
Set L1 algorithm GTL result.
void addTriggerObjectType(trigger::TriggerObjectType triggerObjectType)
Add a new trigger object type.
bool exists(std::string const ¶meterName) const
checks if a parameter exists
std::vector< int > SingleCombInCond
typedefs
edm::InputTag tagL1ExtraETM_
void addTriggerObjectType(trigger::TriggerObjectType triggerObjectType)
Add a new trigger object type identifier.
std::string hltPrescaleLabel_
std::vector< TriggerObjectStandAlone > TriggerObjectStandAloneCollection
Collection of TriggerObjectStandAlone.
void addObjectKey(unsigned objectKey)
Add a new trigger object collection index.
bool getByLabel(std::string const &label, Handle< PROD > &result) const
const std::map< std::string, std::vector< unsigned int > > & prescaleTable() const
Analysis-level trigger object class.
const std::map< std::string, std::vector< unsigned int > > & table() const
bool autoProcessNameL1ExtraMu_
void addFilterLabel(const std::string &filterLabel)
Methods.
bool autoProcessNameL1ExtraCenJet_
const std::string & moduleLabel(unsigned int trigger, unsigned int module) const
const std::vector< std::string > & saveTagsModules(unsigned int trigger) const
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
std::vector< TriggerAlgorithm > TriggerAlgorithmCollection
Collection of TriggerAlgorithm.
void addPathName(const std::string &pathName, bool pathLastFilterAccepted=true, bool pathL3FilterAccepted=true)
Adds a new HLT path name.
bool addPathModuleLabels_
Analysis-level HLTrigger filter class.
Produces the full or stand-alone PAT trigger information collections.
unsigned int prescaleValue(unsigned int set, const std::string &trigger) const
HLT prescale value in specific prescale set for a specific trigger path.
unsigned int moduleIndex(unsigned int trigger, const std::string &module) const
slot position of module on trigger path (0 to size-1)
edm::InputTag tagL1ExtraIsoEG_
void setCollection(const std::string &collName)
Methods.
Analysis-level L1 trigger condition class.
Analysis-level HLTrigger path class.
static const unsigned int NumberPhysTriggersExtended
edm::InputTag tagL1GlobalTriggerObjectMapRecord_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
const std::vector< std::string > & labels() const
trigger::HLTPrescaleTable hltPrescaleTableLumi_
ProcessHistory const & processHistory() const
static const unsigned int NumberPhysTriggers
void retrieveL1EventSetup(const edm::EventSetup &)
retrieve all the relevant L1 trigger event setup records and cache them to improve the speed ...
void setSaveTags(bool saveTags)
Set the L3 status.
void setLogicalExpression(const std::string &expression)
Set L1 algorithm logical expression.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const bool saveTags(const std::string &module) const
Is module an L3 filter (ie, tracked saveTags=true)
virtual void beginRun(edm::Run &iRun, const edm::EventSetup &iSetup)
std::vector< TriggerFilter > TriggerFilterCollection
Collection of TriggerFilter.
edm::InputTag tagL1ExtraMu_
void setCategory(L1GtConditionCategory category)
Set the condition category.
int prescaleSet(const edm::Event &iEvent, const edm::EventSetup &iSetup) const
std::vector< size_type > Keys
void addObjectKey(unsigned objectKey)
Add a new trigger object collection index.
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
bool autoProcessNameL1ExtraForJet_
const std::vector< std::string > & prescaleLabels() const
low-level data member access
void addConditionKey(unsigned conditionKey)
Add a new trigger condition collection index.
void setType(const std::string &type)
Set the filter module type.
edm::InputTag tagL1ExtraTauJet_
static const std::string category("Muon|RecoMuon|L3MuonCandidateProducerFromMuons")
std::vector< TriggerObject > TriggerObjectCollection
Collection of TriggerObject.
unsigned int prescaleSize() const
trigger::HLTPrescaleTable hltPrescaleTableRun_
std::vector< TriggerCondition > TriggerConditionCollection
Collection of TriggerCondition.
bool autoProcessNameL1ExtraETM_
std::vector< std::string > exludeCollections_
bool autoProcessNameL1ExtraNoIsoEG_
std::vector< L1Seed > L1SeedCollection
Collection of L1Seed.
void addTriggerObjectType(trigger::TriggerObjectType triggerObjectType)
Add a new trigger object type identifier.
std::vector< SingleCombInCond > CombinationsInCond
all the object combinations evaluated to true in the condition
std::vector< TriggerPath > TriggerPathCollection
Collection of TriggerPath.
edm::InputTag tagL1ExtraNoIsoEG_
void setType(L1GtConditionType type)
Set the condition type.
edm::InputTag tagL1ExtraCenJet_
Analysis-level trigger object class (stand-alone)
edm::InputTag tagL1ExtraHTM_
std::string labelHltPrescaleTable_