28 std::vector<GenParticle 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);
72 std::make_pair(tPCH[tpindex],
78 return outputCollection;
91 int charge = (*tp)->charge();
95 LogDebug(
"TrackAssociator") <<
"=========LOOKING FOR ASSOCIATION==========="
97 <<
"TrackingParticle #" << tpindex <<
" with pt=" <<
sqrt((*tp)->momentum().perp2())
99 <<
"==========================================="
110 for (
unsigned int i = 0;
i < 5;
i++) {
111 for (
unsigned int j = 0;
j < 5;
j++) {
113 recoTrackCovMatrix(
i,
j) = 0;
117 recoTrackCovMatrix.Invert();
119 double chi2 = getChi2(rParameters, recoTrackCovMatrix, momAtVtx, vert,
charge,
bs);
124 std::make_pair(tC[tindex],
130 return outputCollection;