From 130e8d12b58fd47e6d6cb4dc4c2aec7df6ed0c61 Mon Sep 17 00:00:00 2001
From: Xiaocong Ai <xiaocong.ai@cern.ch>
Date: Fri, 6 Dec 2019 21:27:53 -0800
Subject: [PATCH] Change the concept of processedStates in KF result

---
 Core/include/Acts/Fitter/KalmanFitter.hpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Core/include/Acts/Fitter/KalmanFitter.hpp b/Core/include/Acts/Fitter/KalmanFitter.hpp
index e106e8559..6c89a0f59 100644
--- a/Core/include/Acts/Fitter/KalmanFitter.hpp
+++ b/Core/include/Acts/Fitter/KalmanFitter.hpp
@@ -87,6 +87,9 @@ struct KalmanFitterResult {
   // The optional Parameters at the provided surface
   boost::optional<BoundParameters> fittedParameters;
 
+  // Counter for states with measurements
+  size_t measurementStates = 0;
+
   // Counter for handled states
   size_t processedStates = 0;
 
@@ -380,6 +383,8 @@ class KalmanFitter {
           // Update state and stepper with post material effects
           materialInteractor(surface, state, stepper, postUpdate);
         }
+        // We count the state with measurement
+        ++result.measurementStates;
         // We count the processed state
         ++result.processedStates;
       } else if (surface->surfaceMaterial()) {
@@ -438,6 +443,8 @@ class KalmanFitter {
               ": \n"
               << trackStateProxy.filtered().transpose());
         }
+        // We count the processed state
+        ++result.processedStates;
       }
       return Result<void>::success();
     }
-- 
GitLab