This class creates a list of candidates based on the last accepted filter
- Author
- Paolo Meridiani
Definition at line 23 of file CandidateTriggerObjectProducer.h.
Definition at line 50 of file CandidateTriggerObjectProducer.cc.
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));
References edm::HLTGlobalStatus::accept(), cms::cuda::assert(), edm::HLTGlobalStatus::error(), trigger::TriggerEvent::filterIds(), trigger::TriggerEvent::filterIndex(), trigger::TriggerEvent::filterKeys(), trigger::TriggerEvent::getObjects(), HltComparatorCreateWorkflow::hltConfig, HLTPrescaleProvider::hltConfigProvider(), hltPrescaleProvider_, mps_fire::i, trigger::TriggerObject::id(), iEvent, HLT_FULL_cff::InputTag, edm::HandleBase::isValid(), SiStripPI::max, HerwigMaxPtPartonFilter_cfi::moduleLabel, eostools::move(), dqmiodumpmetadata::n, reco::Particle::p4(), trigger::TriggerObject::particle(), hltrates_dqm_sourceclient-live_cfg::prescales, HLTPrescaleProvider::prescaleValues(), processName_, edm::HLTGlobalStatus::size(), AlCaHLTBitMon_QueryRunRegistry::string, triggerEventToken_, triggerName_, triggerResultsToken_, and edm::HLTGlobalStatus::wasrun().