Added analysis config macros for L* analysis in p-Pb (Sarita)
[u/mrichter/AliRoot.git] / PWGLF / CMakelibPWGLFforward2.pkg
1 # -*- mode: CMake -*-
2 #------------------------------------------------------------------------#
3 # Package File for PWGLFforward2                                         #
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
29 if((DEFINED ALIROOT_SVN_REVISION)) 
30   add_definitions(-DALIROOT_SVN_REVISION=${ALIROOT_SVN_REVISION})
31 elseif((DEFINED ALIROOT_REVISION)) 
32   add_definitions(-DALIROOT_REVISION=\"${ALIROOT_REVISION}\")
33 endif((DEFINED ALIROOT_SVN_REVISION)) 
34 if((DEFINED ALIROOT_SVN_BRANCH)) 
35   add_definitions(-DALIROOT_SVN_BRANCH=\"${ALIROOT_SVN_BRANCH}\")
36 elseif((DEFINED ALIROOT_BRANCH)) 
37   add_definitions(-DALIROOT_BRANCH=\"${ALIROOT_BRANCH}\")
38 endif((DEFINED ALIROOT_SVN_BRANCH))
39
40 set ( SRCS   
41   # ZDC tasks
42   FORWARD/GEO/AliAnalysisTaskZDCPbPb.cxx
43   FORWARD/GEO/AliAnalysisTaskZDCTreeMaker.cxx
44   FORWARD/GEO/AliAnalysisTaskZDCpAcalib.cxx
45   # AOD objects
46   FORWARD/analysis2/AliAODCentralMult.cxx
47   FORWARD/analysis2/AliAODForwardEP.cxx
48   FORWARD/analysis2/AliAODForwardMult.cxx
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 
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
62   FORWARD/analysis2/AliSPDMCTrackDensity.cxx
63   # Aux tasks and code 
64   FORWARD/analysis2/AliCopyHeaderTask.cxx
65   FORWARD/analysis2/AliBasedNdetaTask.cxx
66   FORWARD/analysis2/AliBaseMCTrackDensity.cxx
67   FORWARD/analysis2/AliMCTruthdNdetaTask.cxx
68   FORWARD/analysis2/AliDisplacedVertexSelection.cxx
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
76   FORWARD/analysis2/AliFMDCorrAcceptance.cxx
77   FORWARD/analysis2/AliFMDCorrDoubleHit.cxx
78   FORWARD/analysis2/AliFMDCorrector.cxx 
79   FORWARD/analysis2/AliFMDCorrELossFit.cxx 
80   FORWARD/analysis2/AliFMDCorrMergingEfficiency.cxx
81   FORWARD/analysis2/AliFMDCorrSecondaryMap.cxx 
82   FORWARD/analysis2/AliFMDCorrVertexBias.cxx
83   # FMD algortithmns 
84   FORWARD/analysis2/AliFMDDensityCalculator.cxx
85   FORWARD/analysis2/AliFMDEnergyFitter.cxx
86   FORWARD/analysis2/AliFMDEventInspector.cxx
87   FORWARD/analysis2/AliFMDEventPlaneFinder.cxx
88   FORWARD/analysis2/AliFMDHistCollector.cxx
89   FORWARD/analysis2/AliFMDSharingFilter.cxx
90   # FMD MC algorithms
91   FORWARD/analysis2/AliFMDMCCorrector.cxx
92   FORWARD/analysis2/AliFMDMCDensityCalculator.cxx
93   FORWARD/analysis2/AliFMDMCEventInspector.cxx
94   FORWARD/analysis2/AliFMDMCSharingFilter.cxx
95   FORWARD/analysis2/AliFMDMCTrackDensity.cxx
96   # Forward tasks 
97   FORWARD/analysis2/AliBaseESDTask.cxx
98   FORWARD/analysis2/AliBaseAODTask.cxx
99   FORWARD/analysis2/AliBaseMCCorrectionsTask.cxx
100   FORWARD/analysis2/AliFMDEnergyFitterTask.cxx 
101   FORWARD/analysis2/AliFMDEventPlaneTask.cxx
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 
107   FORWARD/analysis2/AliForwardMultiplicityBase.cxx
108   FORWARD/analysis2/AliForwardMultiplicityTask.cxx
109   FORWARD/analysis2/AliForwardQATask.cxx
110   FORWARD/analysis2/AliForwardCreateResponseMatrices.cxx
111   FORWARD/analysis2/AliForwardMultiplicityDistribution.cxx
112   FORWARD/analysis2/AliForwardMultDists.cxx
113   FORWARD/photons/AliAnalysisTaskPMD.cxx
114   FORWARD/photons/AliAnalysisTaskPMDSim.cxx
115 )
116
117 string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
118 set ( HDRS ${HDRS} FORWARD/analysis2/AliFMDStripIndex.h )
119
120 set ( EINCLUDE  
121   ANALYSIS 
122   PWGLF/FORWARD/analysis2  
123   PWGLF/FORWARD/GEO 
124   FORWARD/analysis2  
125   FORWARD/GEO 
126   PWG0 
127   STEER/ESD 
128   STEER/STEERBase)
129
130 set ( EXPORT FORWARD/analysis2/AliAODForwardMult.h 
131              FORWARD/analysis2/AliAODCentralMult.h 
132              FORWARD/analysis2/AliOADBForward.h
133              FORWARD/analysis2/AliForwardUtil.h  
134              FORWARD/analysis2/AliFMDEventInspector.h
135              FORWARD/analysis2/AliFMDMCEventInspector.h
136              FORWARD/analysis2/AliForwardCorrectionManager.h
137              FORWARD/analysis2/AliCentralCorrectionManager.h
138              FORWARD/analysis2/AliCorrectionManagerBase.h
139              FORWARD/analysis2/AliFMDCorrAcceptance.h
140              FORWARD/analysis2/AliFMDCorrSecondaryMap.h
141              FORWARD/analysis2/AliFMDCorrELossFit.h
142              FORWARD/analysis2/AliBaseESDTask.h
143              FORWARD/analysis2/AliBaseAODTask.h
144              FORWARD/analysis2/AliFMDEnergyFitter.h
145              FORWARD/analysis2/AliMCAuxHandler.h
146              FORWARD/analysis2/AliDisplacedVertexSelection.h
147              FORWARD/GEO/AliAnalysisTaskZDCPbPb.h
148              FORWARD/GEO/AliAnalysisTaskZDCpAcalib.h
149              FORWARD/GEO/AliAnalysisTaskZDCTreeMaker.h)
150
151 set ( DHDR  PWGLFforward2LinkDef.h)
152
153 # add_executable(runTrain
154 #   FORWARD/analysis2/trains/runMain.cxx)
155 # target_link_libraries(runTrain 
156 #   ${ARLIBS} ${SHLIBS} ${PBLIBS} ${EXEFLAGS} ${ROOTCLIBS})
157 # install(TARGETS runTrain 
158 #   RUNTIME DESTINATION bin/tgt_${ALICE_TARGET})
159
160 add_executable(runTrain
161   FORWARD/trains/trainMain.cxx)
162 set(CMAKE_EXE_LINKER_FLAGS "${LDFLAGS}")
163 target_link_libraries(runTrain 
164   ${BINLIBDIRS} ${ARLIBS} ${SHLIBS} ${PBLIBS} ${EXEFLAGS} ${ROOTCLIBS} 
165   -lSTEERBase -lESD -lAOD -lOADB -lANALYSIS -lANALYSISalice)
166 install(TARGETS runTrain 
167   RUNTIME DESTINATION bin/tgt_${ALICE_TARGET})
168 add_dependencies(runTrain STEERBase ESD AOD OADB ANALYSIS ANALYSISalice)
169
170 # --------------------------------------------------------------------
171 # Extra targets 
172 #
173 add_custom_command( OUTPUT FORWARD/doc/alice-int-2012-040.pdf 
174                     COMMAND pdflatex alice-int-2012-040
175                     COMMAND pdflatex alice-int-2012-040
176                     COMMAND pdflatex alice-int-2012-040
177                     COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc
178                     COMMAND mv alice-int-2012-040.pdf ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/
179                     WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/doc
180                     MAIN_DEPENDENCY FORWARD/doc/alice-int-2012-040.tex)
181
182 add_custom_command( OUTPUT FORWARD/doc/html/index.html 
183                     COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc
184                     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
185                     COMMAND doxygen ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/Doxyfile
186                     DEPENDS ${SRCS} ${HDRS})
187
188 add_custom_target( PWGLFforward-doc DEPENDS FORWARD/doc/alice-int-2012-040.pdf )
189 add_custom_target( PWGLFforward-doxy DEPENDS FORWARD/doc/html/index.html )
190
191 add_custom_target( install-PWGLFforward2.par 
192   COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/${PACKAGE}.par ${CMAKE_INSTALL_PREFIX}
193   COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --green --bold "${PACKAGE}.par installed in ${CMAKE_INSTALL_PREFIX}"
194   DEPENDS ${CMAKE_BINARY_DIR}/${PACKAGE}.par
195   DEPENDS test-${PACKAGE}.par)
196
197 # --------------------------------------------------------------------
198 # Extra installation targets 
199 #
200 # Install scripts 
201 install ( DIRECTORY FORWARD/analysis2/scripts 
202           DESTINATION PWGLF/FORWARD/analysis2 
203           USE_SOURCE_PERMISSIONS
204           PATTERN "*~"    EXCLUDE
205           PATTERN ".svn"  EXCLUDE
206           PATTERN "*.d"   EXCLUDE 
207           PATTERN "*.so"  EXCLUDE)
208
209 # install QA scripts 
210 install ( DIRECTORY FORWARD/analysis2/qa
211           DESTINATION PWGLF/FORWARD/analysis2 
212           USE_SOURCE_PERMISSIONS
213           PATTERN "*~"    EXCLUDE
214           PATTERN ".svn"  EXCLUDE
215           PATTERN "*.d"   EXCLUDE 
216           PATTERN "*.so"  EXCLUDE)
217
218 # install correction scripts 
219 install ( DIRECTORY FORWARD/analysis2/corrs
220           DESTINATION PWGLF/FORWARD/analysis2 
221           PATTERN "*~"    EXCLUDE
222           PATTERN ".svn"  EXCLUDE
223           PATTERN "*.d"   EXCLUDE 
224           PATTERN "*.so"  EXCLUDE)
225
226 # install trains 
227 install ( DIRECTORY FORWARD/analysis2/trains 
228           DESTINATION PWGLF/FORWARD/analysis2 
229           PATTERN "*~"   EXCLUDE
230           PATTERN ".svn" EXCLUDE
231           PATTERN "*.d"  EXCLUDE 
232           PATTERN "*.so" EXCLUDE)
233
234 # install trains 
235 install ( DIRECTORY FORWARD/trains 
236           DESTINATION PWGLF/FORWARD 
237           FILES_MATCHING PATTERN "*.C"
238           PATTERN "*~"        EXCLUDE
239           PATTERN ".svn"      EXCLUDE)
240           # PATTERN "*.d"       EXCLUDE 
241           # PATTERN "*.so"      EXCLUDE
242           # PATTERN "*.root"    EXCLUDE
243           # PATTERN "*.png"     EXCLUDE
244           # PATTERN "test*"     EXCLUDE
245           # PATTERN "export*.C" EXCLUDE
246           # PATTERN "dndeta_*.C" EXCLUDE
247           # PATTERN "dndeta_*.root" EXCLUDE
248
249 # Install other scripts
250 install ( FILES FORWARD/analysis2/AddTaskCentraldNdeta.C
251                 FORWARD/analysis2/AddTaskCentralMCCorr.C
252                 FORWARD/analysis2/AddTaskCentralMult.C
253                 FORWARD/analysis2/AddTaskCentralTracks.C
254                 FORWARD/analysis2/AddTaskCopyHeader.C
255                 FORWARD/analysis2/AddTaskFMDELoss.C
256                 FORWARD/analysis2/AddTaskFMDEventPlane.C
257                 FORWARD/analysis2/AddTaskForwardFlowQC.C
258                 FORWARD/analysis2/AddTaskForwardMCCorr.C
259                 FORWARD/analysis2/AddTaskForwardMult.C
260                 FORWARD/analysis2/AddTaskForwardMultDists.C
261                 FORWARD/analysis2/AddTaskForwardQA.C
262                 FORWARD/analysis2/AddTaskForwarddNdeta.C
263                 FORWARD/analysis2/AddTaskMCTruthdNdeta.C
264                 FORWARD/analysis2/AddTaskMCParticleFilter.C
265                 FORWARD/analysis2/DrawdNdeta.C
266                 FORWARD/analysis2/DrawdNdetaSummary.C
267                 FORWARD/analysis2/DrawMCCorrSummary.C
268                 FORWARD/analysis2/DrawAODSummary.C
269                 FORWARD/analysis2/DrawMultDistsSummary.C
270                 FORWARD/analysis2/DrawUnfoldedSummary.C
271                 FORWARD/analysis2/ForwardAODConfig.C
272                 FORWARD/analysis2/CentralAODConfig.C
273                 FORWARD/analysis2/MakeAOD.C
274                 FORWARD/analysis2/MakedNdeta.C
275                 FORWARD/analysis2/MakeELossFits.C
276                 FORWARD/analysis2/MakeEvaluateTriggers.C
277                 FORWARD/analysis2/MakeFlow.C
278                 FORWARD/analysis2/MakeFMDEventPlane.C
279                 FORWARD/analysis2/MakeForwardQA.C
280                 FORWARD/analysis2/MakeMCCorr.C          
281                 FORWARD/analysis2/OtherData.C
282            DESTINATION PWGLF/FORWARD/analysis2 )
283
284          # FORWARD/analysis2/AliFMDCorrAcceptance.h
285          # FORWARD/analysis2/AliFMDCorrDoubleHit.h
286          # FORWARD/analysis2/AliFMDCorrector.h
287          # FORWARD/analysis2/AliFMDCorrELossFit.h
288          # FORWARD/analysis2/AliFMDCorrMergingEfficiency.h
289          # FORWARD/analysis2/AliFMDCorrSecondaryMap.h
290          # FORWARD/analysis2/AliFMDCorrVertexBias.h
291          # FORWARD/analysis2/AliForwardUtil.h
292          # FORWARD/analysis2/AliForwardCorrectionManager.h
293          # FORWARD/analysis2/AliCorrectionManagerBase.h
294
295 # Install corrections 
296 install ( DIRECTORY FORWARD/corrections/Empirical
297                     FORWARD/corrections/Normalization
298           DESTINATION PWGLF/FORWARD/corrections 
299           PATTERN "*~"   EXCLUDE
300           PATTERN ".svn" EXCLUDE)
301
302 # Install shell script 
303 install ( FILES FORWARD/analysis2/Run.sh 
304                 FORWARD/analysis2/liteAnalysis.sh
305                 FORWARD/analysis2/gridAnalysis.sh
306                 FORWARD/analysis2/baseAnalysis.sh
307           DESTINATION PWGLF/FORWARD/analysis2 
308           PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
309                       GROUP_EXECUTE GROUP_READ
310                       WORLD_EXECUTE WORLD_READ )
311
312
313 # --------------------------------------------------------------------
314 #
315 # EOF
316