Go to the documentation of this file.
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 (
auto inCollection : inCollections) {
66 inputs_[inCollection.instance()].push_back(consumes<TrackCollectionemb>(inCollection));
69 for (
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);
edm::EDGetTokenT< reco::MuonToMuonMap > inputs_fixmurefs_
TrackMergeremb(const edm::ParameterSet &)
void willconsume(const edm::ParameterSet &iConfig)
std::map< std::string, std::vector< edm::EDGetTokenT< TrackCollectionemb > > > inputs_
edm::EDGetTokenT< TrackToTrackMapnew > inputs_fixtrackrefs_
~TrackMergeremb() override
edm::EDGetTokenT< reco::MuonCollection > inputs_fixmucol_
std::map< std::string, std::vector< edm::EDGetTokenT< edm::ValueMap< reco::MuonQuality > > > > inputs_qual_
void willproduce(std::string instance, std::string alias)
edm::ValueMap< reco::TrackRefVector > TrackToTrackMapnew
edm::EDGetTokenT< reco::TrackCollection > inputs_fixtrackcol_
static PFTauRenderPlugin instance
void produce(edm::Event &, const edm::EventSetup &) override
T getParameter(std::string const &) const
void merg_and_put(edm::Event &, std::string, std::vector< edm::EDGetTokenT< TrackCollectionemb > > &)