2 #include "Math/GenVector/VectorUtil.h"
13 :
jetSrc(iConfig.getParameter<
vtag>(
"JetSrc")), mEt_Min(iConfig.getParameter<double>(
"EtMin")) {
14 for (vtag::const_iterator it =
jetSrc.begin(); it !=
jetSrc.end(); ++it) {
19 produces<CaloJetCollection>();
37 for (CaloJetCollection::const_iterator iTau = tauJets->begin(); iTau != tauJets->end(); ++iTau) {
42 myTmpJets.push_back(myJet);
54 std::sort(myTmpJets.begin(), myTmpJets.end(),
sorter);
57 while (!myTmpJets.empty()) {
58 tauL2jets->push_back(myTmpJets[0]);
60 for (
unsigned int i = 1;
i < myTmpJets.size(); ++
i) {
63 tmp.push_back(myTmpJets[
i]);
78 desc.add<std::vector<edm::InputTag> >(
"JetSrc",
inputTags)->setComment(
"CaloJet collections to merge");
79 desc.add<
double>(
"EtMin", 20.0)->setComment(
"Minimal ET of jet to merge");
80 descriptions.
setComment(
"Merges CaloJet collections removing duplicates");
81 descriptions.
add(
"L2TauJetsMerger",
desc);