73 : srcTag_(iConfig.getParameter<
edm::
InputTag>(
"src")),
74 bsSrcTag_(iConfig.getParameter<
edm::
InputTag>(
"beamSpot")),
76 primaryMass_(iConfig.getParameter<double>(
"primaryMass")),
77 primaryWidth_(iConfig.getParameter<double>(
"primaryWidth")),
78 secondaryMass_(iConfig.getParameter<double>(
"secondaryMass")),
79 sigmaPositionCutValue_(iConfig.getParameter<double>(
"sigmaPositionCut")),
80 chi2CutValue_(iConfig.getParameter<double>(
"chi2Cut")),
81 errorRescaleValue_(iConfig.getParameter<double>(
"rescaleError")),
87 produces<std::vector<TrackParamConstraint> >();
88 produces<TrackParamConstraintAssociationCollection>();
114 iEvent.getRefBeforePut<std::vector<TrackParamConstraint> >();
115 std::unique_ptr<std::vector<TrackParamConstraint> > pairs(
new std::vector<TrackParamConstraint>);
116 std::unique_ptr<TrackParamConstraintAssociationCollection>
output(
124 std::vector<reco::TransientTrack> ttracks(2);
126 ttracks[0].setTrackingGeometry(trackingGeometry);
128 ttracks[1].setTrackingGeometry(trackingGeometry);
137 std::pair<bool, TrajectoryStateOnSurface> oldInnermostState1 =
innermostState(ttracks[0]);
138 std::pair<bool, TrajectoryStateOnSurface> oldInnermostState2 =
innermostState(ttracks[1]);
139 if (!oldInnermostState1.second.isValid() || !oldInnermostState2.second.isValid())
151 if (!match1 || !match2)
203 double deltaX = lp1.
x() - lp2.
x();
204 double deltaY = lp1.
y() - lp2.
y();