60 if (!triggerResultsHandle.
isValid()) {
62 <<
"CandidateTriggerObjectProducer::analyze: Error in getting TriggerResults product from Event!";
67 if (!triggerEventHandle.
isValid()) {
69 <<
"CandidateTriggerObjectProducer::analyze: Error in getting TriggerEvent product from Event!";
81 std::vector<std::string> activeHLTPathsInThisEvent =
hltConfig.triggerNames();
82 std::map<std::string, bool> triggerInMenu;
83 std::map<std::string, bool> triggerUnprescaled;
85 for (std::vector<std::string>::const_iterator iHLT = activeHLTPathsInThisEvent.begin();
86 iHLT != activeHLTPathsInThisEvent.end();
89 if (TString(*iHLT).Contains(TRegexp(TString(
triggerName_)))) {
90 triggerInMenu[*iHLT] =
true;
93 triggerUnprescaled[*iHLT] =
true;
97 for (std::map<std::string, bool>::const_iterator iMyHLT = triggerInMenu.begin(); iMyHLT != triggerInMenu.end();
100 if (!(iMyHLT->second && triggerUnprescaled[iMyHLT->first]))
102 const unsigned int triggerIndex(
hltConfig.triggerIndex(iMyHLT->first));
104 assert(triggerIndex ==
iEvent.triggerNames(*triggerResultsHandle).triggerIndex(iMyHLT->first));
107 if (triggerIndex >=
n) {
109 <<
"CandidateTriggerObjectProducer::analyzeTrigger: path " <<
triggerName_ <<
" - not found!";
115 const std::vector<std::string>& moduleLabels(
hltConfig.saveTagsModules(triggerIndex));
118 if (!(triggerResultsHandle->
wasrun(triggerIndex)) || !(triggerResultsHandle->
accept(triggerIndex)) ||
119 (triggerResultsHandle->
error(triggerIndex))) {
128 for (
unsigned int imodule = 0; imodule < moduleLabels.size(); ++imodule) {
132 if (moduleType.find(
"Level1GTSeed") != std::string::npos)
136 if (filterIndex < triggerEventHandle->sizeFilters()) {
139 const Vids& VIDS(triggerEventHandle->
filterIds(filterIndex));
bool accept() const
Has at least one path accepted the event?
const Keys & filterKeys(trigger::size_type index) const
bool error() const
Has any path encountered an error (exception)
const std::string processName_
HLTConfigProvider const & hltConfigProvider() const
Log< level::Error, false > LogError
bool wasrun() const
Was at least one path run?
unsigned int size() const
Get number of paths stored.
std::pair< TL1, THLT > prescaleValues(const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger)
Combined L1T (pair.first) and HLT (pair.second) prescales per HLT path.
math::XYZPoint Point
point in the space
const TriggerObjectCollection & getObjects() const
HLTPrescaleProvider hltPrescaleProvider_
additional class data memebers
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
const Vids & filterIds(trigger::size_type index) const
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
const edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
module config parameters
std::vector< size_type > Keys
const std::string triggerName_
const edm::EDGetTokenT< trigger::TriggerEvent > triggerEventToken_