00001 #ifndef DataMixingGeneralTrackWorker_h 00002 #define SimDataMixingGeneralTrackWorker_h 00003 00017 #include "FWCore/Framework/interface/Event.h" 00018 #include "FWCore/Framework/interface/EventPrincipal.h" 00019 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00020 #include "FWCore/Framework/interface/Selector.h" 00021 00022 #include "DataFormats/Provenance/interface/ProductID.h" 00023 #include "DataFormats/Common/interface/Handle.h" 00024 //Data Formats 00025 #include "DataFormats/TrackReco/interface/Track.h" 00026 #include "DataFormats/TrackReco/interface/TrackFwd.h" 00027 #include "DataFormats/TrackReco/interface/TrackExtra.h" 00028 00029 #include <map> 00030 #include <vector> 00031 #include <string> 00032 00033 00034 00035 namespace edm 00036 { 00037 class DataMixingGeneralTrackWorker 00038 { 00039 public: 00040 00041 DataMixingGeneralTrackWorker(); 00042 00044 explicit DataMixingGeneralTrackWorker(const edm::ParameterSet& ps); 00045 00047 virtual ~DataMixingGeneralTrackWorker(); 00048 00049 void putGeneralTrack(edm::Event &e) ; 00050 void addGeneralTrackSignals(const edm::Event &e); 00051 void addGeneralTrackPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId); 00052 00053 00054 private: 00055 // data specifiers 00056 00057 edm::InputTag GeneralTrackcollectionSig_ ; // primary name given to collection of GeneralTracks 00058 edm::InputTag GeneralTrackLabelSig_ ; // secondary name given to collection of GeneralTracks 00059 edm::InputTag GeneralTrackPileInputTag_ ; // InputTag for pileup tracks 00060 std::string GeneralTrackCollectionDM_ ; // secondary name to be given to new GeneralTrack 00061 00062 // 00063 00064 std::auto_ptr<reco::TrackCollection> NewTrackList_; 00065 00066 00067 }; 00068 }//edm 00069 00070 #endif