1 # **************************************************************************
2 # * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
4 # * Author: The ALICE Off-line Project. *
5 # * Contributors are mentioned in the code where appropriate. *
7 # * Permission to use, copy, modify and distribute this software and its *
8 # * documentation strictly for non-commercial purposes is hereby granted *
9 # * without fee, provided that the above copyright notice appears in all *
10 # * copies and that both the copyright notice and this permission notice *
11 # * appear in the supporting documentation. The authors make no claims *
12 # * about the suitability of this software for any purpose. It is *
13 # * provided "as is" without express or implied warranty. *
14 # **************************************************************************/
16 # Libraries from subdirectories
18 add_subdirectory(EVCHAR)
19 add_subdirectory(MUON)
24 # Module include folder
25 include_directories(${AliRoot_SOURCE_DIR}/PWGPP)
27 # Additional includes - alphabetical order except ROOT
28 include_directories(${ROOT_INCLUDE_DIRS}
29 ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS
30 ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSISalice
31 ${AliRoot_SOURCE_DIR}/ANALYSIS/Tender
32 ${AliRoot_SOURCE_DIR}/CORRFW
33 ${AliRoot_SOURCE_DIR}/EMCAL/EMCALUtils
34 ${AliRoot_SOURCE_DIR}/HMPID/HMPIDbase
35 ${AliRoot_SOURCE_DIR}/ITS/ITSbase
36 ${AliRoot_SOURCE_DIR}/ITS/ITSrec
37 ${AliRoot_SOURCE_DIR}/PWG/CaloTrackCorrBase
38 ${AliRoot_SOURCE_DIR}/STAT
39 ${AliRoot_SOURCE_DIR}/STEER/AOD
40 ${AliRoot_SOURCE_DIR}/STEER/CDB
41 ${AliRoot_SOURCE_DIR}/STEER/ESD
42 ${AliRoot_SOURCE_DIR}/STEER/STEER
43 ${AliRoot_SOURCE_DIR}/STEER/STEERBase
44 ${AliRoot_SOURCE_DIR}/TOF/TOFbase
45 ${AliRoot_SOURCE_DIR}/TOF/TOFrec
46 ${AliRoot_SOURCE_DIR}/TPC/TPCbase
47 ${AliRoot_SOURCE_DIR}/TPC/TPCrec
48 ${AliRoot_SOURCE_DIR}/TPC/TPCsim
49 ${AliRoot_SOURCE_DIR}/TRD/TRDbase
50 ${AliRoot_SOURCE_DIR}/TRD/TRDrec
53 # Sources as introduced by the authors
54 #file ( GLOB SRCS1 "*.cxx" )
57 AliAnalysisTaskFilteredTree.cxx
58 AliAnalysisTaskIPInfo.cxx
59 AliAnalysisTaskITSTPCalignment.cxx
60 AliAnalysisTaskQASym.cxx
61 AliAnalysisTaskV0QA.cxx
62 AliAnalysisTaskVtXY.cxx
64 AliFilteredTreeAcceptanceCuts.cxx
65 AliFilteredTreeEventCuts.cxx
66 AliIntSpotEstimator.cxx
67 AliRelAlignerKalmanArray.cxx
69 AliTrackComparison.cxx
70 AliTrackComparisonESD.cxx
72 #file ( GLOB SRCS2 "global/*.cxx" )
74 global/AliAnalysisTaskGlobalQA.cxx
75 global/AliAnalysisTaskVertexESD.cxx
76 global/AliGlobalFBFqa.cxx
78 #file ( GLOB SRCS3 "cosmic/*.cxx" )
80 cosmic/AliAnalysisTaskCosmic.cxx
82 #file ( GLOB SRCS4 "tender/*.cxx" )
84 tender/AliTenderSupplyTRD.cxx
86 #file ( GLOB SRCS5 "HMPID/*.cxx" )
88 HMPID/AliHMPIDTaskQA.cxx
90 #file ( GLOB SRCS6 "ITS/*.cxx" )
92 ITS/AliAlignmentDataFilterITS.cxx
93 ITS/AliAnalysisTaskdEdxSSDQA.cxx
94 ITS/AliAnalysisTaskITSAlignQA.cxx
95 ITS/AliAnalysisTaskITSsaTracks.cxx
96 ITS/AliAnalysisTaskITSTrackingCheck.cxx
97 ITS/AliAnalysisTaskSDDRP.cxx
98 ITS/AliAnalysisTaskSEImpParRes.cxx
99 ITS/AliAnalysisTaskSPD.cxx
100 ITS/AliMeanVertexCalibTask.cxx
101 ITS/AliMeanVertexPreprocessorOffline.cxx
103 ITS/AliTrackMatchingTPCITSCosmics.cxx
105 #file ( GLOB SRCS7 "TRD/*.cxx" )
107 TRD/AliTRDalignmentTask.cxx
108 TRD/AliTRDcalibration.cxx
109 TRD/AliTRDcheckDET.cxx
110 TRD/AliTRDcheckESD.cxx
111 TRD/AliTRDcheckPID.cxx
112 TRD/AliTRDcheckTRK.cxx
113 TRD/AliTRDclusterResolution.cxx
114 TRD/AliTRDefficiency.cxx
115 TRD/AliTRDefficiencyMC.cxx
116 TRD/AliTRDinfoGen.cxx
117 TRD/AliTRDmultiplicity.cxx
118 TRD/AliTRDonlineTrackletFilter.cxx
119 TRD/AliTRDonlineTrackletQA.cxx
120 TRD/AliTRDpidRefMaker.cxx
121 TRD/AliTRDpidRefMakerLQ.cxx
122 TRD/AliTRDpidRefMakerNN.cxx
123 TRD/AliTRDpwgppHelper.cxx
124 TRD/AliTRDrecoTask.cxx
125 TRD/AliTRDresolution.cxx
126 TRD/AliTRDv0Monitor.cxx
128 #file ( GLOB SRCS8 "TPC/*.cxx" )
130 TPC/AliAnalysisNoiseTPC.cxx
131 TPC/AliComparisonDraw.cxx
132 TPC/AliComparisonObject.cxx
133 TPC/AliESDRecInfo.cxx
134 TPC/AliESDRecKinkInfo.cxx
135 TPC/AliESDRecV0Info.cxx
136 TPC/AliESDresolMakerFast.cxx
137 TPC/AliESDresolParams.cxx
138 TPC/AliGenInfoMaker.cxx
139 TPC/AliGenInfoTask.cxx
140 TPC/AliGenKinkInfo.cxx
142 TPC/AliMaterialBudget.cxx
143 TPC/AliMCInfoCuts.cxx
145 TPC/AliMCTrackingTestTask.cxx
146 TPC/AliPerfAnalyzeInvPt.cxx
147 TPC/AliPerformanceDCA.cxx
148 TPC/AliPerformanceDEdx.cxx
149 TPC/AliPerformanceEff.cxx
150 TPC/AliPerformanceMatch.cxx
151 TPC/AliPerformanceMC.cxx
152 TPC/AliPerformanceObject.cxx
153 TPC/AliPerformancePtCalib.cxx
154 TPC/AliPerformancePtCalibMC.cxx
155 TPC/AliPerformanceRes.cxx
156 TPC/AliPerformanceTask.cxx
157 TPC/AliPerformanceTPC.cxx
158 TPC/AliRecInfoCuts.cxx
159 TPC/AliRecInfoMaker.cxx
160 TPC/AliTaskConfigOCDB.cxx
161 TPC/AliTPCComparisonPID.cxx
162 TPC/AliTPCPerformanceSummary.cxx
163 TPC/AliTPCtaskPID.cxx
166 TPC/AliTPCPIDBase.cxx
167 TPC/AliTPCPIDEtaTree.cxx
168 TPC/AliTPCPIDEtaQA.cxx
169 TPC/AliTPCcalibResidualPID.cxx
171 #file ( GLOB SRCS9 "TOF/*.cxx" )
173 TOF/AliAnalysisTaskTOFqa.cxx
174 TOF/AliAnalysisTaskTOFqaID.cxx
176 #file ( GLOB SRCS10 "TRD/info/*.cxx" )
178 TRD/info/AliTRDchmbInfo.cxx
179 TRD/info/AliTRDclusterInfo.cxx
180 TRD/info/AliTRDeventCuts.cxx
181 TRD/info/AliTRDeventInfo.cxx
182 TRD/info/AliTRDpidInfo.cxx
183 TRD/info/AliTRDtrackInfo.cxx
184 TRD/info/AliTRDtrendingManager.cxx
185 TRD/info/AliTRDtrendValue.cxx
186 TRD/info/AliTRDtriggerInfo.cxx
187 TRD/info/AliTRDv0Info.cxx
189 #file ( GLOB SRCS11 "background/*.cxx" )
191 background/AliHistoListWrapper.cxx
193 #file ( GLOB SRCS12 "Centrality/*.cxx" )
195 Centrality/AliAnalysisTaskHIMultCorr.cxx
196 Centrality/AliMultiplicityCorrelations.cxx
198 #file ( GLOB SRCS13 "ZDC/*.cxx" )
200 ZDC/AliAnalysisTaskZDC.cxx
201 ZDC/AliAnalysisTaskZDCpA.cxx
203 #file ( GLOB SRCS14 "T0/*.cxx" )
205 T0/AliT0AnalysisTaskQA.cxx
207 #file ( GLOB SRCS15 "VZERO/*PbPb.cxx" )
209 VZERO/AliAnaVZEROPbPb.cxx
211 #file ( GLOB SRCS16 "EvTrkSelection/*.cxx" )
213 EvTrkSelection/AliAnalysisTrackingUncertainties.cxx
214 EvTrkSelection/AliCFSingleTrackEfficiencyTask.cxx
215 EvTrkSelection/AliSingleTrackEffCuts.cxx
217 #file ( GLOB SRCS17 "TRD/TRDPID/*.cxx" )
219 TRD/TRDPID/AliTRDPIDTree.cxx
220 TRD/TRDPID/AliTRDPIDmatching.cxx
243 # Headers from sources
244 string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
246 # Generate the dictionary
247 # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
248 get_directory_property(incdirs INCLUDE_DIRECTORIES)
249 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
251 # Add a shared library
252 add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
254 # Generate the ROOT map
256 set(LIBDEPS ANALYSISalice CDB CORRFW EMCALUtils ITSrec HMPIDbase PWGCaloTrackCorrBase STEER Tender TOFrec TPCrec TRDrec Postscript)
257 generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
259 # Linking the library
260 target_link_libraries(${MODULE} ${LIBDEPS})
262 # Public include folders that will be propagated to the dependecies
263 target_include_directories(${MODULE} PUBLIC ${incdirs})
265 # System dependent: Modify the way the library is build
266 if(${CMAKE_SYSTEM} MATCHES Darwin)
267 set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
268 endif(${CMAKE_SYSTEM} MATCHES Darwin)
271 install(TARGETS ${MODULE}
272 ARCHIVE DESTINATION lib
273 LIBRARY DESTINATION lib)
274 install(FILES ${HDRS} DESTINATION include)
276 # install macros as needed
277 install(DIRECTORY macros DESTINATION PWGPP)
278 install(DIRECTORY CalibMacros DESTINATION PWGPP)
279 install(DIRECTORY PilotTrain DESTINATION PWGPP)
280 install(DIRECTORY CalibMacros DESTINATION PWGPP)
281 install(FILES HMPID/AddTaskHmpidQA.C DESTINATION PWGPP/HMPID)
282 install(FILES T0/AddTaskT0QA.C DESTINATION PWGPP/T0)
283 install(FILES TOF/AddTaskTOFQA.C
285 DESTINATION PWGPP/TOF)
286 install(FILES TOF/AddTaskTOFQA.C DESTINATION PWGPP/TOF)
287 install(DIRECTORY TPC/macros DESTINATION PWGPP/TPC PATTERN ".C")
288 install(DIRECTORY TRD DESTINATION PWGPP)
289 install(FILES TRD/TRDPID/macros/AddTaskTRDPIDTree.C
290 TRD/TRDPID/macros/AddTaskTRDPIDmatching.C
291 DESTINATION PWGPP/TRD)
292 install(FILES ZDC/AddTaskZDCQA.C DESTINATION PWGPP/ZDC)
293 install(FILES PilotTrain/AddTaskMuonQA.C DESTINATION PWGPP/PilotTrain/ )
294 install(FILES VZERO/AddTaskVZEROPbPb.C DESTINATION PWGPP/VZERO/)
295 install(DIRECTORY MUON/lite DESTINATION PWGPP/MUON FILES_MATCHING PATTERN "*.C")
296 install(DIRECTORY scripts DESTINATION PWGPP USE_SOURCE_PERMISSIONS)
297 install(DIRECTORY QA/scripts DESTINATION PWGPP/QA USE_SOURCE_PERMISSIONS)
298 install(DIRECTORY QA/detectorQAscripts DESTINATION PWGPP/QA USE_SOURCE_PERMISSIONS)
300 message(STATUS "PWGPP enabled")