28 std::vector<TrackingParticle const*> tPC;
29 tPC.reserve(tPCH.
size());
30 for (
auto const& ref : tPCH) {
31 tPC.push_back(&(*ref));
36 LogDebug(
"TrackAssociator") <<
"=========LOOKING FOR ASSOCIATION==========="
38 <<
"rec::Track #" << tindex <<
" with pt=" << (*rt)->pt() <<
"\n"
39 <<
"==========================================="
46 for (
unsigned int i = 0;
i < 5;
i++) {
47 for (
unsigned int j = 0;
j < 5;
j++) {
49 recoTrackCovMatrix(
i,
j) = 0;
54 recoTrackCovMatrix.Invert();
57 for (
auto tp = tPC.begin();
tp != tPC.end();
tp++, ++tpindex) {
60 int charge = (*tp)->charge();
66 double chi2 = getChi2(rParameters, recoTrackCovMatrix, momAtVtx, vert,
charge,
bs);
71 std::make_pair(tPCH[tpindex],
77 return outputCollection;
90 int charge = (*tp)->charge();
94 LogDebug(
"TrackAssociator") <<
"=========LOOKING FOR ASSOCIATION==========="
96 <<
"TrackingParticle #" << tpindex <<
" with pt=" <<
sqrt((*tp)->momentum().perp2())
98 <<
"==========================================="
109 for (
unsigned int i = 0;
i < 5;
i++) {
110 for (
unsigned int j = 0;
j < 5;
j++) {
112 recoTrackCovMatrix(
i,
j) = 0;
116 recoTrackCovMatrix.Invert();
118 double chi2 = getChi2(rParameters, recoTrackCovMatrix, momAtVtx, vert,
charge,
bs);
123 std::make_pair(tC[tindex],
129 return outputCollection;