37 m_Jets (config.getParameter<edm::InputTag> (
"Jets") ),
38 m_JetTags(config.getParameter<edm::InputTag> (
"JetTags") ),
39 m_MinTag (config.getParameter<double> (
"MinTag") ),
40 m_MaxTag (config.getParameter<double> (
"MaxTag") ),
41 m_MinJets(config.getParameter<int> (
"MinJets") ),
42 m_TriggerType(config.getParameter<int> (
"TriggerType") )
45 edm::LogInfo(
"") <<
" (HLTJetTag) trigger cuts: " << std::endl
46 <<
"\ttype of jets used: " <<
m_Jets.
encode() << std::endl
48 <<
"\tmin/max tag value: [" <<
m_MinTag <<
".." <<
m_MaxTag <<
"]" << std::endl
62 makeHLTFilterDescription(desc);
65 desc.
add<
double>(
"MinTag",2.0);
66 desc.
add<
double>(
"MaxTag",999999.0);
67 desc.
add<
int>(
"MinJets",1);
68 desc.
add<
int>(
"TriggerType",0);
86 typedef vector<T> TCollection;
90 event.getByLabel(m_Jets, h_Jets);
94 event.getByLabel(m_JetTags, h_JetTags);
97 auto const &
handle = h_JetTags;
98 auto const & dependent =
handle->keyProduct();
99 if (not dependent.isNull() and not dependent.hasCache()) {
101 edm::Provenance const & dependent_provenance =
event.getProvenance(dependent.id());
113 jetRef = TRef(h_Jets,
jet->first.key());
115 <<
" : Et = " <<
jet->first->et()
116 <<
" , tag value = " <<
jet->second;
119 if ( (m_MinTag <= jet->
second) and (
jet->second <= m_MaxTag) ) {
123 filterproduct.
addObject(m_TriggerType,jetRef);
128 bool accept = (nTag >= m_MinJets);
131 <<
" nTag/nJet = " << nTag <<
"/" << nJet << std::endl;
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)
bool const & dropped() const
virtual bool hltFilter(edm::Event &event, const edm::EventSetup &setup, trigger::TriggerFilterObjectWithRefs &filterproduct)
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
ConstBranchDescription const & constBranchDescription() const
void addCollectionTag(const edm::InputTag &collectionTag)
collectionTags
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::string const & branchName() const
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")