Skip to content

Commit f71afab

Browse files
sadekrshahor02
authored andcommitted
Fwd Secondary Vertexing: Minor change on search range for dichotomy method + cleaned unnecessary cout
1 parent 1f9803d commit f71afab

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Detectors/Vertexing/include/DetectorsVertexing/FwdDCAFitterN.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -767,13 +767,13 @@ void FwdDCAFitterN<N, Args...>::findZatXY_mid(int mCurHyp)
767767
{
768768
// look into dXY of T0 - T1 between 2 points(0,40cm); the one with the highest dXY is moved to mid
769769

770-
double startPoint = 0.;
771-
double endPoint = 20.; // first disk
770+
double startPoint = -40.;
771+
double endPoint = 50.;
772772
double midPoint = 0.5 * (startPoint + endPoint);
773773

774774
double z[2][2] = {{startPoint, endPoint}, {startPoint, endPoint}}; // z for tracks 0/1 on starting poing and endpoint
775775

776-
double DeltaZ = endPoint - startPoint;
776+
double DeltaZ = std::abs(endPoint - startPoint);
777777

778778
double newX[2][2];
779779
double newY[2][2];
@@ -810,7 +810,7 @@ void FwdDCAFitterN<N, Args...>::findZatXY_mid(int mCurHyp)
810810
dstXY[1] = (newX[0][1] - newX[1][1]) * (newX[0][1] - newX[1][1]) +
811811
(newY[0][1] - newY[1][1]) * (newY[0][1] - newY[1][1]);
812812

813-
DeltaZ = endPoint - startPoint;
813+
DeltaZ = std::abs(endPoint - startPoint);
814814

815815
if (DeltaZ < epsilon) {
816816
finalZ = 0.5 * (startPoint + endPoint);
@@ -1197,7 +1197,6 @@ bool FwdDCAFitterN<N, Args...>::minimizeChi2NoErr()
11971197
return false;
11981198
}
11991199
VecND dz = mD2Chi2Dz2 * mDChi2Dz;
1200-
std::cout << "the dz: " << dz << std::endl;
12011200

12021201
if (!FwdcorrectTracks(dz)) {
12031202
return false;

0 commit comments

Comments
 (0)