]>
Commit | Line | Data |
---|---|---|
72cc12cd | 1 | # -*- mode: CMake -*- |
2 | #------------------------------------------------------------------------# | |
1de8812e | 3 | # Package File for PWGLFforward2 # |
72cc12cd | 4 | # Author : Christian Holm Christensen (cholm@nbi.dk) # |
5 | # Variables Defined : # | |
6 | # # | |
7 | # SRCS - C++ source files # | |
8 | # HDRS - C++ header files # | |
9 | # DHDR - ROOT Dictionary Linkdef header file # | |
10 | # CSRCS - C source files # | |
11 | # CHDRS - C header files # | |
12 | # EINCLUDE - Include directories # | |
13 | # EDEFINE - Compiler definitions # | |
14 | # ELIBS - Extra libraries to link # | |
15 | # ELIBSDIR - Extra library directories # | |
16 | # PACKFFLAGS - Fortran compiler flags for package # | |
17 | # PACKCXXFLAGS - C++ compiler flags for package # | |
18 | # PACKCFLAGS - C compiler flags for package # | |
19 | # PACKSOFLAGS - Shared library linking flags # | |
20 | # PACKLDFLAGS - Module linker flags # | |
21 | # PACKBLIBS - Libraries to link (Executables only) # | |
22 | # EXPORT - Header files to be exported # | |
23 | # CINTHDRS - Dictionary header files # | |
24 | # CINTAUTOLINK - Set automatic dictionary generation # | |
25 | # ARLIBS - Archive Libraries and objects for linking (Executables only) # | |
26 | # SHLIBS - Shared Libraries and objects for linking (Executables only) # | |
27 | #------------------------------------------------------------------------# | |
28 | ||
3c097975 | 29 | if((DEFINED ALIROOT_SVN_REVISION)) |
30 | add_definitions(-DALIROOT_SVN_REVISION=${ALIROOT_SVN_REVISION}) | |
3004df39 CHC |
31 | elseif((DEFINED ALIROOT_REVISION)) |
32 | add_definitions(-DALIROOT_REVISION=\"${ALIROOT_REVISION}\") | |
3c097975 | 33 | endif((DEFINED ALIROOT_SVN_REVISION)) |
34 | if((DEFINED ALIROOT_SVN_BRANCH)) | |
35 | add_definitions(-DALIROOT_SVN_BRANCH=\"${ALIROOT_SVN_BRANCH}\") | |
3004df39 CHC |
36 | elseif((DEFINED ALIROOT_BRANCH)) |
37 | add_definitions(-DALIROOT_BRANCH=\"${ALIROOT_BRANCH}\") | |
3c097975 | 38 | endif((DEFINED ALIROOT_SVN_BRANCH)) |
39 | ||
72cc12cd | 40 | set ( SRCS |
8449e3e0 | 41 | # ZDC tasks |
42 | FORWARD/GEO/AliAnalysisTaskZDCPbPb.cxx | |
43 | FORWARD/GEO/AliAnalysisTaskZDCTreeMaker.cxx | |
44 | FORWARD/GEO/AliAnalysisTaskZDCpAcalib.cxx | |
45 | # AOD objects | |
4bcdcbc1 | 46 | FORWARD/analysis2/AliAODCentralMult.cxx |
47 | FORWARD/analysis2/AliAODForwardEP.cxx | |
aef19df1 | 48 | FORWARD/analysis2/AliAODForwardMult.cxx |
8449e3e0 | 49 | # Interface to OADB backed by a TTree |
50 | FORWARD/analysis2/AliOADBForward.cxx | |
51 | # Correction managers | |
52 | FORWARD/analysis2/AliCorrectionManagerBase.cxx | |
53 | FORWARD/analysis2/AliForwardCorrectionManager.cxx | |
54 | FORWARD/analysis2/AliCentralCorrectionManager.cxx | |
55 | # Central (SPD) code | |
4bcdcbc1 | 56 | FORWARD/analysis2/AliCentralCorrAcceptance.cxx |
57 | FORWARD/analysis2/AliCentralCorrSecondaryMap.cxx | |
58 | FORWARD/analysis2/AliCentraldNdetaTask.cxx | |
59 | FORWARD/analysis2/AliCentralMCCorrectionsTask.cxx | |
60 | FORWARD/analysis2/AliCentralMCMultiplicityTask.cxx | |
61 | FORWARD/analysis2/AliCentralMultiplicityTask.cxx | |
8449e3e0 | 62 | FORWARD/analysis2/AliSPDMCTrackDensity.cxx |
63 | # Aux tasks and code | |
4bcdcbc1 | 64 | FORWARD/analysis2/AliCopyHeaderTask.cxx |
8449e3e0 | 65 | FORWARD/analysis2/AliBasedNdetaTask.cxx |
66 | FORWARD/analysis2/AliBaseMCTrackDensity.cxx | |
67 | FORWARD/analysis2/AliMCTruthdNdetaTask.cxx | |
4bcdcbc1 | 68 | FORWARD/analysis2/AliDisplacedVertexSelection.cxx |
8449e3e0 | 69 | FORWARD/analysis2/AliPoissonCalculator.cxx |
70 | FORWARD/analysis2/AliMCAuxHandler.cxx | |
71 | # Forward Aux | |
72 | FORWARD/analysis2/AliForwardFlowWeights.cxx | |
73 | FORWARD/analysis2/AliForwardUtil.cxx | |
74 | FORWARD/analysis2/AliFMDMultCuts.cxx | |
75 | # FMD corrections | |
aef19df1 | 76 | FORWARD/analysis2/AliFMDCorrAcceptance.cxx |
77 | FORWARD/analysis2/AliFMDCorrDoubleHit.cxx | |
4bcdcbc1 | 78 | FORWARD/analysis2/AliFMDCorrector.cxx |
aef19df1 | 79 | FORWARD/analysis2/AliFMDCorrELossFit.cxx |
80 | FORWARD/analysis2/AliFMDCorrMergingEfficiency.cxx | |
81 | FORWARD/analysis2/AliFMDCorrSecondaryMap.cxx | |
82 | FORWARD/analysis2/AliFMDCorrVertexBias.cxx | |
8449e3e0 | 83 | # FMD algortithmns |
aef19df1 | 84 | FORWARD/analysis2/AliFMDDensityCalculator.cxx |
85 | FORWARD/analysis2/AliFMDEnergyFitter.cxx | |
aef19df1 | 86 | FORWARD/analysis2/AliFMDEventInspector.cxx |
2b556440 | 87 | FORWARD/analysis2/AliFMDEventPlaneFinder.cxx |
aef19df1 | 88 | FORWARD/analysis2/AliFMDHistCollector.cxx |
8449e3e0 | 89 | FORWARD/analysis2/AliFMDSharingFilter.cxx |
90 | # FMD MC algorithms | |
aef19df1 | 91 | FORWARD/analysis2/AliFMDMCCorrector.cxx |
92 | FORWARD/analysis2/AliFMDMCDensityCalculator.cxx | |
4bcdcbc1 | 93 | FORWARD/analysis2/AliFMDMCEventInspector.cxx |
aef19df1 | 94 | FORWARD/analysis2/AliFMDMCSharingFilter.cxx |
3dd34bb1 | 95 | FORWARD/analysis2/AliFMDMCTrackDensity.cxx |
8449e3e0 | 96 | # Forward tasks |
1de8812e | 97 | FORWARD/analysis2/AliBaseESDTask.cxx |
98 | FORWARD/analysis2/AliBaseAODTask.cxx | |
99 | FORWARD/analysis2/AliBaseMCCorrectionsTask.cxx | |
8449e3e0 | 100 | FORWARD/analysis2/AliFMDEnergyFitterTask.cxx |
101 | FORWARD/analysis2/AliFMDEventPlaneTask.cxx | |
4bcdcbc1 | 102 | FORWARD/analysis2/AliForwarddNdetaTask.cxx |
103 | FORWARD/analysis2/AliForwardFlowTaskQC.cxx | |
104 | FORWARD/analysis2/AliForwardMCCorrectionsTask.cxx | |
105 | FORWARD/analysis2/AliForwardMCFlowTaskQC.cxx | |
106 | FORWARD/analysis2/AliForwardMCMultiplicityTask.cxx | |
aef19df1 | 107 | FORWARD/analysis2/AliForwardMultiplicityBase.cxx |
108 | FORWARD/analysis2/AliForwardMultiplicityTask.cxx | |
4bcdcbc1 | 109 | FORWARD/analysis2/AliForwardQATask.cxx |
ad7be237 | 110 | FORWARD/analysis2/AliForwardCreateResponseMatrices.cxx |
8449e3e0 | 111 | FORWARD/analysis2/AliForwardMultiplicityDistribution.cxx |
bfab35d9 | 112 | FORWARD/analysis2/AliForwardMultDists.cxx |
bfc97f52 | 113 | FORWARD/photons/AliAnalysisTaskPMD.cxx |
bfc97f52 | 114 | FORWARD/photons/AliAnalysisTaskPMDSim.cxx |
72cc12cd | 115 | ) |
9ece451d | 116 | |
117 | string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" ) | |
a19faec0 | 118 | set ( HDRS ${HDRS} |
119 | FORWARD/analysis2/AliFMDStripIndex.h | |
120 | FORWARD/analysis2/AliLandauGaus.h | |
121 | FORWARD/analysis2/AliLandauGausFitter.h | |
122 | ) | |
9ece451d | 123 | |
4bcdcbc1 | 124 | set ( EINCLUDE |
125 | ANALYSIS | |
126 | PWGLF/FORWARD/analysis2 | |
127 | PWGLF/FORWARD/GEO | |
8449e3e0 | 128 | FORWARD/analysis2 |
129 | FORWARD/GEO | |
4bcdcbc1 | 130 | PWG0 |
131 | STEER/ESD | |
132 | STEER/STEERBase) | |
9ece451d | 133 | |
b2e7f2d6 | 134 | set ( EXPORT FORWARD/analysis2/AliAODForwardMult.h |
744c1fb2 | 135 | FORWARD/analysis2/AliAODCentralMult.h |
8449e3e0 | 136 | FORWARD/analysis2/AliOADBForward.h |
52047b6f | 137 | FORWARD/analysis2/AliForwardUtil.h |
a19faec0 | 138 | FORWARD/analysis2/AliLandauGaus.h |
139 | FORWARD/analysis2/AliLandauGausFitter.h | |
52047b6f | 140 | FORWARD/analysis2/AliFMDEventInspector.h |
4545c3fe | 141 | FORWARD/analysis2/AliFMDMCEventInspector.h |
8449e3e0 | 142 | FORWARD/analysis2/AliForwardCorrectionManager.h |
66ee9f2f | 143 | FORWARD/analysis2/AliCentralCorrectionManager.h |
8449e3e0 | 144 | FORWARD/analysis2/AliCorrectionManagerBase.h |
bfab35d9 | 145 | FORWARD/analysis2/AliFMDCorrAcceptance.h |
146 | FORWARD/analysis2/AliFMDCorrSecondaryMap.h | |
147 | FORWARD/analysis2/AliFMDCorrELossFit.h | |
66ee9f2f | 148 | FORWARD/analysis2/AliBaseESDTask.h |
149 | FORWARD/analysis2/AliBaseAODTask.h | |
150 | FORWARD/analysis2/AliFMDEnergyFitter.h | |
151 | FORWARD/analysis2/AliMCAuxHandler.h | |
152 | FORWARD/analysis2/AliDisplacedVertexSelection.h | |
aea8c945 | 153 | FORWARD/GEO/AliAnalysisTaskZDCPbPb.h |
4aa5e658 | 154 | FORWARD/GEO/AliAnalysisTaskZDCpAcalib.h |
aea8c945 | 155 | FORWARD/GEO/AliAnalysisTaskZDCTreeMaker.h) |
cc83fca2 | 156 | |
b313ec91 | 157 | set ( DHDR PWGLFforward2LinkDef.h) |
72cc12cd | 158 | |
3c097975 | 159 | # add_executable(runTrain |
160 | # FORWARD/analysis2/trains/runMain.cxx) | |
161 | # target_link_libraries(runTrain | |
162 | # ${ARLIBS} ${SHLIBS} ${PBLIBS} ${EXEFLAGS} ${ROOTCLIBS}) | |
163 | # install(TARGETS runTrain | |
164 | # RUNTIME DESTINATION bin/tgt_${ALICE_TARGET}) | |
196434cd | 165 | |
3c097975 | 166 | add_executable(runTrain |
a6c1c51d | 167 | FORWARD/trains/trainMain.cxx) |
4bc32b87 | 168 | set(CMAKE_EXE_LINKER_FLAGS "${LDFLAGS}") |
3c097975 | 169 | target_link_libraries(runTrain |
a6c1c51d | 170 | ${BINLIBDIRS} ${ARLIBS} ${SHLIBS} ${PBLIBS} ${EXEFLAGS} ${ROOTCLIBS} |
171 | -lSTEERBase -lESD -lAOD -lOADB -lANALYSIS -lANALYSISalice) | |
3c097975 | 172 | install(TARGETS runTrain |
a6c1c51d | 173 | RUNTIME DESTINATION bin/tgt_${ALICE_TARGET}) |
3c097975 | 174 | add_dependencies(runTrain STEERBase ESD AOD OADB ANALYSIS ANALYSISalice) |
a6c1c51d | 175 | |
b2e7f2d6 | 176 | # -------------------------------------------------------------------- |
177 | # Extra targets | |
178 | # | |
47e8f045 | 179 | add_custom_command( OUTPUT FORWARD/doc/alice-int-2012-040.pdf |
180 | COMMAND pdflatex alice-int-2012-040 | |
181 | COMMAND pdflatex alice-int-2012-040 | |
182 | COMMAND pdflatex alice-int-2012-040 | |
b2e7f2d6 | 183 | COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc |
47e8f045 | 184 | COMMAND mv alice-int-2012-040.pdf ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/ |
b2e7f2d6 | 185 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/doc |
47e8f045 | 186 | MAIN_DEPENDENCY FORWARD/doc/alice-int-2012-040.tex) |
b2e7f2d6 | 187 | |
188 | add_custom_command( OUTPUT FORWARD/doc/html/index.html | |
189 | COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc | |
1de8812e | 190 | COMMAND sed -e 's,\\.\\./,${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/,' -e 's,OUTPUT_DIRECTORY *=.*,OUTPUT_DIRECTORY = FORWARD/doc/,' < ${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/doc/Doxyfile > ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/Doxyfile |
b2e7f2d6 | 191 | COMMAND doxygen ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/Doxyfile |
4bcdcbc1 | 192 | DEPENDS ${SRCS} ${HDRS}) |
b2e7f2d6 | 193 | |
47e8f045 | 194 | add_custom_target( PWGLFforward-doc DEPENDS FORWARD/doc/alice-int-2012-040.pdf ) |
b313ec91 | 195 | add_custom_target( PWGLFforward-doxy DEPENDS FORWARD/doc/html/index.html ) |
b2e7f2d6 | 196 | |
b313ec91 | 197 | add_custom_target( install-PWGLFforward2.par |
3dd34bb1 | 198 | COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/${PACKAGE}.par ${CMAKE_INSTALL_PREFIX} |
199 | COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --green --bold "${PACKAGE}.par installed in ${CMAKE_INSTALL_PREFIX}" | |
936b0a6c | 200 | DEPENDS ${CMAKE_BINARY_DIR}/${PACKAGE}.par |
201 | DEPENDS test-${PACKAGE}.par) | |
3dd34bb1 | 202 | |
72cc12cd | 203 | # -------------------------------------------------------------------- |
204 | # Extra installation targets | |
205 | # | |
206 | # Install scripts | |
207 | install ( DIRECTORY FORWARD/analysis2/scripts | |
b313ec91 | 208 | DESTINATION PWGLF/FORWARD/analysis2 |
b4742e93 | 209 | USE_SOURCE_PERMISSIONS |
210 | PATTERN "*~" EXCLUDE | |
211 | PATTERN ".svn" EXCLUDE | |
212 | PATTERN "*.d" EXCLUDE | |
213 | PATTERN "*.so" EXCLUDE) | |
72cc12cd | 214 | |
9416c923 | 215 | # install QA scripts |
216 | install ( DIRECTORY FORWARD/analysis2/qa | |
b313ec91 | 217 | DESTINATION PWGLF/FORWARD/analysis2 |
b4742e93 | 218 | USE_SOURCE_PERMISSIONS |
219 | PATTERN "*~" EXCLUDE | |
220 | PATTERN ".svn" EXCLUDE | |
221 | PATTERN "*.d" EXCLUDE | |
222 | PATTERN "*.so" EXCLUDE) | |
9416c923 | 223 | |
224 | # install correction scripts | |
225 | install ( DIRECTORY FORWARD/analysis2/corrs | |
b313ec91 | 226 | DESTINATION PWGLF/FORWARD/analysis2 |
b4742e93 | 227 | PATTERN "*~" EXCLUDE |
228 | PATTERN ".svn" EXCLUDE | |
229 | PATTERN "*.d" EXCLUDE | |
230 | PATTERN "*.so" EXCLUDE) | |
9416c923 | 231 | |
506d0527 | 232 | # install trains |
233 | install ( DIRECTORY FORWARD/analysis2/trains | |
b313ec91 | 234 | DESTINATION PWGLF/FORWARD/analysis2 |
b4742e93 | 235 | PATTERN "*~" EXCLUDE |
236 | PATTERN ".svn" EXCLUDE | |
237 | PATTERN "*.d" EXCLUDE | |
238 | PATTERN "*.so" EXCLUDE) | |
506d0527 | 239 | |
a6c1c51d | 240 | # install trains |
241 | install ( DIRECTORY FORWARD/trains | |
242 | DESTINATION PWGLF/FORWARD | |
be0cb943 | 243 | FILES_MATCHING PATTERN "*.C" |
244 | PATTERN "*~" EXCLUDE | |
245 | PATTERN ".svn" EXCLUDE) | |
246 | # PATTERN "*.d" EXCLUDE | |
247 | # PATTERN "*.so" EXCLUDE | |
248 | # PATTERN "*.root" EXCLUDE | |
249 | # PATTERN "*.png" EXCLUDE | |
250 | # PATTERN "test*" EXCLUDE | |
251 | # PATTERN "export*.C" EXCLUDE | |
252 | # PATTERN "dndeta_*.C" EXCLUDE | |
253 | # PATTERN "dndeta_*.root" EXCLUDE | |
a6c1c51d | 254 | |
72cc12cd | 255 | # Install other scripts |
0be6c8cd | 256 | install ( FILES FORWARD/analysis2/AddTaskCentraldNdeta.C |
3dd34bb1 | 257 | FORWARD/analysis2/AddTaskCentralMCCorr.C |
0be6c8cd | 258 | FORWARD/analysis2/AddTaskCentralMult.C |
259 | FORWARD/analysis2/AddTaskCentralTracks.C | |
f69bd0da | 260 | FORWARD/analysis2/AddTaskCopyHeader.C |
f69bd0da | 261 | FORWARD/analysis2/AddTaskFMDELoss.C |
9632bb06 | 262 | FORWARD/analysis2/AddTaskFMDEventPlane.C |
8884c43e | 263 | FORWARD/analysis2/AddTaskForwardFlowQC.C |
3dd34bb1 | 264 | FORWARD/analysis2/AddTaskForwardMCCorr.C |
efbb21e6 | 265 | FORWARD/analysis2/AddTaskForwardMult.C |
bfab35d9 | 266 | FORWARD/analysis2/AddTaskForwardMultDists.C |
87863667 | 267 | FORWARD/analysis2/AddTaskForwardQA.C |
b2e7f2d6 | 268 | FORWARD/analysis2/AddTaskForwarddNdeta.C |
1195ff50 | 269 | FORWARD/analysis2/AddTaskMCTruthdNdeta.C |
2b556440 | 270 | FORWARD/analysis2/AddTaskMCParticleFilter.C |
b2e7f2d6 | 271 | FORWARD/analysis2/DrawdNdeta.C |
2bc61f44 | 272 | FORWARD/analysis2/DrawdNdetaSummary.C |
bfab35d9 | 273 | FORWARD/analysis2/DrawMCCorrSummary.C |
2bc61f44 | 274 | FORWARD/analysis2/DrawAODSummary.C |
bfab35d9 | 275 | FORWARD/analysis2/DrawMultDistsSummary.C |
522419a8 | 276 | FORWARD/analysis2/DrawUnfoldedSummary.C |
fb1842e1 | 277 | FORWARD/analysis2/ForwardAODConfig.C |
3dd34bb1 | 278 | FORWARD/analysis2/CentralAODConfig.C |
72cc12cd | 279 | FORWARD/analysis2/MakeAOD.C |
b2e7f2d6 | 280 | FORWARD/analysis2/MakedNdeta.C |
72cc12cd | 281 | FORWARD/analysis2/MakeELossFits.C |
52047b6f | 282 | FORWARD/analysis2/MakeEvaluateTriggers.C |
9632bb06 | 283 | FORWARD/analysis2/MakeFlow.C |
284 | FORWARD/analysis2/MakeFMDEventPlane.C | |
3ababefa | 285 | FORWARD/analysis2/MakeForwardQA.C |
3dd34bb1 | 286 | FORWARD/analysis2/MakeMCCorr.C |
72cc12cd | 287 | FORWARD/analysis2/OtherData.C |
b313ec91 | 288 | DESTINATION PWGLF/FORWARD/analysis2 ) |
72cc12cd | 289 | |
66ee9f2f | 290 | # FORWARD/analysis2/AliFMDCorrAcceptance.h |
291 | # FORWARD/analysis2/AliFMDCorrDoubleHit.h | |
292 | # FORWARD/analysis2/AliFMDCorrector.h | |
293 | # FORWARD/analysis2/AliFMDCorrELossFit.h | |
294 | # FORWARD/analysis2/AliFMDCorrMergingEfficiency.h | |
295 | # FORWARD/analysis2/AliFMDCorrSecondaryMap.h | |
296 | # FORWARD/analysis2/AliFMDCorrVertexBias.h | |
297 | # FORWARD/analysis2/AliForwardUtil.h | |
298 | # FORWARD/analysis2/AliForwardCorrectionManager.h | |
299 | # FORWARD/analysis2/AliCorrectionManagerBase.h | |
300 | ||
72cc12cd | 301 | # Install corrections |
1de8812e | 302 | install ( DIRECTORY FORWARD/corrections/Empirical |
fb1842e1 | 303 | FORWARD/corrections/Normalization |
b313ec91 | 304 | DESTINATION PWGLF/FORWARD/corrections |
b4742e93 | 305 | PATTERN "*~" EXCLUDE |
72cc12cd | 306 | PATTERN ".svn" EXCLUDE) |
307 | ||
308 | # Install shell script | |
309 | install ( FILES FORWARD/analysis2/Run.sh | |
47e8f045 | 310 | FORWARD/analysis2/liteAnalysis.sh |
311 | FORWARD/analysis2/gridAnalysis.sh | |
522419a8 | 312 | FORWARD/analysis2/baseAnalysis.sh |
b313ec91 | 313 | DESTINATION PWGLF/FORWARD/analysis2 |
72cc12cd | 314 | PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ |
315 | GROUP_EXECUTE GROUP_READ | |
316 | WORLD_EXECUTE WORLD_READ ) | |
317 | ||
318 | ||
319 | # -------------------------------------------------------------------- | |
320 | # | |
321 | # EOF | |
322 | # |