30 template <
class T,
class C = T>
51 produces<JetValueMap>();
65 <<
"The number of value labels does not match the number of values. Values will not be evaluated.";
78 std::vector<float>
values(h_jets1->size(), -99999);
79 std::map<std::string, std::vector<float> > valuesMap;
82 valuesMap.insert(std::make_pair(
valueLabels_[
i], std::vector<float>(h_jets1->size(), -99999)));
84 std::vector<bool> jets1_locks(h_jets1->size(),
false);
89 float matched_dR2 = 1e9;
90 int matched_index = -1;
95 int index = jjet - jbegin;
97 if (jets1_locks.at(
index))
100 float temp_dR2 =
reco::deltaR2(ijet->eta(), ijet->phi(), jjet->eta(), jjet->phi());
101 if (temp_dR2 < matched_dR2) {
102 matched_dR2 = temp_dR2;
103 matched_index =
index;
107 if (matched_index >= 0) {
109 edm::LogInfo(
"MatchedJetsFarApart") <<
"Matched jets separated by dR greater than distMax=" <<
distMax_;
111 jets1_locks.at(matched_index) =
true;
123 std::unique_ptr<JetValueMap> jetValueMap(
new JetValueMap());
134 std::unique_ptr<JetValueMap> jetValueMap(
new JetValueMap());
154 std::map<std::string, std::unique_ptr<const StringObjectFunction<C> > >
evaluationMap_;