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");
BranchAliasSetterT< ProductType > produces()
declare what type of product will make and with which optional label
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
bool isNonnull() const
Checks for non-null.
~TrackProducerFromPatMuons() override=default
std::vector< Track > TrackCollection
collection of Tracks
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
TrackProducerFromPatMuons(const edm::ParameterSet &)
void setComment(std::string const &value)
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool get(ProductID const &oid, Handle< PROD > &result) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
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_