00001 #include "FWCore/Framework/interface/Frameworkfwd.h" 00002 #include "FWCore/Framework/interface/EDProducer.h" 00003 #include "FWCore/Framework/interface/Event.h" 00004 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00005 #include "FWCore/ParameterSet/interface/InputTag.h" 00006 00007 #include "DataFormats/JetReco/interface/Jet.h" 00008 #include "DataFormats/JetReco/interface/JetFloatAssociation.h" 00009 #include "DataFormats/JetReco/interface/JetTracksAssociation.h" 00010 00011 #include "PhysicsTools/JetCharge/interface/JetCharge.h" 00012 00013 class JetChargeProducer : public edm::EDProducer { 00014 public: 00015 typedef reco::JetFloatAssociation::Container JetChargeCollection; 00016 00017 explicit JetChargeProducer(const edm::ParameterSet &cfg) ; 00018 virtual void produce(edm::Event&, const edm::EventSetup&); 00019 private: 00020 edm::InputTag src_; 00021 JetCharge algo_; 00022 }; 00023 00024 00025