2 #include "Math/GenVector/VectorUtil.h" 13 :
jetSrc(iConfig.getParameter<
vtag>(
"JetSrc")), mEt_Min(iConfig.getParameter<double>(
"EtMin")) {
19 produces<CaloJetCollection>();
36 for (CaloJetCollection::const_iterator iTau = tauJets->begin(); iTau != tauJets->end(); ++iTau) {
41 myTmpJets.push_back(myJet);
55 while (!myTmpJets.empty()) {
56 tauL2jets->push_back(myTmpJets[0]);
58 for (
unsigned int i = 1;
i < myTmpJets.size(); ++
i) {
59 double DR2 = ROOT::Math::VectorUtil::DeltaR2(myTmpJets[0].p4(), myTmpJets[
i].p4());
61 tmp.push_back(myTmpJets[
i]);
76 desc.add<std::vector<edm::InputTag> >(
"JetSrc",
inputTags)->setComment(
"CaloJet collections to merge");
77 desc.add<
double>(
"EtMin", 20.0)->setComment(
"Minimal ET of jet to merge");
78 descriptions.
setComment(
"Merges CaloJet collections removing duplicates");
79 descriptions.
add(
"L2TauJetsMerger",
desc);
L2TauJetsMerger(const edm::ParameterSet &)
Jets made from CaloTowers.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~L2TauJetsMerger() override
vtoken_cjets jetSrc_token
#define DEFINE_FWK_MODULE(type)
void setComment(std::string const &value)
inputTags
All input tags are specified in this pset for convenience.
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< edm::InputTag > vtag
void setPdgId(int pdgId) final
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects