add_subdirectory (ANALYSIS)
add_subdirectory (RAW)
add_subdirectory (ITS)
-#add_subdirectory (TPC)
+add_subdirectory (TPC)
#add_subdirectory (VZERO)
#add_subdirectory (T0)
#add_subdirectory (TOF)
-# AliRoot Build System CMakeLists for TPC
-#
-# 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(TPCbase)
+add_subdirectory(TPCutil)
+add_subdirectory(TPCcalib)
+add_subdirectory(TPCrec)
+add_subdirectory(TPCsim)
+add_subdirectory(TPCmon)
-file(GLOB PACKAGES CMake*.pkg)
+# Installing the mapping
+install(DIRECTORY mapping DESTINATION TPC)
-ALICE_BuildModule()
+# Installing the macros
+# Do not forget the ending / from macros/
+# The / will point to install the content of the folder to
+# macros/TPC. Without the / it will create a new folder
+# macros/TPC/macros
+install(DIRECTORY macros/ DESTINATION macros/TPC)
+
+# Install root & dat files
+set(ROOTFILES
+ AliTPCprf2dGEM.root
+ AliTPCprf2d.root
+ CovMatrixDB_PbPb6000_B0.4T.root
+ CovMatrixDB_pp_B0.4T.root
+ )
+
+set(DATFILES
+ conn_iroc.dat
+ conn_oroc.dat
+ )
+
+install(FILES ${ROOTFILES} ${DATFILES} DESTINATION TPC)
--- /dev/null
+# **************************************************************************
+# * 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 TPCbase)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/TPC/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase
+ ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec
+ ${CMAKE_SOURCE_DIR}/RAW/dateStream
+ ${CMAKE_SOURCE_DIR}/STEER/CDB
+ ${CMAKE_SOURCE_DIR}/STEER/ESD
+ ${CMAKE_SOURCE_DIR}/STEER/STEER
+ ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+ ${CMAKE_SOURCE_DIR}/TPC/TPCrec
+ ${CMAKE_BINARY_DIR}/version
+ )
+
+# Sources in alphabetical order
+set(SRCS
+ AliDetectorParam.cxx
+ AliDigitsArray.cxx
+ AliDigits.cxx
+ AliH2F.cxx
+ AliSegmentArray.cxx
+ AliSegmentID.cxx
+ AliSimDigits.cxx
+ AliTPCAltroMapping.cxx
+ AliTPCBoundaryVoltError.cxx
+ AliTPCCalibCE.cxx
+ AliTPCcalibDB.cxx
+ AliTPCcalibDButil.cxx
+ AliTPCCalibGlobalMisalignment.cxx
+ AliTPCCalibPedestal.cxx
+ AliTPCCalibPulser.cxx
+ AliTPCCalibRawBase.cxx
+ AliTPCCalibRaw.cxx
+ AliTPCCalibVdrift.cxx
+ AliTPCCalibViewer.cxx
+ AliTPCCalibViewerGUI.cxx
+ AliTPCCalibViewerGUItime.cxx
+ AliTPCCalPad.cxx
+ AliTPCCalROC.cxx
+ AliTPCComposedCorrection.cxx
+ AliTPCConfigDA.cxx
+ AliTPCConfigParser.cxx
+ AliTPCCorrection.cxx
+ AliTPCCorrectionDrift.cxx
+ AliTPCCorrectionLookupTable.cxx
+ AliTPCdataQA.cxx
+ AliTPCDigitsArray.cxx
+ AliTPCExBBShape.cxx
+ AliTPCExB.cxx
+ AliTPCExBEffective.cxx
+ AliTPCExBEffectiveSector.cxx
+ AliTPCExBExact.cxx
+ AliTPCExBFirst.cxx
+ AliTPCExBTwist.cxx
+ AliTPCFCVoltError3D.cxx
+ AliTPCGGVoltError.cxx
+ AliTPCInverseCorrection.cxx
+ AliTPCLaserTrack.cxx
+ AliTPCLoader.cxx
+ AliTPCmapper.cxx
+ AliTPCParam.cxx
+ AliTPCParamSR.cxx
+ AliTPCPointCorrection.cxx
+ AliTPCPreprocessor.cxx
+ AliTPCPreprocessorOnline.cxx
+ AliTPCPRF2D.cxx
+ AliTPCQAChecker.cxx
+ AliTPCRawStreamV3.cxx
+ AliTPCRF1D.cxx
+ AliTPCROC.cxx
+ AliTPCROCVoltError3D.cxx
+ AliTPCSensorTempArray.cxx
+ AliTPCSensorTemp.cxx
+ AliTPCSpaceCharge3D.cxx
+ AliTPCSpaceCharge.cxx
+ AliTPCTempMap.cxx
+ AliTPCTransform.cxx
+ AliTransform.cxx
+ AliXRDPROOFtoolkit.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 CDB ESD RAWDatabase RAWDatarec TPCrec Minuit Gui)
+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)
+
+# 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
--- /dev/null
+# **************************************************************************
+# * 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 TPCcalib)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/TPC/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/ANALYSIS/ANALYSIS
+ ${CMAKE_SOURCE_DIR}/RAW/dateStream
+ ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase
+ ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec
+ ${CMAKE_SOURCE_DIR}/STAT
+ ${CMAKE_SOURCE_DIR}/STEER/STEER
+ ${CMAKE_SOURCE_DIR}/STEER/CDB
+ ${CMAKE_SOURCE_DIR}/STEER/ESD
+ ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+ ${CMAKE_SOURCE_DIR}/TPC/TPCbase
+ ${CMAKE_SOURCE_DIR}/TPC/TPCrec
+ )
+
+# Sources in alphabetical order
+set(SRCS
+ AliTPCAnalysisTaskcalib.cxx
+ AliTPCcalibAlign.cxx
+ AliTPCcalibBase.cxx
+ AliTPCcalibCalib.cxx
+ AliTPCcalibCosmic.cxx
+ AliTPCcalibGainMult.cxx
+ AliTPCCalibKr.cxx
+ AliTPCCalibKrTask.cxx
+ AliTPCcalibLaser.cxx
+ AliTPCcalibSummary.cxx
+ AliTPCcalibTime.cxx
+ AliTPCcalibTimeGain.cxx
+ AliTPCcalibTracksCuts.cxx
+ AliTPCcalibTracks.cxx
+ AliTPCcalibTracksGain.cxx
+ AliTPCcalibV0.cxx
+ AliTPCCalPadRegion.cxx
+ AliTPCCorrectionFit.cxx
+ AliTPCFitPad.cxx
+ AliTPCkalmanAlign.cxx
+ AliTPCMisAligner.cxx
+ AliTPCPreprocessorOffline.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 CDB ESD STEER ANALYSIS STAT RAWDatarec RAWDatabase TPCbase TPCrec Minuit)
+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)
+
+# 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
--- /dev/null
+# **************************************************************************
+# * 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 TPCmon)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/TPC/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/RAW/dateStream
+ ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase
+ ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec
+ ${CMAKE_SOURCE_DIR}/RAW/RAWDatarecOnline
+ ${CMAKE_SOURCE_DIR}/STEER/ESD
+ ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+ )
+
+# Sources in alphabetical order
+set(SRCS
+ AliTPCMonitorAltro.cxx
+ AliTPCMonitorConfig.cxx
+ AliTPCMonitor.cxx
+ AliTPCMonitorDateFile.cxx
+ AliTPCMonitorDateFormat.cxx
+ AliTPCMonitorDialog.cxx
+ AliTPCMonitorFFT.cxx
+ AliTPCMonitorMappingHandler.cxx
+ )
+
+# Check for DATE
+if(DATE_FOUND)
+ set(SRCS ${SRCS} AliTPCMonitorDateMonitor.cxx)
+endif(DATE_FOUND)
+
+# 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 ESD RAWDatabase RAWDatarec RAWDatarecOnline Gui)
+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)
+
+# 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)
+
+# Installing the macros
+# Do not forget the ending / from macros/
+# The / will point to install the content of the folder to
+# macros/TPC/TPCmon. Without the / it will create a new folder
+# macros/TPC/TPCmon/macros
+install(DIRECTORY macros/ DESTINATION macros/TPC/${MODULE})
#ifndef ALICOSMICTRACKER_H
#define ALICOSMICTRACKER_H
+#include "AliESDtrackCuts.h"
+#include "AliExternalTrackParam.h"
+#include "TTreeStream.h"
+
+#ifndef TVECTOR3_H
+#include "TVector3.h"
+#endif
+
class AliESDCosmicTrack;
class AliTPCCosmicTrackfit;
#include "TVector3.h"
#endif
+class AliTPCseed;
+
class AliTPCCosmicTrackfit
{
public:
--- /dev/null
+# **************************************************************************
+# * 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 TPCrec)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/TPC/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/ANALYSIS/ANALYSIS
+ ${CMAKE_SOURCE_DIR}/ANALYSIS/ANALYSISalice
+ ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase
+ ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec
+ ${CMAKE_SOURCE_DIR}/STEER/CDB
+ ${CMAKE_SOURCE_DIR}/STEER/ESD
+ ${CMAKE_SOURCE_DIR}/STEER/STEER
+ ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+ ${CMAKE_SOURCE_DIR}/TPC/TPCbase
+ ${CMAKE_SOURCE_DIR}/TPC/TPCsim
+ )
+
+# Sources in alphabetical order
+set(SRCS
+ AliClusters.cxx
+ AliComplexCluster.cxx
+ AliCosmicTracker.cxx
+ AliPadMax.cxx
+ AliTPCclusterer.cxx
+ AliTPCclustererKr.cxx
+ AliTPCclusterInfo.cxx
+ AliTPCclusterKr.cxx
+ AliTPCclusterMI.cxx
+ AliTPCClusterParam.cxx
+ AliTPCClustersRow.cxx
+ AliTPCCosmicTrackfit.cxx
+ AliTPCCosmicUtils.cxx
+ AliTPCpolyTrack.cxx
+ AliTPCQADataMakerRec.cxx
+ AliTPCReconstructor.cxx
+ AliTPCRecoParam.cxx
+ AliTPCseed.cxx
+ AliTPCtrack.cxx
+ AliTPCtracker.cxx
+ AliTPCtrackerSector.cxx
+ AliTPCTracklet.cxx
+ AliTPCvtpr.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 CDB ESD RAWDatabase RAWDatarec ANALYSIS ANALYSISalice TPCbase TPCsim Graph)
+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)
+
+# 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
--- /dev/null
+# **************************************************************************
+# * 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 TPCsim)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/TPC/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase
+ ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec
+ ${CMAKE_SOURCE_DIR}/RAW/RAWDatasim
+ ${CMAKE_SOURCE_DIR}/STEER/CDB
+ ${CMAKE_SOURCE_DIR}/STEER/ESD
+ ${CMAKE_SOURCE_DIR}/STEER/STEER
+ ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+ ${CMAKE_SOURCE_DIR}/TPC/TPCbase
+ ${CMAKE_SOURCE_DIR}/TPC/TPCrec
+ )
+
+# Sources in alphabetical order
+set(SRCS
+ AliTPCBuffer.cxx
+ AliTPC.cxx
+ AliTPCDDLRawData.cxx
+ AliTPCDigitizer.cxx
+ AliTPCLaser.cxx
+ AliTPCQADataMakerSim.cxx
+ AliTPCTrackHitsV2.cxx
+ AliTPCv0.cxx
+ AliTPCv2.cxx
+ AliTPCv4.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 CDB ESD RAWDatabase RAWDatarec RAWDatasim TPCbase TPCrec GenVector)
+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)
+
+# 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
--- /dev/null
+# **************************************************************************
+# * 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 TPCutil)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/TPC/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase
+ ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec
+ ${CMAKE_SOURCE_DIR}/STEER/CDB
+ ${CMAKE_SOURCE_DIR}/STEER/ESD
+ ${CMAKE_SOURCE_DIR}/STEER/STEER
+ ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+ ${CMAKE_SOURCE_DIR}/TPC/TPCbase
+ )
+
+# Sources in alphabetical order
+set(SRCS
+ AliTPCAlign.cxx
+ AliTPCAltroEmulator.cxx
+ AliTPCCalibQAChecker.cxx
+ AliTPCCalibViewerGUIAlarms.cxx
+ AliTPCGenDBConf.cxx
+ AliTPCGenDBTemp.cxx
+ AliTPCkalmanTime.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 RAWDatabase RAWDatarec TPCbase Gui)
+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)
+
+# 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