MFT module
authoragrigora <alina.grigoras@cern.ch>
Fri, 14 Nov 2014 16:53:52 +0000 (17:53 +0100)
committeragrigora <alina.grigoras@cern.ch>
Mon, 15 Dec 2014 12:51:56 +0000 (13:51 +0100)
49 files changed:
CMakeLists.txt
MFT/CMakeLists.txt
MFT/CMakelibMFTbase.pkg
MFT/CMakelibMFTrec.pkg
MFT/CMakelibMFTsim.pkg
MFT/MFTbase/AliMFTAnalysisTools.cxx [moved from MFT/AliMFTAnalysisTools.cxx with 100% similarity]
MFT/MFTbase/AliMFTAnalysisTools.h [moved from MFT/AliMFTAnalysisTools.h with 100% similarity]
MFT/MFTbase/AliMFTCluster.cxx [moved from MFT/AliMFTCluster.cxx with 100% similarity]
MFT/MFTbase/AliMFTCluster.h [moved from MFT/AliMFTCluster.h with 100% similarity]
MFT/MFTbase/AliMFTConstants.cxx [moved from MFT/AliMFTConstants.cxx with 100% similarity]
MFT/MFTbase/AliMFTConstants.h [moved from MFT/AliMFTConstants.h with 100% similarity]
MFT/MFTbase/AliMFTDigit.cxx [moved from MFT/AliMFTDigit.cxx with 100% similarity]
MFT/MFTbase/AliMFTDigit.h [moved from MFT/AliMFTDigit.h with 100% similarity]
MFT/MFTbase/AliMFTPlane.cxx [moved from MFT/AliMFTPlane.cxx with 100% similarity]
MFT/MFTbase/AliMFTPlane.h [moved from MFT/AliMFTPlane.h with 100% similarity]
MFT/MFTbase/AliMFTSegmentation.cxx [moved from MFT/AliMFTSegmentation.cxx with 100% similarity]
MFT/MFTbase/AliMFTSegmentation.h [moved from MFT/AliMFTSegmentation.h with 100% similarity]
MFT/MFTbase/CMakeLists.txt [new file with mode: 0644]
MFT/MFTbase/MFTbaseLinkDef.h [moved from MFT/MFTbaseLinkDef.h with 100% similarity]
MFT/MFTrec/AliESDEventMFT.cxx [moved from MFT/AliESDEventMFT.cxx with 100% similarity]
MFT/MFTrec/AliESDEventMFT.h [moved from MFT/AliESDEventMFT.h with 100% similarity]
MFT/MFTrec/AliMFTClusterFinder.cxx [moved from MFT/AliMFTClusterFinder.cxx with 100% similarity]
MFT/MFTrec/AliMFTClusterFinder.h [moved from MFT/AliMFTClusterFinder.h with 100% similarity]
MFT/MFTrec/AliMFTClusterQA.cxx [moved from MFT/AliMFTClusterQA.cxx with 100% similarity]
MFT/MFTrec/AliMFTClusterQA.h [moved from MFT/AliMFTClusterQA.h with 100% similarity]
MFT/MFTrec/AliMFTRecoParam.cxx [moved from MFT/AliMFTRecoParam.cxx with 100% similarity]
MFT/MFTrec/AliMFTRecoParam.h [moved from MFT/AliMFTRecoParam.h with 100% similarity]
MFT/MFTrec/AliMFTReconstructor.cxx [moved from MFT/AliMFTReconstructor.cxx with 100% similarity]
MFT/MFTrec/AliMFTReconstructor.h [moved from MFT/AliMFTReconstructor.h with 100% similarity]
MFT/MFTrec/AliMFTTrackerMU.cxx [moved from MFT/AliMFTTrackerMU.cxx with 100% similarity]
MFT/MFTrec/AliMFTTrackerMU.h [moved from MFT/AliMFTTrackerMU.h with 100% similarity]
MFT/MFTrec/AliMuonForwardTrack.cxx [moved from MFT/AliMuonForwardTrack.cxx with 100% similarity]
MFT/MFTrec/AliMuonForwardTrack.h [moved from MFT/AliMuonForwardTrack.h with 100% similarity]
MFT/MFTrec/AliMuonForwardTrackFinder.cxx [moved from MFT/AliMuonForwardTrackFinder.cxx with 100% similarity]
MFT/MFTrec/AliMuonForwardTrackFinder.h [moved from MFT/AliMuonForwardTrackFinder.h with 100% similarity]
MFT/MFTrec/AliMuonForwardTrackPair.cxx [moved from MFT/AliMuonForwardTrackPair.cxx with 100% similarity]
MFT/MFTrec/AliMuonForwardTrackPair.h [moved from MFT/AliMuonForwardTrackPair.h with 100% similarity]
MFT/MFTrec/CMakeLists.txt [new file with mode: 0644]
MFT/MFTrec/MFTrecLinkDef.h [moved from MFT/MFTrecLinkDef.h with 100% similarity]
MFT/MFTsim/AliGenParamPionsKaons.cxx [moved from MFT/AliGenParamPionsKaons.cxx with 100% similarity]
MFT/MFTsim/AliGenParamPionsKaons.h [moved from MFT/AliGenParamPionsKaons.h with 100% similarity]
MFT/MFTsim/AliMFT.cxx [moved from MFT/AliMFT.cxx with 100% similarity]
MFT/MFTsim/AliMFT.h [moved from MFT/AliMFT.h with 100% similarity]
MFT/MFTsim/AliMFTDigitizer.cxx [moved from MFT/AliMFTDigitizer.cxx with 100% similarity]
MFT/MFTsim/AliMFTDigitizer.h [moved from MFT/AliMFTDigitizer.h with 100% similarity]
MFT/MFTsim/AliMFTHit.cxx [moved from MFT/AliMFTHit.cxx with 100% similarity]
MFT/MFTsim/AliMFTHit.h [moved from MFT/AliMFTHit.h with 100% similarity]
MFT/MFTsim/CMakeLists.txt [new file with mode: 0644]
MFT/MFTsim/MFTsimLinkDef.h [moved from MFT/MFTsimLinkDef.h with 100% similarity]

index 49384cf..6fd0861 100644 (file)
@@ -111,6 +111,7 @@ add_subdirectory(HLT)
 add_subdirectory(HMPID)
 add_subdirectory(ITS)
 add_subdirectory(JETAN)
+add_subdirectory(MFT)
 add_subdirectory(MONITOR)
 add_subdirectory(MUON)
 add_subdirectory(OADB)
index e98d510..71c7a1d 100644 (file)
@@ -1,10 +1,20 @@
-# AliRoot Build System CMakeLists for MFT
-#
-# Author: Johny Jose m(johny.jose@cern.ch)
-#         Port of previous Makefile build to cmake
+# **************************************************************************
+# * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
+# *                                                                        *
+# * Author: The ALICE Off-line Project.                                    *
+# * Contributors are mentioned in the code where appropriate.              *
+# *                                                                        *
+# * Permission to use, copy, modify and distribute this software and its   *
+# * documentation strictly for non-commercial purposes is hereby granted   *
+# * without fee, provided that the above copyright notice appears in all   *
+# * copies and that both the copyright notice and this permission notice   *
+# * appear in the supporting documentation. The authors make no claims     *
+# * about the suitability of this software for any purpose. It is          *
+# * provided "as is" without express or implied warranty.                  *
+# **************************************************************************
 
-cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
+add_subdirectory(MFTbase)
+add_subdirectory(MFTsim)
+add_subdirectory(MFTrec)
 
-file(GLOB PACKAGES CMake*.pkg)
-
-ALICE_BuildModule()
+message(STATUS "MFT enabled")
index 649e2bc..fb58af9 100644 (file)
 # SHLIBS - Shared Libraries and objects for linking (Executables only)           #
 #--------------------------------------------------------------------------------#
 
-set ( SRCS  AliMFTConstants.cxx AliMFTPlane.cxx AliMFTSegmentation.cxx AliMFTDigit.cxx AliMFTCluster.cxx AliMFTAnalysisTools.cxx )
+set ( SRCS  
+AliMFTConstants.cxx 
+AliMFTPlane.cxx 
+AliMFTSegmentation.cxx 
+AliMFTDigit.cxx 
+AliMFTCluster.cxx 
+AliMFTAnalysisTools.cxx
+)
 
 string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
 
index 6ede193..73939da 100644 (file)
 # SHLIBS - Shared Libraries and objects for linking (Executables only)           #
 #--------------------------------------------------------------------------------#
 
-set ( SRCS AliMFTReconstructor.cxx AliMFTTrackerMU.cxx AliMFTClusterFinder.cxx AliMuonForwardTrack.cxx AliMuonForwardTrackPair.cxx AliESDEventMFT.cxx AliMuonForwardTrackFinder.cxx AliMFTClusterQA.cxx AliMFTRecoParam.cxx )
+set ( SRCS 
+AliMFTReconstructor.cxx 
+AliMFTTrackerMU.cxx 
+AliMFTClusterFinder.cxx 
+AliMuonForwardTrack.cxx 
+AliMuonForwardTrackPair.cxx 
+AliESDEventMFT.cxx
+ AliMuonForwardTrackFinder.cxx 
+ AliMFTClusterQA.cxx
+  AliMFTRecoParam.cxx 
+  )
 
 string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
 
index 69091d6..6eb0f46 100644 (file)
 # SHLIBS - Shared Libraries and objects for linking (Executables only)           #
 #--------------------------------------------------------------------------------#
 
-set ( SRCS  AliMFT.cxx AliMFTHit.cxx AliMFTDigitizer.cxx AliGenParamPionsKaons.cxx )
+set ( SRCS  
+AliMFT.cxx
+ AliMFTHit.cxx 
+ AliMFTDigitizer.cxx 
+ AliGenParamPionsKaons.cxx 
+ )
 
 string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
 
similarity index 100%
rename from MFT/AliMFTDigit.h
rename to MFT/MFTbase/AliMFTDigit.h
similarity index 100%
rename from MFT/AliMFTPlane.h
rename to MFT/MFTbase/AliMFTPlane.h
diff --git a/MFT/MFTbase/CMakeLists.txt b/MFT/MFTbase/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2b59a58
--- /dev/null
@@ -0,0 +1,70 @@
+# **************************************************************************
+# * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
+# *                                                                        *
+# * Author: The ALICE Off-line Project.                                    *
+# * Contributors are mentioned in the code where appropriate.              *
+# *                                                                        *
+# * Permission to use, copy, modify and distribute this software and its   *
+# * documentation strictly for non-commercial purposes is hereby granted   *
+# * without fee, provided that the above copyright notice appears in all   *
+# * copies and that both the copyright notice and this permission notice   *
+# * appear in the supporting documentation. The authors make no claims     *
+# * about the suitability of this software for any purpose. It is          *
+# * provided "as is" without express or implied warranty.                  *
+# **************************************************************************
+
+# Module
+set(MODULE MFTbase)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/MFT/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${AliRoot_SOURCE_DIR}/MUON/MUONbase
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONrec
+                    ${AliRoot_SOURCE_DIR}/STEER/AOD
+                    ${AliRoot_SOURCE_DIR}/STEER/STEER
+                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliMFTAnalysisTools.cxx
+    AliMFTCluster.cxx
+    AliMFTConstants.cxx
+    AliMFTDigit.cxx
+    AliMFTPlane.cxx
+    AliMFTSegmentation.cxx
+   )
+
+# Headers from sources
+string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
+
+# Generate the dictionary
+# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
+get_directory_property(incdirs INCLUDE_DIRECTORIES)
+generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
+
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS STEERBase STEER AOD MUONbase MUONrec Core EG Gpad Graf Hist Matrix Physics RIO Tree)
+generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
+
+# Add a library to the project using the specified source files
+add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
+target_link_libraries(${MODULE} STEERBase STEER AOD MUONbase MUONrec Core EG Gpad Graf Hist Matrix Physics RIO Tree)
+
+# Additional compilation flags
+set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g")
+
+# System dependent: Modify the way the library is build
+if(${CMAKE_SYSTEM} MATCHES Darwin)
+    set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
+endif(${CMAKE_SYSTEM} MATCHES Darwin)
+
+# Installation
+install(TARGETS ${MODULE}
+        ARCHIVE DESTINATION lib
+        LIBRARY DESTINATION lib)
+
+install(FILES ${HDRS} DESTINATION include)
\ No newline at end of file
diff --git a/MFT/MFTrec/CMakeLists.txt b/MFT/MFTrec/CMakeLists.txt
new file mode 100644 (file)
index 0000000..716c2e9
--- /dev/null
@@ -0,0 +1,78 @@
+# **************************************************************************
+# * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
+# *                                                                        *
+# * Author: The ALICE Off-line Project.                                    *
+# * Contributors are mentioned in the code where appropriate.              *
+# *                                                                        *
+# * Permission to use, copy, modify and distribute this software and its   *
+# * documentation strictly for non-commercial purposes is hereby granted   *
+# * without fee, provided that the above copyright notice appears in all   *
+# * copies and that both the copyright notice and this permission notice   *
+# * appear in the supporting documentation. The authors make no claims     *
+# * about the suitability of this software for any purpose. It is          *
+# * provided "as is" without express or implied warranty.                  *
+# **************************************************************************
+
+# Module
+set(MODULE MFTrec)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/MFT/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${AliRoot_SOURCE_DIR}/MFT/MFTbase
+                    ${AliRoot_SOURCE_DIR}/MFT/MFTsim
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONbase
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONcore
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONevaluation
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONrec
+                    ${AliRoot_SOURCE_DIR}/STEER/CDB
+                    ${AliRoot_SOURCE_DIR}/STEER/ESD
+                    ${AliRoot_SOURCE_DIR}/STEER/STEER
+                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliESDEventMFT.cxx
+    AliMFTClusterFinder.cxx
+    AliMFTClusterQA.cxx
+    AliMFTReconstructor.cxx
+    AliMFTRecoParam.cxx
+    AliMFTTrackerMU.cxx
+    AliMuonForwardTrack.cxx
+    AliMuonForwardTrackFinder.cxx
+    AliMuonForwardTrackPair.cxx
+   )
+
+# Headers from sources
+string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
+
+# Generate the dictionary
+# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
+get_directory_property(incdirs INCLUDE_DIRECTORIES)
+generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
+
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS STEERBase STEER ESD CDB MUONbase MUONcore MUONevaluation MUONrec MFTbase Core Geom Gpad Gpad Graf Hist MathCore Matrix Net Physics RIO Tree)
+generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
+
+# Add a library to the project using the specified source files
+add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
+target_link_libraries(${MODULE} STEERBase STEER ESD CDB MUONbase MUONcore MUONevaluation MUONrec MFTbase MFTsim Core Geom Gpad Gpad Graf Hist MathCore Matrix Net Physics RIO Tree)
+
+# Additional compilation flags
+set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g")
+
+# System dependent: Modify the way the library is build
+if(${CMAKE_SYSTEM} MATCHES Darwin)
+    set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
+endif(${CMAKE_SYSTEM} MATCHES Darwin)
+
+# Installation
+install(TARGETS ${MODULE}
+        ARCHIVE DESTINATION lib
+        LIBRARY DESTINATION lib)
+
+install(FILES ${HDRS} DESTINATION include)
\ No newline at end of file
similarity index 100%
rename from MFT/AliMFT.cxx
rename to MFT/MFTsim/AliMFT.cxx
similarity index 100%
rename from MFT/AliMFT.h
rename to MFT/MFTsim/AliMFT.h
similarity index 100%
rename from MFT/AliMFTHit.cxx
rename to MFT/MFTsim/AliMFTHit.cxx
similarity index 100%
rename from MFT/AliMFTHit.h
rename to MFT/MFTsim/AliMFTHit.h
diff --git a/MFT/MFTsim/CMakeLists.txt b/MFT/MFTsim/CMakeLists.txt
new file mode 100644 (file)
index 0000000..44c9610
--- /dev/null
@@ -0,0 +1,67 @@
+# **************************************************************************
+# * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
+# *                                                                        *
+# * Author: The ALICE Off-line Project.                                    *
+# * Contributors are mentioned in the code where appropriate.              *
+# *                                                                        *
+# * Permission to use, copy, modify and distribute this software and its   *
+# * documentation strictly for non-commercial purposes is hereby granted   *
+# * without fee, provided that the above copyright notice appears in all   *
+# * copies and that both the copyright notice and this permission notice   *
+# * appear in the supporting documentation. The authors make no claims     *
+# * about the suitability of this software for any purpose. It is          *
+# * provided "as is" without express or implied warranty.                  *
+# **************************************************************************
+
+# Module
+set(MODULE MFTsim)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/MFT/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${AliRoot_SOURCE_DIR}/MFT/MFTbase
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONbase
+                    ${AliRoot_SOURCE_DIR}/STEER/STEER
+                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliGenParamPionsKaons.cxx
+    AliMFT.cxx
+    AliMFTDigitizer.cxx
+    AliMFTHit.cxx
+   )
+
+# Headers from sources
+string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
+
+# Generate the dictionary
+# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
+get_directory_property(incdirs INCLUDE_DIRECTORIES)
+generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
+
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS STEERBase STEER MUONbase MFTbase Core EG Geom Hist Physics RIO VMC)
+generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
+
+# Add a library to the project using the specified source files
+add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
+target_link_libraries(${MODULE} STEERBase STEER MUONbase MFTbase Core EG Geom Hist Physics RIO VMC)
+
+# Additional compilation flags
+set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g")
+
+# System dependent: Modify the way the library is build
+if(${CMAKE_SYSTEM} MATCHES Darwin)
+    set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
+endif(${CMAKE_SYSTEM} MATCHES Darwin)
+
+# Installation
+install(TARGETS ${MODULE}
+        ARCHIVE DESTINATION lib
+        LIBRARY DESTINATION lib)
+
+install(FILES ${HDRS} DESTINATION include)
\ No newline at end of file