70 : srcTag_(iConfig.getParameter<
edm::
InputTag>(
"src")),
71 bsSrcTag_(iConfig.getParameter<
edm::
InputTag>(
"beamSpot")),
73 primaryMass_(iConfig.getParameter<double>(
"primaryMass")),
74 primaryWidth_(iConfig.getParameter<double>(
"primaryWidth")),
75 secondaryMass_(iConfig.getParameter<double>(
"secondaryMass")),
76 sigmaPositionCutValue_(iConfig.getParameter<double>(
"sigmaPositionCut")),
77 chi2CutValue_(iConfig.getParameter<double>(
"chi2Cut")),
78 errorRescaleValue_(iConfig.getParameter<double>(
"rescaleError")) {
82 produces<std::vector<TrackParamConstraint> >();
83 produces<TrackParamConstraintAssociationCollection>();
108 iEvent.getRefBeforePut<std::vector<TrackParamConstraint> >();
109 std::unique_ptr<std::vector<TrackParamConstraint> > pairs(
new std::vector<TrackParamConstraint>);
110 std::unique_ptr<TrackParamConstraintAssociationCollection>
output(
118 std::vector<reco::TransientTrack> ttracks(2);
120 ttracks[0].
setES(iSetup);
122 ttracks[1].
setES(iSetup);
131 std::pair<bool, TrajectoryStateOnSurface> oldInnermostState1 =
innermostState(ttracks[0]);
132 std::pair<bool, TrajectoryStateOnSurface> oldInnermostState2 =
innermostState(ttracks[1]);
133 if (!oldInnermostState1.second.isValid() || !oldInnermostState2.second.isValid())
139 if (!tbdTrajState.isValid())
143 bool match1 =
match(tbdTrajState.trajectoryStates(
true).first, oldInnermostState1.second);
144 bool match2 =
match(tbdTrajState.trajectoryStates(
true).second, oldInnermostState2.second);
145 if (!match1 || !match2)
152 pairs->push_back(tbdTrajState.trajectoryStates(
true).first);
156 pairs->push_back(tbdTrajState.trajectoryStates(
true).second);
197 double deltaX = lp1.
x() - lp2.
x();
198 double deltaY = lp1.
y() - lp2.
y();