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)
~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
bool isNonnull() const
Checks for non-null.
TrackProducerFromPatMuons(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDPutTokenT< reco::TrackCollection > outputTrack_
const bool innerTrackOnly_
const edm::EDGetTokenT< std::vector< pat::Muon > > inputMuons_