26 : inputMuons_(consumes<std::
vector<pat::
Muon>>(iConfig.getParameter<edm::
InputTag>(
"src"))),
28 innerTrackOnly_(iConfig.getParameter<bool>(
"innerTrackOnly")) {}
41 tracksOut.emplace_back(*trackRef);
49 desc.
setComment(
"Simple prooducer to generate track from pat::muons ");
51 desc.
add<
bool>(
"innerTrackOnly",
true)->setComment(
"use only inner track");
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
bool isNonnull() const
Checks for non-null.
~TrackProducerFromPatMuons() override=default
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
#define DEFINE_FWK_MODULE(type)
std::vector< Track > TrackCollection
collection of Tracks
TrackProducerFromPatMuons(const edm::ParameterSet &)
void setComment(std::string const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool get(ProductID const &oid, Handle< PROD > &result) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const edm::EDPutTokenT< reco::TrackCollection > outputTrack_
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
const bool innerTrackOnly_
const edm::EDGetTokenT< std::vector< pat::Muon > > inputMuons_