From 4c5c921269d0eef760dcce256d393e87938fcfab Mon Sep 17 00:00:00 2001 From: Chengdong Fu <fucd@ihep.ac.cn> Date: Mon, 16 Oct 2023 15:21:36 +0800 Subject: [PATCH] add unlink while create TrackerHit object --- Reconstruction/Tracking/src/Clupatra/clupatra_new.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Reconstruction/Tracking/src/Clupatra/clupatra_new.cpp b/Reconstruction/Tracking/src/Clupatra/clupatra_new.cpp index 9ecee564..6ff24484 100644 --- a/Reconstruction/Tracking/src/Clupatra/clupatra_new.cpp +++ b/Reconstruction/Tracking/src/Clupatra/clupatra_new.cpp @@ -287,7 +287,8 @@ namespace clupatra_new{ UTIL::BitField64 encoder( UTIL::ILDCellID0::encoder_string ) ; encoder[UTIL::ILDCellID0::subdet] = UTIL::ILDDetID::TPC ; - edm4hep::TrackerHit firstHit; // = 0 ; + edm4hep::TrackerHit firstHit = 0; + // = 0 equal to unlink() //firstHit.unlink(); IMarlinTrack* bwTrk = 0 ; -- GitLab