add_subdirectory(TPCmon)
add_subdirectory(TPCupgrade)
+if(DA)
+ add_subdirectory(DA)
+endif(DA)
+
# Installing the mapping
install(DIRECTORY mapping 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 include folder
+include_directories(${AliRoot_SOURCE_DIR}/TPC/DA)
+
+# Additional include folders in alphabetical order
+include_directories(
+ ${AliRoot_SOURCE_DIR}/RAW/RAWDatarec
+ ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+ ${AliRoot_SOURCE_DIR}/TPC/TPCbase
+ )
+
+
+# DIM
+link_directories(${DIMDIR}/${ODIR})
+
+#daqDA flags
+include_directories(${daqDA})
+link_directories(${daqDA})
+
+# AMORE definitions
+add_definitions(${AMORE_DEFINITIONS})
+include_directories(${AMORE_INCLUDE_DIR})
+
+# Generating the DA executable
+add_executable(TPCCEda TPCCEda.cxx) #1
+add_executable(TPCCEnewda TPCCEnewda.cxx) #2
+add_executable(TPCPEDESTALda TPCPEDESTALda.cxx) #3
+add_executable(TPCPULSERda TPCPULSERda.cxx) #4
+add_executable(TPCQAda TPCQAda.cxx) #5
+add_executable(TPCRAWda TPCRAWda.cxx) #6
+
+set(MODULE_COMPILE_FLAGS)
+set(MODULE_LINK_FLAGS)
+
+target_link_libraries(TPCCEda RAWDatarec-static STEERBase-static TPCbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} RootExtra Root) # 1
+target_link_libraries(TPCCEnewda RAWDatarec-static STEERBase-static TPCbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 2
+target_link_libraries(TPCPEDESTALda RAWDatarec-static STEERBase-static TPCbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 3
+target_link_libraries(TPCPULSERda RAWDatarec-static STEERBase-static TPCbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 4
+target_link_libraries(TPCQAda RAWDatarec-static STEERBase-static TPCbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 5
+target_link_libraries(TPCRAWda RAWDatarec-static STEERBase-static TPCbase-static ${AMORE_AUXLIBS} daqDA ${DATE_MONLIBRARIES} ${DATE_RCPROXYLIBRARIES} Root RootExtra) # 6
+
+# different flags
+set(MODULE_COMPILE_FLAGS "-O -g ${DATE_CFLAGS} ${AMORE_CFLAGS}")
+set(MODULE_LINK_FLAGS "${DATE_LDFLAGS} ${AMORE_STATICLIBS}")
+
+set_target_properties(TPCCEda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 1
+set_target_properties(TPCCEda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 1
+
+set_target_properties(TPCCEnewda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 2
+set_target_properties(TPCCEnewda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 2
+
+set_target_properties(TPCPEDESTALda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 3
+set_target_properties(TPCPEDESTALda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 3
+
+set_target_properties(TPCPULSERda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 4
+set_target_properties(TPCPULSERda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 4
+
+set_target_properties(TPCQAda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 5
+set_target_properties(TPCQAda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 5
+
+set_target_properties(TPCRAWda PROPERTIES COMPILE_FLAGS ${MODULE_COMPILE_FLAGS}) # 6
+set_target_properties(TPCRAWda PROPERTIES LINK_FLAGS "${MODULE_LINK_FLAGS}") # 6
+
+
+# Installation
+install(TARGETS
+ TPCCEda
+ TPCCEnewda
+ TPCPEDESTALda
+ TPCPULSERda
+ TPCQAda
+ TPCRAWda
+ RUNTIME DESTINATION bin)
\ No newline at end of file
#include "AliTPCcalibDB.h"
#include "AliTPCExB.h"
-#include "AliTPCRecoParam.h"
+//#include "AliTPCRecoParam.h"
#include "TLinearFitter.h"
#include <AliSysInfo.h>
${AliRoot_SOURCE_DIR}/STEER/ESD
${AliRoot_SOURCE_DIR}/STEER/STEER
${AliRoot_SOURCE_DIR}/STEER/STEERBase
- ${AliRoot_SOURCE_DIR}/TPC/TPCrec
${CMAKE_BINARY_DIR}/version
)
# Sources in alphabetical order
set(SRCS
+ AliClusters.cxx
+ AliComplexCluster.cxx
AliDetectorParam.cxx
AliDigitsArray.cxx
AliDigits.cxx
AliTPCCalibViewerGUItime.cxx
AliTPCCalPad.cxx
AliTPCCalROC.cxx
+ AliTPCclusterInfo.cxx
+ AliTPCclusterMI.cxx
+ AliTPCClusterParam.cxx
+ AliTPCClustersRow.cxx
AliTPCComposedCorrection.cxx
AliTPCConfigDA.cxx
AliTPCConfigParser.cxx
AliTPCPreprocessorOnline.cxx
AliTPCPRF2D.cxx
AliTPCQAChecker.cxx
+ AliTPCQADataMakerRec.cxx
AliTPCRawStreamV3.cxx
+ AliTPCRecoParam.cxx
AliTPCRF1D.cxx
AliTPCROC.cxx
AliTPCROCVoltError3D.cxx
get_directory_property(incdirs INCLUDE_DIRECTORIES)
generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
+set(ROOT_DEPENDENCIES Core EG GenVector Geom Gpad Graf Gui Hist MathCore Matrix Minuit Physics Proof RIO Spectrum Tree)
+set(ALIROOT_DEPENDENCIES STEERBase STEER CDB ESD RAWDatabase RAWDatarec)
+
# Generate the ROOT map
# Dependecies
-set(LIBDEPS STEERBase STEER CDB ESD RAWDatabase RAWDatarec Core EG GenVector Geom Gpad Graf Gui Hist MathCore Matrix Minuit Physics Proof RIO Spectrum Tree)
+set(LIBDEPS ${ALIROOT_DEPENDENCIES} ${ROOT_DEPENDENCIES})
generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
+# Create an object to be reused in case of static libraries
+# Otherwise the sources will be compiled twice
+add_library(${MODULE}-object OBJECT ${SRCS} G__${MODULE}.cxx)
+# Add a library to the project using the object
+add_library(${MODULE} SHARED $<TARGET_OBJECTS:TPCbase-object>)
+
+# Linking
+target_link_libraries(${MODULE} ${ALIROOT_DEPENDENCIES} ${ROOT_DEPENDENCIES})
-# 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 CDB ESD RAWDatabase RAWDatarec Core EG GenVector Geom Gpad Graf Gui Hist MathCore Matrix Minuit Physics Proof RIO Spectrum Tree)
+# Public include folders that will be propagated to the dependecies
+target_include_directories(${MODULE} PUBLIC ${incdirs})
# Additional compilation flags
-set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g")
+set_target_properties(${MODULE}-object PROPERTIES COMPILE_FLAGS "-O -g")
# System dependent: Modify the way the library is build
if(${CMAKE_SYSTEM} MATCHES Darwin)
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib)
-install(FILES ${HDRS} DESTINATION include)
\ No newline at end of file
+install(FILES ${HDRS} DESTINATION include)
+
+# Static version if DA enabled
+if(ALIROOT_STATIC)
+ add_library(${MODULE}-static STATIC $<TARGET_OBJECTS:TPCbase-object>)
+ set_target_properties(${MODULE}-static PROPERTIES OUTPUT_NAME ${MODULE})
+
+ # list of shared dependencies / the name of the variable containing the list of static ones
+ generate_static_dependencies("${ALIROOT_DEPENDENCIES}" "STATIC_ALIROOT_DEPENDENCIES")
+ target_link_libraries(${MODULE}-static ${STATIC_ALIROOT_DEPENDENCIES} Root RootExtra)
+
+ # Public include folders that will be propagated to the dependecies
+ target_include_directories(${MODULE}-static PUBLIC ${incdirs})
+
+ set_target_properties(${MODULE}-static PROPERTIES LINK_FLAGS "-Wl,--whole-archive")
+
+ # Installation
+ install(TARGETS ${MODULE}-static
+ ARCHIVE DESTINATION lib
+ LIBRARY DESTINATION lib)
+endif(ALIROOT_STATIC)
#pragma link C++ class AliTPCExBEffectiveSector+; // sectorwise above
// --- still used in CalibMacros --- move to attic if removed there
+// Solving the circular rependecies
+#pragma link C++ class AliTPCClusterParam+; // Cluster parametrization - Moved from TPCrec
+#pragma link C++ class AliTPCQADataMakerRec+; // Offline QA - Moved from TPCrec
+#pragma link C++ class AliTPCRecoParam+; // Config parameters for reconstruction - moved from TPCrec
+#pragma link C++ class AliTPCClustersRow+; // TPC Container array of "cluster" inside 1 padrow - moved from TPCrec
+#pragma link C++ class AliTPCclusterMI+; // Derived from Cluster (shape in addition) - moved from TPCrec
+ // --- ask Peter what can happen if renamed (add some pragma !??!)
+#pragma link C++ class AliTPCclusterInfo+; // additional info attach to cluster (add digit map) - moved from TPCrec
+ // currently not used by default
+#pragma link C++ class AliClusters+; // Generic container for clusters derived from segmentID - all clusters - moved from TPCrec
+ // contains 1 AliTPCClustersRow per segment (1 segment = 1 padrow)
+#pragma link C++ class AliComplexCluster+; // Used to store additional cluster and tracklet information along track - moved from TPCrec
+ // Following classes are derived
+ // --- Documentation to be added - classes to be cleaned
+ // --- Marian to investigate
+#pragma link C++ class AliTPCExactPoint+; // defined in AliComplexCluster.h -- moved from TPCrec
+#pragma link C++ class AliTPCClusterPoint+; // defined in AliComplexCluster.h - moved from TPCrec
+#pragma link C++ class AliTPCTrackerPoint+; // defined in AliComplexCluster.h - moved from TPCrec
+#pragma link C++ class AliTPCTrackPoint+; // defined in AliComplexCluster.h - moved from TPCrec
+#pragma link C++ class AliTPCTrackPoint2+; // defined in AliComplexCluster.h - moved from TPCrec
#endif
+
#include "TObject.h"
#include "AliPadMax.h"
#include "AliSimDigits.h"
-#include "AliTPCv4.h"
+//#include "AliTPCv4.h"
#include "AliTPCParam.h"
#include "AliTPCDigitsArray.h"
#include "AliTPCvtpr.h"
// Origin:
//-------------------------------------------------------
+#include "TClonesArray.h"
//class TFile;
class AliTPCParam;
${AliRoot_SOURCE_DIR}/STEER/STEER
${AliRoot_SOURCE_DIR}/STEER/STEERBase
${AliRoot_SOURCE_DIR}/TPC/TPCbase
- ${AliRoot_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
get_directory_property(incdirs INCLUDE_DIRECTORIES)
generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
+set(ROOT_DEPENDENCIES Core Gpad Graf Hist MathCore Matrix Minuit Physics RIO Tree)
+set(ALIROOT_DEPENDENCIES STEERBase STEER CDB ESD RAWDatabase RAWDatarec ANALYSIS ANALYSISalice TPCbase)
+
# Generate the ROOT map
# Dependecies
-set(LIBDEPS STEERBase STEER CDB ESD RAWDatabase RAWDatarec ANALYSIS ANALYSISalice TPCbase TPCsim Core Gpad Graf Hist MathCore Matrix Minuit Physics RIO Tree)
+set(LIBDEPS ${ALIROOT_DEPENDENCIES} ${ROOT_DEPENDENCIES})
generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
+# Create an object to be reused in case of static libraries
+# Otherwise the sources will be compiled twice
+add_library(${MODULE}-object OBJECT ${SRCS} G__${MODULE}.cxx)
+# Add a library to the project using the object
+add_library(${MODULE} SHARED $<TARGET_OBJECTS:TPCrec-object>)
+
+# Linking
+target_link_libraries(${MODULE} ${ALIROOT_DEPENDENCIES} ${ROOT_DEPENDENCIES})
-# 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 CDB ESD RAWDatabase RAWDatarec ANALYSIS ANALYSISalice TPCbase TPCsim Core Gpad Graf Hist MathCore Matrix Minuit Physics RIO Tree)
+# Public include folders that will be propagated to the dependecies
+target_include_directories(${MODULE} PUBLIC ${incdirs})
# Additional compilation flags
-set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g")
+set_target_properties(${MODULE}-object PROPERTIES COMPILE_FLAGS "-O -g")
# System dependent: Modify the way the library is build
if(${CMAKE_SYSTEM} MATCHES Darwin)
#pragma link off all classes;
#pragma link off all functions;
-#pragma link C++ class AliTPCclusterMI+; // Derived from Cluster (shape in addition)
- // --- ask Peter what can happen if renamed (add some pragma !??!)
-#pragma link C++ class AliTPCclusterInfo+; // additional info attach to cluster (add digit map)
- // currently not used by default
-
-#pragma link C++ class AliComplexCluster+; // Used to store additional cluster and tracklet information along track
- // Following classes are derived
- // --- Documentation to be added - classes to be cleaned
- // --- Marian to investigate
-#pragma link C++ class AliTPCTrackerPoint+; // defined in AliComplexCluster.h
-#pragma link C++ class AliTPCClusterPoint+; // defined in AliComplexCluster.h
-#pragma link C++ class AliTPCExactPoint+; // defined in AliComplexCluster.h
-#pragma link C++ class AliTPCTrackPoint+; // defined in AliComplexCluster.h
-#pragma link C++ class AliTPCTrackPoint2+; // defined in AliComplexCluster.h
-
-#pragma link C++ class AliClusters+; // Generic container for clusters derived from segmentID - all clusters
- // contains 1 AliTPCClustersRow per segment (1 segment = 1 padrow)
-#pragma link C++ class AliTPCClustersRow+; // TPC Container array of "cluster" inside 1 padrow
-
#pragma link C++ class AliTPCclusterer+; // The TPC clusterer
#pragma link C++ class AliTPCtrack+; // Derived from AliTrack base class for TPC tracks
#pragma link C++ class AliTPCtracker+; // The TPC tracker
#pragma link C++ class AliTPCReconstructor+; // The TPC reconstructor steering TPC reconstruction
-#pragma link C++ class AliTPCRecoParam+; // Config parameters for reconstruction
-#pragma link C++ class AliTPCClusterParam+; // Cluster parametrization
#pragma link C++ class AliTPCTracklet+; // Used inside calbration for global fitting
// --- should be removed at a later point after calib reassessment
-#pragma link C++ class AliTPCQADataMakerRec+; // Offline QA
// Used in Krypton --- Update documentation for all 4 classes
#pragma link C++ class AliTPCvtpr+; // Helper class for clusterer --- Rename such that is clear that it is used in Kr
get_directory_property(incdirs INCLUDE_DIRECTORIES)
generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
+set(ROOT_DEPENDENCIES Core EG GenVector Geom Hist MathCore Matrix Physics RIO Tree VMC)
+set(ALIROOT_DEPENDENCIES STEERBase STEER CDB ESD RAWDatabase RAWDatarec RAWDatasim TPCbase TPCrec)
+
# Generate the ROOT map
# Dependecies
-set(LIBDEPS STEERBase STEER CDB ESD RAWDatabase RAWDatarec RAWDatasim TPCbase Core EG GenVector Geom Hist MathCore Matrix Physics RIO Tree VMC)
+set(LIBDEPS ${ALIROOT_DEPENDENCIES} ${ROOT_DEPENDENCIES})
generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
+# Create an object to be reused in case of static libraries
+# Otherwise the sources will be compiled twice
+add_library(${MODULE}-object OBJECT ${SRCS} G__${MODULE}.cxx)
+# Add a library to the project using the object
+add_library(${MODULE} SHARED $<TARGET_OBJECTS:TPCsim-object>)
+
+# Linking
+target_link_libraries(${MODULE} ${ALIROOT_DEPENDENCIES} ${ROOT_DEPENDENCIES})
-# 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 CDB ESD RAWDatabase RAWDatarec RAWDatasim TPCbase Core EG GenVector Geom Hist MathCore Matrix Physics RIO Tree VMC)
+# Public include folders that will be propagated to the dependecies
+target_include_directories(${MODULE} PUBLIC ${incdirs})
# Additional compilation flags
-set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g")
+set_target_properties(${MODULE}-object PROPERTIES COMPILE_FLAGS "-O -g")
# System dependent: Modify the way the library is build
if(${CMAKE_SYSTEM} MATCHES Darwin)