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
std::vector< Track > TrackCollection
collection of Tracks
bool isNonnull() const
Checks for non-null.
muons
the two sets of parameters below are mutually exclusive, depending if RECO or ALCARECO is used the us...
TrackProducerFromPatMuons(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
const edm::EDPutTokenT< reco::TrackCollection > outputTrack_
const bool innerTrackOnly_
const edm::EDGetTokenT< std::vector< pat::Muon > > inputMuons_