@@ -266,7 +266,7 @@ struct BJetTreeCreator {
266266 double energySV = candSV.e ();
267267
268268 if (produceTree) {
269- bjetSVParamsTable (bjetParamsTable.lastIndex (), candSV.pt (), deltaRJetSV, massSV, energySV / myJet.energy (), candSV.impactParameterXY (), candSV.cpa (), candSV.chi2PCA (), candSV.decayLengthXY (), candSV.errorDecayLengthXY (), candSV.decayLength (), candSV.errorDecayLength ());
269+ bjetSVParamsTable (bjetParamsTable.lastIndex () + 1 , candSV.pt (), deltaRJetSV, massSV, energySV / myJet.energy (), candSV.impactParameterXY (), candSV.cpa (), candSV.chi2PCA (), candSV.decayLengthXY (), candSV.errorDecayLengthXY (), candSV.decayLength (), candSV.errorDecayLength ());
270270 }
271271 svIndices.push_back (bjetSVParamsTable.lastIndex ());
272272
@@ -336,7 +336,7 @@ struct BJetTreeCreator {
336336 }
337337
338338 if (produceTree) {
339- bjetTracksParamsTable (bjetParamsTable.lastIndex (), constituent.pt (), constituent.eta (), dotProduct, dotProduct / analysisJet.p (), deltaRJetTrack, TMath::Abs (constituent.dcaXY ()) * sign, TMath::Sqrt (constituent.sigmaDcaXY2 ()), dcaXYZ * sign, TMath::Sqrt (sigmaDcaXYZ2), constituent.p () / analysisJet.p (), RClosestSV);
339+ bjetTracksParamsTable (bjetParamsTable.lastIndex () + 1 , constituent.pt (), constituent.eta (), dotProduct, dotProduct / analysisJet.p (), deltaRJetTrack, TMath::Abs (constituent.dcaXY ()) * sign, TMath::Sqrt (constituent.sigmaDcaXY2 ()), dcaXYZ * sign, TMath::Sqrt (sigmaDcaXYZ2), constituent.p () / analysisJet.p (), RClosestSV);
340340 }
341341 trackIndices.push_back (bjetTracksParamsTable.lastIndex ());
342342 }
@@ -381,7 +381,7 @@ struct BJetTreeCreator {
381381 registry.fill (HIST (" h2_nSV_jetpT" ), analysisJet.pt (), SVsIndices.size () < 250 ? SVsIndices.size () : 249 );
382382
383383 if (produceTree) {
384- bjetConstituentsTable (bjetParamsTable.lastIndex (), tracksIndices, SVsIndices);
384+ bjetConstituentsTable (bjetParamsTable.lastIndex () + 1 , tracksIndices, SVsIndices);
385385 bjetParamsTable (analysisJet.pt (), analysisJet.eta (), analysisJet.phi (), tracksIndices.size (), SVsIndices.size (), analysisJet.mass (), 0 , analysisJet.r ());
386386 }
387387 }
@@ -464,7 +464,7 @@ struct BJetTreeCreator {
464464 }
465465
466466 if (produceTree) {
467- bjetConstituentsTable (bjetParamsTable.lastIndex (), tracksIndices, SVsIndices);
467+ bjetConstituentsTable (bjetParamsTable.lastIndex () + 1 , tracksIndices, SVsIndices);
468468 bjetParamsTable (analysisJet.pt (), analysisJet.eta (), analysisJet.phi (), tracksIndices.size (), SVsIndices.size (), analysisJet.mass (), jetFlavor, analysisJet.r ());
469469 }
470470 }
0 commit comments