36 m_Jets (config.getParameter<edm::
InputTag>(
"Jets") ),
37 m_JetTags(config.getParameter<edm::
InputTag>(
"JetTags") ),
38 m_MinTag (config.getParameter<double> (
"MinTag") ),
39 m_MaxTag (config.getParameter<double> (
"MaxTag") ),
40 m_MinJets(config.getParameter<int> (
"MinJets") ),
41 m_TriggerType(config.getParameter<int> (
"TriggerType") )
46 edm::LogInfo(
"") <<
" (HLTJetTag) trigger cuts: " << std::endl
47 <<
"\ttype of jets used: " <<
m_Jets.
encode() << std::endl
49 <<
"\tmin/max tag value: [" <<
m_MinTag <<
".." <<
m_MaxTag <<
"]" << std::endl
63 makeHLTFilterDescription(desc);
66 desc.
add<
double>(
"MinTag",2.0);
67 desc.
add<
double>(
"MaxTag",999999.0);
68 desc.
add<
int>(
"MinJets",1);
69 desc.
add<
int>(
"TriggerType",0);
87 typedef vector<T> TCollection;
91 event.getByToken(m_JetsToken, h_Jets);
95 event.getByToken(m_JetTagsToken, h_JetTags);
98 auto const &
handle = h_JetTags;
99 auto const & dependent =
handle->keyProduct();
100 if (not dependent.isNull() and not dependent.hasCache()) {
102 edm::Provenance const & dependent_provenance =
event.getProvenance(dependent.id());
114 jetRef = TRef(h_Jets,
jet->first.key());
116 <<
" : Et = " <<
jet->first->et()
117 <<
" , tag value = " <<
jet->second;
120 if ( (m_MinTag <= jet->
second) and (
jet->second <= m_MaxTag) ) {
124 filterproduct.
addObject(m_TriggerType,jetRef);
129 bool accept = (nTag >= m_MinJets);
132 <<
" nTag/nJet = " << nTag <<
"/" << nJet << std::endl;
std::string defaultModuleLabel()
edm::EDGetTokenT< reco::JetTagCollection > m_JetTagsToken
transient_vector_type::const_iterator const_iterator
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
void addObject(int id, const reco::RecoEcalCandidateRef &ref)
setters for L3 collections: (id=physics type, and Ref<C>)
U second(std::pair< T, U > const &p)
HLTJetTag(const edm::ParameterSet &config)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
edm::EDGetTokenT< std::vector< T > > m_JetsToken
void addCollectionTag(const edm::InputTag &collectionTag)
collectionTags
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual bool hltFilter(edm::Event &event, const edm::EventSetup &setup, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
BranchDescription const & constBranchDescription() const
std::string const & branchName() const
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")