27 produces<reco::JPTJetCollection>();
28 produces<reco::CaloJetCollection>();
36 auto jptJets = std::make_unique<reco::JPTJetCollection>();
37 auto caloJets = std::make_unique<reco::CaloJetCollection>();
45 for (
auto const& ijet : h_jets) {
52 for (
auto const& icjet : h_calojets) {
53 double dr2 =
deltaR2(icjet, *rawcalojet);
67 reco::JPTJet newJPTJet(ijet.p4(), orivtx, tmp_specific, ijet.getJetConstituents());
69 newJPTJet.setJetArea(fabs(jetArea));
70 jptJets->push_back(newJPTJet);
90 descriptions.
add(
"slimmedJPTJets",
desc);
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::remove_cv< typename std::remove_reference< argument_type >::type >::type key_type
Jets made from CaloTowers.
const edm::EDGetTokenT< edm::View< reco::JPTJet > > srcToken_
JPTJetSlimmer(edm::ParameterSet const ¶ms)
virtual float jetArea() const
get jet area
const edm::EDGetTokenT< edm::View< reco::CaloJet > > srcCaloToken_
Jets made from CaloJets corrected for ZSP and tracks.
#define DEFINE_FWK_MODULE(type)
const StringCutObjectSelector< reco::Jet > selector_
edm::RefToBase< reco::Jet > theCaloJetRef
void add(std::string const &label, ParameterSetDescription const &psetDescription)
math::XYZPoint Point
point in the space
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
~JPTJetSlimmer() override
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects