From 9a5a248364aaacf9162fdbea14ddebf938751645 Mon Sep 17 00:00:00 2001
From: zhangcg123 <zhangchenguang18@gmail.com>
Date: Thu, 13 Jun 2024 18:46:32 +0800
Subject: [PATCH] move tof code to pid directory

---
 Reconstruction/CMakeLists.txt                  |  1 -
 Reconstruction/ParticleID/CMakeLists.txt       |  1 +
 .../src/TofRecAlg.cpp                          |  0
 .../{TofRecAlg => ParticleID}/src/TofRecAlg.h  |  0
 Reconstruction/TofRecAlg/CMakeLists.txt        | 18 ------------------
 5 files changed, 1 insertion(+), 19 deletions(-)
 rename Reconstruction/{TofRecAlg => ParticleID}/src/TofRecAlg.cpp (100%)
 rename Reconstruction/{TofRecAlg => ParticleID}/src/TofRecAlg.h (100%)
 delete mode 100644 Reconstruction/TofRecAlg/CMakeLists.txt

diff --git a/Reconstruction/CMakeLists.txt b/Reconstruction/CMakeLists.txt
index b13381ae..793d8828 100644
--- a/Reconstruction/CMakeLists.txt
+++ b/Reconstruction/CMakeLists.txt
@@ -6,4 +6,3 @@ add_subdirectory(Tracking)
 add_subdirectory(RecGenfitAlg)
 add_subdirectory(RecAssociationMaker)
 add_subdirectory(ParticleID)
-add_subdirectory(TofRecAlg)
diff --git a/Reconstruction/ParticleID/CMakeLists.txt b/Reconstruction/ParticleID/CMakeLists.txt
index 6530b72f..4cac4c35 100644
--- a/Reconstruction/ParticleID/CMakeLists.txt
+++ b/Reconstruction/ParticleID/CMakeLists.txt
@@ -4,6 +4,7 @@
 gaudi_add_module(ParticleID
                  SOURCES src/TPCDndxAlg.cpp
                          src/DCHDndxAlg.cpp
+			 src/TofRecAlg.cpp
                  LINK SimplePIDSvc
                       Gaudi::GaudiAlgLib
                       Gaudi::GaudiKernel
diff --git a/Reconstruction/TofRecAlg/src/TofRecAlg.cpp b/Reconstruction/ParticleID/src/TofRecAlg.cpp
similarity index 100%
rename from Reconstruction/TofRecAlg/src/TofRecAlg.cpp
rename to Reconstruction/ParticleID/src/TofRecAlg.cpp
diff --git a/Reconstruction/TofRecAlg/src/TofRecAlg.h b/Reconstruction/ParticleID/src/TofRecAlg.h
similarity index 100%
rename from Reconstruction/TofRecAlg/src/TofRecAlg.h
rename to Reconstruction/ParticleID/src/TofRecAlg.h
diff --git a/Reconstruction/TofRecAlg/CMakeLists.txt b/Reconstruction/TofRecAlg/CMakeLists.txt
deleted file mode 100644
index 3f66caad..00000000
--- a/Reconstruction/TofRecAlg/CMakeLists.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-gaudi_add_module(TofRecAlg
-                 SOURCES src/TofRecAlg.cpp
-                 LINK DataHelperLib
-                      Gaudi::GaudiKernel
-                      EDM4HEP::edm4hep
-                      ${ROOT_LIBRARIES}
-                      ${CLHEP_LIBRARIES}
-		                  ${LCIO_LIBRARIES}
-		                  ${DD4hep_COMPONENT_LIBRARIES}
-                      DetInterface
-                      k4FWCore::k4FWCore
-)
-
-install(TARGETS TofRecAlg
-  EXPORT CEPCSWTargets
-  RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
-  LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
-  COMPONENT dev)
\ No newline at end of file
-- 
GitLab