Update in cuts for Sigma* and update for lego_train macros (M.Vala)
[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 set ( SRCS   
30   FORWARD/analysis2/AliAODForwardMult.cxx
31   FORWARD/analysis2/AliFMDCorrAcceptance.cxx
32   FORWARD/analysis2/AliFMDCorrDoubleHit.cxx
33   FORWARD/analysis2/AliFMDCorrELossFit.cxx 
34   FORWARD/analysis2/AliFMDCorrMergingEfficiency.cxx
35   FORWARD/analysis2/AliFMDCorrSecondaryMap.cxx 
36   FORWARD/analysis2/AliFMDCorrVertexBias.cxx
37   FORWARD/analysis2/AliFMDCorrector.cxx 
38   FORWARD/analysis2/AliFMDDensityCalculator.cxx
39   FORWARD/analysis2/AliFMDEnergyFitter.cxx
40   FORWARD/analysis2/AliFMDEnergyFitterTask.cxx 
41   FORWARD/analysis2/AliFMDEventInspector.cxx
42   FORWARD/analysis2/AliFMDEventPlaneFinder.cxx
43   FORWARD/analysis2/AliFMDHistCollector.cxx
44   FORWARD/analysis2/AliFMDSharingFilter.cxx
45   FORWARD/analysis2/AliFMDMCEventInspector.cxx
46   FORWARD/analysis2/AliFMDMCCorrector.cxx
47   FORWARD/analysis2/AliFMDMCDensityCalculator.cxx
48   FORWARD/analysis2/AliFMDMCSharingFilter.cxx
49   FORWARD/analysis2/AliFMDMCTrackDensity.cxx
50   FORWARD/analysis2/AliForwardCorrectionManager.cxx
51   FORWARD/analysis2/AliForwardMultiplicityBase.cxx
52   FORWARD/analysis2/AliForwardMultiplicityTask.cxx
53   FORWARD/analysis2/AliForwardMCMultiplicityTask.cxx 
54   FORWARD/analysis2/AliForwardMCCorrectionsTask.cxx
55   FORWARD/analysis2/AliForwarddNdetaTask.cxx
56   FORWARD/analysis2/AliForwardUtil.cxx
57   FORWARD/analysis2/AliCentralMultiplicityTask.cxx
58   FORWARD/analysis2/AliCentralMCMultiplicityTask.cxx
59   FORWARD/analysis2/AliCentralMCCorrectionsTask.cxx
60   FORWARD/analysis2/AliAODCentralMult.cxx
61   FORWARD/analysis2/AliAODForwardEP.cxx
62   FORWARD/analysis2/AliCentralCorrSecondaryMap.cxx
63   FORWARD/analysis2/AliCentralCorrAcceptance.cxx 
64   FORWARD/analysis2/AliCentraldNdetaTask.cxx
65   FORWARD/analysis2/AliBasedNdetaTask.cxx
66   FORWARD/analysis2/AliMCTruthdNdetaTask.cxx
67   FORWARD/analysis2/AliForwardFlowTaskQC.cxx
68   FORWARD/analysis2/AliForwardMCFlowTaskQC.cxx
69   FORWARD/analysis2/AliFMDEventPlaneTask.cxx
70   FORWARD/analysis2/AliSPDMCTrackDensity.cxx
71   FORWARD/analysis2/AliFMDMultCuts.cxx
72   FORWARD/analysis2/AliPoissonCalculator.cxx
73   FORWARD/analysis2/AliForwardQATask.cxx
74   FORWARD/analysis2/AliCopyHeaderTask.cxx
75   FORWARD/analysis2/AliDisplacedVertexSelection.cxx
76 )
77
78 string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
79 set ( HDRS ${HDRS} FORWARD/analysis2/AliFMDStripIndex.h )
80
81 set ( EINCLUDE  ANALYSIS PWGLF/FORWARD/analysis2 PWG0 STEER/ESD STEER/STEERBase)
82
83 set ( EXPORT FORWARD/analysis2/AliAODForwardMult.h 
84              FORWARD/analysis2/AliAODCentralMult.h 
85              FORWARD/analysis2/AliForwardUtil.h  
86              FORWARD/analysis2/AliFMDEventInspector.h
87              FORWARD/analysis2/AliFMDMCEventInspector.h)
88
89 set ( DHDR  PWGLFforward2LinkDef.h)
90
91 # --------------------------------------------------------------------
92 # Extra targets 
93 #
94 add_custom_command( OUTPUT FORWARD/doc/doc.pdf 
95                     COMMAND pdflatex doc
96                     COMMAND pdflatex doc
97                     COMMAND pdflatex doc
98                     COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc
99                     COMMAND mv doc.pdf ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/
100                     WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/doc
101                     MAIN_DEPENDENCY FORWARD/doc/doc.tex )
102
103 add_custom_command( OUTPUT FORWARD/doc/html/index.html 
104                     COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc
105                     COMMAND sed -e 's,../analysis2,${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/analysis2,' -e 's,OUTPUT_DIRECTORY *=.*,OUTPUT_DIRECTORY = FORWARD/doc/,' < ${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/doc/Doxyfile > ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/Doxyfile
106                     COMMAND doxygen ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/Doxyfile
107                     DEPENDS ${SRCS} ${HDRS} )
108
109 add_custom_target( PWGLFforward-doc DEPENDS FORWARD/doc/doc.pdf )
110 add_custom_target( PWGLFforward-doxy DEPENDS FORWARD/doc/html/index.html )
111
112 add_custom_target( install-PWGLFforward2.par 
113   COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/${PACKAGE}.par ${CMAKE_INSTALL_PREFIX}
114   COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --green --bold "${PACKAGE}.par installed in ${CMAKE_INSTALL_PREFIX}"
115   DEPENDS ${CMAKE_BINARY_DIR}/${PACKAGE}.par)
116
117 # --------------------------------------------------------------------
118 # Extra installation targets 
119 #
120 # Install scripts 
121 install ( DIRECTORY FORWARD/analysis2/scripts 
122           DESTINATION PWGLF/FORWARD/analysis2 
123           USE_SOURCE_PERMISSIONS
124           PATTERN "*~"    EXCLUDE
125           PATTERN ".svn"  EXCLUDE
126           PATTERN "*.d"   EXCLUDE 
127           PATTERN "*.so"  EXCLUDE)
128
129 # install QA scripts 
130 install ( DIRECTORY FORWARD/analysis2/qa
131           DESTINATION PWGLF/FORWARD/analysis2 
132           USE_SOURCE_PERMISSIONS
133           PATTERN "*~"    EXCLUDE
134           PATTERN ".svn"  EXCLUDE
135           PATTERN "*.d"   EXCLUDE 
136           PATTERN "*.so"  EXCLUDE)
137
138 # install correction scripts 
139 install ( DIRECTORY FORWARD/analysis2/corrs
140           DESTINATION PWGLF/FORWARD/analysis2 
141           PATTERN "*~"    EXCLUDE
142           PATTERN ".svn"  EXCLUDE
143           PATTERN "*.d"   EXCLUDE 
144           PATTERN "*.so"  EXCLUDE)
145
146 # install trains 
147 install ( DIRECTORY FORWARD/analysis2/trains 
148           DESTINATION PWGLF/FORWARD/analysis2 
149           PATTERN "*~"   EXCLUDE
150           PATTERN ".svn" EXCLUDE
151           PATTERN "*.d"  EXCLUDE 
152           PATTERN "*.so" EXCLUDE)
153
154 # Install other scripts
155 install ( FILES FORWARD/analysis2/AddTaskCentraldNdeta.C
156                 FORWARD/analysis2/AddTaskCentralMCCorr.C
157                 FORWARD/analysis2/AddTaskCentralMult.C
158                 FORWARD/analysis2/AddTaskCentralTracks.C
159                 FORWARD/analysis2/AddTaskCopyHeader.C
160                 FORWARD/analysis2/AddTaskFMDELoss.C
161                 FORWARD/analysis2/AddTaskFMDEventPlane.C
162                 FORWARD/analysis2/AddTaskForwardFlow.C
163                 FORWARD/analysis2/AddTaskForwardMCCorr.C
164                 FORWARD/analysis2/AddTaskForwardMult.C
165                 FORWARD/analysis2/AddTaskForwardQA.C
166                 FORWARD/analysis2/AddTaskForwarddNdeta.C
167                 FORWARD/analysis2/AddTaskMCTruthdNdeta.C
168                 FORWARD/analysis2/AddTaskMCParticleFilter.C
169                 FORWARD/analysis2/DrawdNdeta.C
170                 FORWARD/analysis2/ForwardAODConfig.C
171                 FORWARD/analysis2/CentralAODConfig.C
172                 FORWARD/analysis2/MakeAOD.C
173                 FORWARD/analysis2/MakedNdeta.C
174                 FORWARD/analysis2/MakeELossFits.C
175                 FORWARD/analysis2/MakeEvaluateTriggers.C
176                 FORWARD/analysis2/MakeFlow.C
177                 FORWARD/analysis2/MakeFMDEventPlane.C
178                 FORWARD/analysis2/MakeForwardQA.C
179                 FORWARD/analysis2/MakeMCCorr.C          
180                 FORWARD/analysis2/OtherData.C
181            DESTINATION PWGLF/FORWARD/analysis2 )
182
183 # Install corrections 
184 install ( DIRECTORY FORWARD/corrections/DoubleHit
185                     FORWARD/corrections/ELossFits
186                     FORWARD/corrections/MergingEfficiency
187                     FORWARD/corrections/SecondaryMap
188                     FORWARD/corrections/VertexBias
189                     FORWARD/corrections/Acceptance
190                     FORWARD/corrections/Normalization
191                     FORWARD/corrections/CentralAcceptance
192                     FORWARD/corrections/CentralSecMap
193           DESTINATION PWGLF/FORWARD/corrections 
194           PATTERN "*~"   EXCLUDE
195           PATTERN ".svn" EXCLUDE)
196
197 # Install shell script 
198 install ( FILES FORWARD/analysis2/Run.sh 
199           DESTINATION PWGLF/FORWARD/analysis2 
200           PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
201                       GROUP_EXECUTE GROUP_READ
202                       WORLD_EXECUTE WORLD_READ )
203
204
205 # --------------------------------------------------------------------
206 #
207 # EOF
208