23 produces<reco::PFRecTrackCollection>();
25 std::vector<InputTag>
tags = iConfig.
getParameter<vector<InputTag> >(
"TkColList");
54 auto PfTrColl = std::make_unique<reco::PFRecTrackCollection>();
58 bool foundgsf =
false;
72 e(0, 0) = 0.0015 * 0.0015;
73 e(1, 1) = 0.0015 * 0.0015;
87 const vector<Trajectory> dummyTj(0);
96 const vector<Trajectory>* Tj = &dummyTj;
105 for (
unsigned int i = 0;
i < Tk.size();
i++) {
109 bool isMuCandidate =
false;
114 for (
unsigned j = 0;
j < recMuons->size();
j++) {
117 if (muonref->track() == trackRef && muonref->isGlobalMuon()) {
118 isMuCandidate =
true;
124 if (!isMuCandidate) {
133 for (
auto const& gsfTrack : *gsftrackcoll) {
134 if (gsfTrack.seedRef().isNull())
136 auto const&
seed = *(gsfTrack.extra()->seedRef());
137 auto const& ElSeed = dynamic_cast<ElectronSeed const&>(
seed);
138 if (ElSeed.ctfTrack().isNonnull()) {
139 if (ElSeed.ctfTrack() == trackRef) {
169 pftrack.setSTIP(stip);
170 PfTrColl->push_back(pftrack);
192 pftrack.setSTIP(stip);
193 PfTrColl->push_back(pftrack);