Changeset 1176 in svn
- Timestamp:
- Jul 4, 2013, 1:04:19 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r1171 r1176 19 19 DELPHES_LIBS = $(shell $(RC) --libs) -lEG $(SYSLIBS) 20 20 DISPLAY_LIBS = $(shell $(RC) --evelibs) $(SYSLIBS) 21 22 ifneq ($(CMSSW_FWLITE_INCLUDE_PATH),) 23 HAS_CMSSW = true 24 CXXFLAGS += $(subst :, -I,$(CMSSW_FWLITE_INCLUDE_PATH)) 25 DELPHES_LIBS += $(subst include,lib,$(subst :, -L,$(CMSSW_FWLITE_INCLUDE_PATH)) 26 ifneq ($(CMSSW_RELEASE_BASE),) 27 CXXFLAGS += -I$(CMSSW_RELEASE_BASE)/src 28 endif 29 ifneq ($(LD_LIBRARY_PATH),) 30 DELPHES_LIBS += $(subst include,lib,$(subst :, -L,$(LD_LIBRARY_PATH)) 31 endif 32 DELPHES_LIBS += -lFWCoreFWLite -lDataFormatsFWLite -lDataFormatsPatCandidates -lDataFormatsLuminosity -lCommonToolsUtils 33 endif 34 35 ifneq ($(PROMC),) 36 HAS_PROMC = true 37 CXXFLAGS += -I$(PROMC)/include 38 DELPHES_LIBS += -L$(PROMC)/lib -lprotoc -lprotobuf -lprotobuf-lite -lcbook -lz 39 endif 21 40 22 41 ifneq ($(PYTHIA8),) … … 47 66 48 67 49 DelphesLHEF$(ExeSuf): \50 tmp/readers/DelphesLHEF.$(ObjSuf)51 52 tmp/readers/DelphesLHEF.$(ObjSuf): \53 readers/DelphesLHEF.cpp \54 modules/Delphes.h \55 classes/DelphesClasses.h \56 classes/DelphesFactory.h \57 classes/DelphesLHEFReader.h \58 external/ExRootAnalysis/ExRootTreeWriter.h \59 external/ExRootAnalysis/ExRootTreeBranch.h \60 external/ExRootAnalysis/ExRootProgressBar.h61 DelphesHepMC$(ExeSuf): \62 tmp/readers/DelphesHepMC.$(ObjSuf)63 64 tmp/readers/DelphesHepMC.$(ObjSuf): \65 readers/DelphesHepMC.cpp \66 modules/Delphes.h \67 classes/DelphesClasses.h \68 classes/DelphesFactory.h \69 classes/DelphesHepMCReader.h \70 external/ExRootAnalysis/ExRootTreeWriter.h \71 external/ExRootAnalysis/ExRootTreeBranch.h \72 external/ExRootAnalysis/ExRootProgressBar.h73 DelphesSTDHEP$(ExeSuf): \74 tmp/readers/DelphesSTDHEP.$(ObjSuf)75 76 tmp/readers/DelphesSTDHEP.$(ObjSuf): \77 readers/DelphesSTDHEP.cpp \78 modules/Delphes.h \79 classes/DelphesClasses.h \80 classes/DelphesFactory.h \81 classes/DelphesSTDHEPReader.h \82 external/ExRootAnalysis/ExRootTreeWriter.h \83 external/ExRootAnalysis/ExRootTreeBranch.h \84 external/ExRootAnalysis/ExRootProgressBar.h85 68 lhco2root$(ExeSuf): \ 86 69 tmp/converters/lhco2root.$(ObjSuf) … … 159 142 external/ExRootAnalysis/ExRootResult.h \ 160 143 external/ExRootAnalysis/ExRootUtilities.h 161 EXECUTABLE = \ 162 DelphesLHEF$(ExeSuf) \ 163 DelphesHepMC$(ExeSuf) \ 164 DelphesSTDHEP$(ExeSuf) \ 144 EXECUTABLE += \ 165 145 lhco2root$(ExeSuf) \ 166 146 root2pileup$(ExeSuf) \ … … 171 151 Example1$(ExeSuf) 172 152 173 EXECUTABLE_OBJ = \ 174 tmp/readers/DelphesLHEF.$(ObjSuf) \ 175 tmp/readers/DelphesHepMC.$(ObjSuf) \ 176 tmp/readers/DelphesSTDHEP.$(ObjSuf) \ 153 EXECUTABLE_OBJ += \ 177 154 tmp/converters/lhco2root.$(ObjSuf) \ 178 155 tmp/converters/root2pileup.$(ObjSuf) \ … … 182 159 tmp/converters/pileup2root.$(ObjSuf) \ 183 160 tmp/examples/Example1.$(ObjSuf) 161 162 DelphesHepMC$(ExeSuf): \ 163 tmp/readers/DelphesHepMC.$(ObjSuf) 164 165 tmp/readers/DelphesHepMC.$(ObjSuf): \ 166 readers/DelphesHepMC.cpp \ 167 modules/Delphes.h \ 168 classes/DelphesClasses.h \ 169 classes/DelphesFactory.h \ 170 classes/DelphesHepMCReader.h \ 171 external/ExRootAnalysis/ExRootTreeWriter.h \ 172 external/ExRootAnalysis/ExRootTreeBranch.h \ 173 external/ExRootAnalysis/ExRootProgressBar.h 174 DelphesLHEF$(ExeSuf): \ 175 tmp/readers/DelphesLHEF.$(ObjSuf) 176 177 tmp/readers/DelphesLHEF.$(ObjSuf): \ 178 readers/DelphesLHEF.cpp \ 179 modules/Delphes.h \ 180 classes/DelphesClasses.h \ 181 classes/DelphesFactory.h \ 182 classes/DelphesLHEFReader.h \ 183 external/ExRootAnalysis/ExRootTreeWriter.h \ 184 external/ExRootAnalysis/ExRootTreeBranch.h \ 185 external/ExRootAnalysis/ExRootProgressBar.h 186 DelphesSTDHEP$(ExeSuf): \ 187 tmp/readers/DelphesSTDHEP.$(ObjSuf) 188 189 tmp/readers/DelphesSTDHEP.$(ObjSuf): \ 190 readers/DelphesSTDHEP.cpp \ 191 modules/Delphes.h \ 192 classes/DelphesClasses.h \ 193 classes/DelphesFactory.h \ 194 classes/DelphesSTDHEPReader.h \ 195 external/ExRootAnalysis/ExRootTreeWriter.h \ 196 external/ExRootAnalysis/ExRootTreeBranch.h \ 197 external/ExRootAnalysis/ExRootProgressBar.h 198 EXECUTABLE += \ 199 DelphesHepMC$(ExeSuf) \ 200 DelphesLHEF$(ExeSuf) \ 201 DelphesSTDHEP$(ExeSuf) 202 203 EXECUTABLE_OBJ += \ 204 tmp/readers/DelphesHepMC.$(ObjSuf) \ 205 tmp/readers/DelphesLHEF.$(ObjSuf) \ 206 tmp/readers/DelphesSTDHEP.$(ObjSuf) 207 208 ifeq ($(HAS_CMSSW),true) 209 DelphesCMSFWLite$(ExeSuf): \ 210 tmp/readers/DelphesCMSFWLite.$(ObjSuf) 211 212 tmp/readers/DelphesCMSFWLite.$(ObjSuf): \ 213 readers/DelphesCMSFWLite.cpp \ 214 modules/Delphes.h \ 215 classes/DelphesStream.h \ 216 classes/DelphesClasses.h \ 217 classes/DelphesFactory.h \ 218 external/ExRootAnalysis/ExRootTreeWriter.h \ 219 external/ExRootAnalysis/ExRootTreeBranch.h \ 220 external/ExRootAnalysis/ExRootProgressBar.h 221 EXECUTABLE += \ 222 DelphesCMSFWLite$(ExeSuf) 223 224 EXECUTABLE_OBJ += \ 225 tmp/readers/DelphesCMSFWLite.$(ObjSuf) 226 227 endif 228 229 ifeq ($(HAS_PROMC),true) 230 DelphesProMC$(ExeSuf): \ 231 tmp/readers/DelphesProMC.$(ObjSuf) 232 233 tmp/readers/DelphesProMC.$(ObjSuf): \ 234 readers/DelphesProMC.cpp \ 235 modules/Delphes.h \ 236 classes/DelphesStream.h \ 237 classes/DelphesClasses.h \ 238 classes/DelphesFactory.h \ 239 external/ExRootAnalysis/ExRootTreeWriter.h \ 240 external/ExRootAnalysis/ExRootTreeBranch.h \ 241 external/ExRootAnalysis/ExRootProgressBar.h \ 242 external/ProMC/ProMCBook.h 243 EXECUTABLE += \ 244 DelphesProMC$(ExeSuf) 245 246 EXECUTABLE_OBJ += \ 247 tmp/readers/DelphesProMC.$(ObjSuf) 248 249 tmp/external/ProMC/ProMCBook.$(ObjSuf): \ 250 external/ProMC/ProMCBook.$(SrcSuf) 251 tmp/external/ProMC/ProMC.pb.$(ObjSuf): \ 252 external/ProMC/ProMC.pb.$(SrcSuf) 253 tmp/external/ProMC/ProMCStat.pb.$(ObjSuf): \ 254 external/ProMC/ProMCStat.pb.$(SrcSuf) 255 tmp/external/ProMC/ProMCHeader.pb.$(ObjSuf): \ 256 external/ProMC/ProMCHeader.pb.$(SrcSuf) 257 tmp/external/ProMC/ProMCDescription.pb.$(ObjSuf): \ 258 external/ProMC/ProMCDescription.pb.$(SrcSuf) 259 DELPHES_OBJ += \ 260 tmp/external/ProMC/ProMCBook.$(ObjSuf) \ 261 tmp/external/ProMC/ProMC.pb.$(ObjSuf) \ 262 tmp/external/ProMC/ProMCStat.pb.$(ObjSuf) \ 263 tmp/external/ProMC/ProMCHeader.pb.$(ObjSuf) \ 264 tmp/external/ProMC/ProMCDescription.pb.$(ObjSuf) 265 266 ifeq ($(HAS_PYTHIA8),true) 267 DELPHES_OBJ += \ 268 269 endif 270 271 endif 272 273 ifeq ($(HAS_PYTHIA8),true) 274 DelphesPythia8$(ExeSuf): \ 275 tmp/readers/DelphesPythia8.$(ObjSuf) 276 277 tmp/readers/DelphesPythia8.$(ObjSuf): \ 278 readers/DelphesPythia8.cpp \ 279 modules/Delphes.h \ 280 classes/DelphesClasses.h \ 281 classes/DelphesFactory.h \ 282 external/ExRootAnalysis/ExRootTreeWriter.h \ 283 external/ExRootAnalysis/ExRootTreeBranch.h \ 284 external/ExRootAnalysis/ExRootProgressBar.h 285 EXECUTABLE += \ 286 DelphesPythia8$(ExeSuf) 287 288 EXECUTABLE_OBJ += \ 289 tmp/readers/DelphesPythia8.$(ObjSuf) 290 291 endif 184 292 185 293 tmp/classes/ClassesDict.$(SrcSuf): \ … … 795 903 external/fastjet/ClusterSequence.hh \ 796 904 external/fastjet/NNH.hh 797 DELPHES_OBJ = \905 DELPHES_OBJ += \ 798 906 tmp/classes/DelphesHepMCReader.$(ObjSuf) \ 799 907 tmp/classes/DelphesLHEFReader.$(ObjSuf) \ … … 923 1031 display/DelphesCaloData.$(SrcSuf) \ 924 1032 display/DelphesCaloData.h 925 DISPLAY_OBJ = \1033 DISPLAY_OBJ += \ 926 1034 tmp/display/DelphesDisplay.$(ObjSuf) \ 927 1035 tmp/display/DelphesCaloData.$(ObjSuf) -
trunk/doc/genMakefile.tcl
r1171 r1176 36 36 foreach file $list {puts -nonewline $suffix$file} 37 37 if {$command != {}} { 38 puts ""38 puts {} 39 39 puts $command 40 40 } 41 puts ""41 puts {} 42 42 } elseif {$force} { 43 43 puts -nonewline $firstLine 44 44 if {$command != {}} { 45 puts ""45 puts {} 46 46 puts $command 47 47 } 48 puts ""48 puts {} 49 49 } 50 50 … … 73 73 puts -nonewline "${dictVar} = $suffix" 74 74 puts [join $dictSrcFiles $suffix] 75 puts ""75 puts {} 76 76 77 77 puts -nonewline "${dictVar}_OBJ = $suffix" 78 78 puts [join $dictObjFiles $suffix] 79 puts ""79 puts {} 80 80 81 81 } … … 103 103 } 104 104 105 puts -nonewline "${srcPrefix}_OBJ = $suffix"105 puts -nonewline "${srcPrefix}_OBJ += $suffix" 106 106 puts [join $srcObjFiles $suffix] 107 puts ""107 puts {} 108 108 109 109 puts {ifeq ($(HAS_PYTHIA8),true)} … … 111 111 puts [join $srcObjFilesPythia8 $suffix] 112 112 puts {endif} 113 puts ""113 puts {} 114 114 } 115 115 … … 135 135 puts -nonewline "TCL_OBJ = $suffix" 136 136 puts [join $srcObjFiles $suffix] 137 puts ""138 } 139 140 proc executableDeps { } {137 puts {} 138 } 139 140 proc executableDeps {args} { 141 141 142 142 global prefix suffix objSuf exeSuf 143 143 144 set executable [ glob -nocomplain {readers/*.cpp} {converters/*.cpp} {examples/*.cpp}]144 set executable [eval glob -nocomplain $args] 145 145 146 146 set exeFiles {} 147 147 148 148 foreach fileName $executable { 149 if {$fileName == "examples/Delphes CMSFWLite.cpp" || $fileName == "examples/DelphesProMC.cpp"} continue149 if {$fileName == "examples/DelphesProMC.cpp"} continue 150 150 151 151 regsub {\.cpp} $fileName {} exeObjName … … 157 157 158 158 puts "$exeName$exeSuf:$suffix$exeObjName$objSuf" 159 puts ""159 puts {} 160 160 161 161 dependencies $fileName "$exeObjName$objSuf:$suffix$fileName" … … 163 163 164 164 if [info exists exeFiles] { 165 puts -nonewline "EXECUTABLE = $suffix"165 puts -nonewline "EXECUTABLE += $suffix" 166 166 puts [join $exeFiles $suffix] 167 puts ""167 puts {} 168 168 } 169 169 if [info exists exeObjFiles] { 170 puts -nonewline "EXECUTABLE_OBJ = $suffix"170 puts -nonewline "EXECUTABLE_OBJ += $suffix" 171 171 puts [join $exeObjFiles $suffix] 172 puts ""172 puts {} 173 173 } 174 174 } … … 203 203 DISPLAY_LIBS = $(shell $(RC) --evelibs) $(SYSLIBS) 204 204 205 ifneq ($(CMSSW_FWLITE_INCLUDE_PATH),) 206 HAS_CMSSW = true 207 CXXFLAGS += $(subst :, -I,$(CMSSW_FWLITE_INCLUDE_PATH)) 208 DELPHES_LIBS += $(subst include,lib,$(subst :, -L,$(CMSSW_FWLITE_INCLUDE_PATH)) 209 ifneq ($(CMSSW_RELEASE_BASE),) 210 CXXFLAGS += -I$(CMSSW_RELEASE_BASE)/src 211 endif 212 ifneq ($(LD_LIBRARY_PATH),) 213 DELPHES_LIBS += $(subst include,lib,$(subst :, -L,$(LD_LIBRARY_PATH)) 214 endif 215 DELPHES_LIBS += -lFWCoreFWLite -lDataFormatsFWLite -lDataFormatsPatCandidates -lDataFormatsLuminosity -lCommonToolsUtils 216 endif 217 218 ifneq ($(PROMC),) 219 HAS_PROMC = true 220 CXXFLAGS += -I$(PROMC)/include 221 DELPHES_LIBS += -L$(PROMC)/lib -lprotoc -lprotobuf -lprotobuf-lite -lcbook -lz 222 endif 223 205 224 ifneq ($(PYTHIA8),) 206 225 HAS_PYTHIA8 = true … … 231 250 } 232 251 233 executableDeps 252 executableDeps {converters/*.cpp} {examples/*.cpp} 253 254 executableDeps {readers/DelphesHepMC.cpp} {readers/DelphesLHEF.cpp} {readers/DelphesSTDHEP.cpp} 255 256 puts {ifeq ($(HAS_CMSSW),true)} 257 executableDeps {readers/DelphesCMSFWLite.cpp} 258 puts {endif} 259 puts {} 260 261 puts {ifeq ($(HAS_PROMC),true)} 262 executableDeps {readers/DelphesProMC.cpp} 263 sourceDeps {DELPHES} {external/ProMC/*.cc} 264 puts {endif} 265 puts {} 266 267 puts {ifeq ($(HAS_PYTHIA8),true)} 268 executableDeps {readers/DelphesPythia8.cpp} 269 puts {endif} 270 puts {} 234 271 235 272 dictDeps {DELPHES_DICT} {classes/*LinkDef.h} {modules/*LinkDef.h} {external/ExRootAnalysis/*LinkDef.h}
Note:
See TracChangeset
for help on using the changeset viewer.