46 : electronToken_(consumes<
edm::
View<
reco::GsfElectron> >(iConfig.getParameter<
edm::
InputTag>(
"electronSource"))),
50 produces<std::vector<Conversion> >();
68 std::vector<Conversion> *patConversions =
new std::vector<Conversion>();
70 for (reco::ConversionCollection::const_iterator
conv = hConversions->begin();
conv != hConversions->end(); ++
conv) {
78 double vtxProb = TMath::Prob(
vtx.chi2(),
vtx.ndof());
82 double lxy = (mom.x() * dbsx + mom.y() * dbsy) / mom.rho();
85 for (std::vector<uint8_t>::const_iterator it =
conv->nHitsBeforeVtx().begin();
86 it !=
conv->nHitsBeforeVtx().end();
97 patConversions->push_back(anConversion);
105 std::unique_ptr<std::vector<Conversion> > ptr(patConversions);