00001 #ifndef LightPFTrackProducer_H 00002 #define LightPFTrackProducer_H 00003 00004 #include "FWCore/Framework/interface/EDProducer.h" 00005 #include "FWCore/Framework/interface/Event.h" 00006 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00007 #include "FWCore/Framework/interface/MakerMacros.h" 00008 #include "FWCore/Framework/interface/Frameworkfwd.h" 00009 #include "DataFormats/TrackReco/interface/Track.h" 00010 class PFTrackTransformer; 00011 class LightPFTrackProducer : public edm::EDProducer { 00012 public: 00013 00015 explicit LightPFTrackProducer(const edm::ParameterSet&); 00016 00018 ~LightPFTrackProducer(); 00019 00020 private: 00021 virtual void beginRun(const edm::Run&,const edm::EventSetup&) override ; 00022 virtual void endRun(const edm::Run&,const edm::EventSetup&) override; 00023 00025 virtual void produce(edm::Event&, const edm::EventSetup&) override; 00026 00028 PFTrackTransformer *pfTransformer_; 00029 std::vector<edm::InputTag> tracksContainers_; 00031 bool useQuality_; 00032 reco::TrackBase::TrackQuality trackQuality_; 00033 00034 }; 00035 #endif