45 desc.add<
bool>(
"UseQuality",
true);
46 desc.add<std::vector<edm::InputTag>>(
48 descriptions.
add(
"lightpftrack",
desc);
55 produces<reco::PFRecTrackCollection>();
57 std::vector<InputTag>
tags = iConfig.
getParameter<vector<InputTag>>(
"TkColList");
59 for (
unsigned int i = 0;
i <
tags.size(); ++
i)
70 auto PfTrColl = std::make_unique<reco::PFRecTrackCollection>();
77 for (
unsigned int i = 0;
i < Tk.size();
i++) {
83 bool mymsgwarning =
false;
86 PfTrColl->push_back(pftrack);
reconstructed track used as an input to particle flow
T getParameter(std::string const &) const
LightPFTrackProducer(const edm::ParameterSet &)
Constructor.
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
TrackQuality
track quality
T const * product() const
std::vector< Track > TrackCollection
collection of Tracks
~LightPFTrackProducer() override
Destructor.
void produce(edm::Event &, const edm::EventSetup &) override
Produce the PFRecTrack collection.
PFTrackTransformer * pfTransformer_
PFTrackTransformer.
bool useQuality_
TRACK QUALITY.
#define DEFINE_FWK_MODULE(type)
void endRun(const edm::Run &, const edm::EventSetup &) override
static TrackQuality qualityByName(const std::string &name)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void beginRun(const edm::Run &, const edm::EventSetup &) override
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldToken_
std::vector< edm::EDGetTokenT< reco::TrackCollection > > tracksContainers_
reco::TrackBase::TrackQuality trackQuality_