File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2141,9 +2141,9 @@ struct forwardlambdakzeroanalysis {
21412141
21422142 // get decay vertex coordinates
21432143 Vec3D vtx = fitter.getPCACandidate ();
2144- pairInfo.X = vtx[0 ];
2145- pairInfo.Y = vtx[1 ];
2146- pairInfo.Z = vtx[2 ];
2144+ pairInfo.X = vtx[0 ]-collision. posX () ;
2145+ pairInfo.Y = vtx[1 ]-collision. posY () ;
2146+ pairInfo.Z = vtx[2 ]-collision. posZ () ;
21472147
21482148 // get daughter DCA to PV
21492149 pairInfo.dcaPosToPVxy = std::sqrt (dcaPosToPVx * dcaPosToPVx + dcaPosToPVy * dcaPosToPVy);
@@ -2173,16 +2173,16 @@ struct forwardlambdakzeroanalysis {
21732173 pairInfo.OpAngle = track1Momentum.Angle (track2Momentum);
21742174
21752175 // Radius
2176- pairInfo.Radius = std::sqrt (vtx[ 0 ] * vtx[ 0 ] + vtx[ 1 ] * vtx[ 1 ] );
2176+ pairInfo.Radius = std::sqrt (pairInfo. X * pairInfo. X + pairInfo. Y * pairInfo. Y );
21772177
21782178 // Dist over tot mom.
21792179 float px = pairInfo.positiveMomentum [0 ] + pairInfo.negativeMomentum [0 ];
21802180 float py = pairInfo.positiveMomentum [1 ] + pairInfo.negativeMomentum [1 ];
21812181 float pz = pairInfo.positiveMomentum [2 ] + pairInfo.negativeMomentum [2 ];
2182- pairInfo.DistOverTotMom = std::sqrt (vtx[ 0 ] * vtx[ 0 ] + vtx[ 1 ] * vtx[ 1 ] + vtx[ 2 ] * vtx[ 2 ] ) / std::sqrt (px * px + py * py + pz * pz);
2182+ pairInfo.DistOverTotMom = std::sqrt (pairInfo. X * pairInfo. X + pairInfo. Y * pairInfo. Y + pairInfo. Z * pairInfo. Z ) / std::sqrt (px * px + py * py + pz * pz);
21832183
21842184 // Z dist over pz
2185- pairInfo.ZdistOverPz = vtx[ 2 ] / pz;
2185+ pairInfo.ZdistOverPz = pairInfo. Z / pz;
21862186
21872187 // V0 Momenta
21882188 pairInfo.pT = std::sqrt (px * px + py * py);
You can’t perform that action at this time.
0 commit comments