65 : electronToken_(consumes<
edm::
View<
reco::GsfElectron> >(iConfig.getParameter<
edm::
InputTag>(
"electronSource"))),
69 produces<std::vector<Conversion> >();
87 std::vector<Conversion> *patConversions =
new std::vector<Conversion>();
89 for (reco::ConversionCollection::const_iterator
conv = hConversions->begin();
conv != hConversions->end(); ++
conv) {
97 double vtxProb = TMath::Prob(
vtx.chi2(),
vtx.ndof());
101 double lxy = (mom.x() * dbsx + mom.y() * dbsy) / mom.rho();
104 for (std::vector<uint8_t>::const_iterator it =
conv->nHitsBeforeVtx().begin();
105 it !=
conv->nHitsBeforeVtx().end();
107 if ((*it) > nHitsMax)
116 patConversions->push_back(anConversion);
124 std::unique_ptr<std::vector<Conversion> > ptr(patConversions);