12 #ifndef TauAnalysis_MCEmbeddingTools_TrackMergeremb_H
13 #define TauAnalysis_MCEmbeddingTools_TrackMergeremb_H
33 template <
typename T1>
48 std::map<std::string, std::vector<edm::EDGetTokenT<TrackCollectionemb> > >
inputs_;
49 std::map<std::string, std::vector<edm::EDGetTokenT<edm::ValueMap<reco::MuonQuality> > > >
inputs_qual_;
61 template <
typename T1>
64 std::vector<edm::InputTag> inCollections = iConfig.
getParameter<std::vector<edm::InputTag> >(
"mergCollections");
65 for (
const auto& inCollection : inCollections) {
66 inputs_[inCollection.instance()].push_back(consumes<TrackCollectionemb>(inCollection));
69 for (
const auto& toproduce : inputs_) {
70 willproduce(toproduce.first, alias);
74 template <
typename T1>
79 template <
typename T1>
81 for (
auto input_ : inputs_) {
82 merg_and_put(iEvent, input_.first, input_.second);
void willconsume(const edm::ParameterSet &iConfig)
static PFTauRenderPlugin instance
std::map< std::string, std::vector< edm::EDGetTokenT< TrackCollectionemb > > > inputs_
edm::EDGetTokenT< reco::MuonToMuonMap > inputs_fixmurefs_
~TrackMergeremb() override
edm::EDGetTokenT< reco::TrackCollection > inputs_fixtrackcol_
void willproduce(std::string instance, std::string alias)
std::map< std::string, std::vector< edm::EDGetTokenT< edm::ValueMap< reco::MuonQuality > > > > inputs_qual_
edm::EDGetTokenT< reco::MuonCollection > inputs_fixmucol_
T getParameter(std::string const &) const
void merg_and_put(edm::Event &, std::string, std::vector< edm::EDGetTokenT< TrackCollectionemb > > &)
edm::ValueMap< reco::TrackRefVector > TrackToTrackMapnew
edm::EDGetTokenT< TrackToTrackMapnew > inputs_fixtrackrefs_
TrackMergeremb(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override