Changeset 00bcbe6 in git
- Timestamp:
- Apr 22, 2013, 10:00:46 PM (12 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- a817a22
- Parents:
- 2013f0a
- Files:
-
- 1 added
- 3 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r2013f0a r00bcbe6 17 17 18 18 CXXFLAGS += $(ROOTCFLAGS) -Wno-write-strings -D_FILE_OFFSET_BITS=64 -DDROP_CGAL -I. -Iexternal -Iexternal/tcl 19 LIBS = $(shell $(RC) --evelibs) $(SYSLIBS) 19 DELPHES_LIBS = $(shell $(RC) --libs) -lEG $(SYSLIBS) 20 DISPLAY_LIBS = $(shell $(RC) --evelibs) $(SYSLIBS) 20 21 21 22 ### 22 23 23 SHARED = libDelphes.$(DllSuf) 24 SHAREDLIB = libDelphes.lib 24 DELPHES = libDelphes.$(DllSuf) 25 DELPHESLIB = libDelphes.lib 26 27 DISPLAY = libDelphesDisplay.$(DllSuf) 28 DISPLAYLIB = libDelphesDisplay.lib 25 29 26 30 VERSION = $(shell cat VERSION) … … 158 162 classes/DelphesModule.h \ 159 163 classes/DelphesFactory.h \ 160 classes/DelphesDisplay.h \161 classes/DelphesCaloData.h \162 164 classes/SortableObject.h \ 163 165 classes/DelphesClasses.h … … 196 198 external/ExRootAnalysis/ExRootConfReader.h \ 197 199 external/ExRootAnalysis/ExRootTask.h 198 D ICT = \200 DELPHES_DICT = \ 199 201 tmp/classes/ClassesDict.$(SrcSuf) \ 200 202 tmp/modules/ModulesDict.$(SrcSuf) \ 201 203 tmp/external/ExRootAnalysis/ExRootAnalysisDict.$(SrcSuf) 202 204 203 D ICT_OBJ = \205 DELPHES_DICT_OBJ = \ 204 206 tmp/classes/ClassesDict.$(ObjSuf) \ 205 207 tmp/modules/ModulesDict.$(ObjSuf) \ 206 208 tmp/external/ExRootAnalysis/ExRootAnalysisDict.$(ObjSuf) 207 209 208 tmp/classes/DelphesDisplay.$(ObjSuf): \ 209 classes/DelphesDisplay.$(SrcSuf) \ 210 classes/DelphesDisplay.h 210 tmp/display/DisplayDict.$(SrcSuf): \ 211 display/DisplayLinkDef.h \ 212 display/DelphesDisplay.h \ 213 display/DelphesCaloData.h 214 DISPLAY_DICT = \ 215 tmp/display/DisplayDict.$(SrcSuf) 216 217 DISPLAY_DICT_OBJ = \ 218 tmp/display/DisplayDict.$(ObjSuf) 219 211 220 tmp/classes/DelphesHepMCReader.$(ObjSuf): \ 212 221 classes/DelphesHepMCReader.$(SrcSuf) \ … … 251 260 external/ExRootAnalysis/ExRootTreeWriter.h \ 252 261 external/ExRootAnalysis/ExRootResult.h 253 tmp/classes/DelphesCaloData.$(ObjSuf): \254 classes/DelphesCaloData.$(SrcSuf) \255 classes/DelphesCaloData.h256 262 tmp/classes/DelphesClasses.$(ObjSuf): \ 257 263 classes/DelphesClasses.$(SrcSuf) \ … … 723 729 external/fastjet/ClusterSequence.hh \ 724 730 external/fastjet/NNH.hh 725 SOURCE_OBJ = \ 726 tmp/classes/DelphesDisplay.$(ObjSuf) \ 731 DELPHES_OBJ = \ 727 732 tmp/classes/DelphesHepMCReader.$(ObjSuf) \ 728 733 tmp/classes/DelphesLHEFReader.$(ObjSuf) \ … … 733 738 tmp/classes/DelphesPileUpWriter.$(ObjSuf) \ 734 739 tmp/classes/DelphesModule.$(ObjSuf) \ 735 tmp/classes/DelphesCaloData.$(ObjSuf) \736 740 tmp/classes/DelphesClasses.$(ObjSuf) \ 737 741 tmp/classes/DelphesPileUpReader.$(ObjSuf) \ … … 839 843 tmp/external/fastjet/plugins/EECambridge/EECambridgePlugin.$(ObjSuf) 840 844 845 tmp/display/DelphesDisplay.$(ObjSuf): \ 846 display/DelphesDisplay.$(SrcSuf) \ 847 display/DelphesDisplay.h 848 tmp/display/DelphesCaloData.$(ObjSuf): \ 849 display/DelphesCaloData.$(SrcSuf) \ 850 display/DelphesCaloData.h 851 DISPLAY_OBJ = \ 852 tmp/display/DelphesDisplay.$(ObjSuf) \ 853 tmp/display/DelphesCaloData.$(ObjSuf) 854 841 855 tmp/external/tcl/tclObj.$(ObjSuf): \ 842 856 external/tcl/tclObj.c … … 1200 1214 ### 1201 1215 1202 all: $(SHARED) $(EXECUTABLE) $(STDHEP_EXECUTABLE) 1203 1204 $(SHARED): $(DICT_OBJ) $(SOURCE_OBJ) $(TCL_OBJ) 1216 all: $(DELPHES) $(EXECUTABLE) 1217 1218 display: $(DISPLAY) 1219 1220 $(DELPHES): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ) 1205 1221 @mkdir -p $(@D) 1206 1222 @echo ">> Building $@" 1207 1223 ifeq ($(ARCH),aix5) 1208 @$(MAKESHARED) $(OutPutOpt) $@ $( LIBS) -p 0 $^1224 @$(MAKESHARED) $(OutPutOpt) $@ $(DELPHES_LIBS) -p 0 $^ 1209 1225 else 1210 1226 ifeq ($(PLATFORM),macosx) 1211 1227 # We need to make both the .dylib and the .so 1212 @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $( LIBS)1228 @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS) 1213 1229 ifneq ($(subst $(MACOSX_MINOR),,1234),1234) 1214 1230 ifeq ($(MACOSX_MINOR),4) … … 1219 1235 ifeq ($(PLATFORM),win32) 1220 1236 @bindexplib $* $^ > $*.def 1221 @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$( SHAREDLIB)1222 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $( LIBS) $(OutPutOpt)$@1237 @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(DELPHESLIB) 1238 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DELPHES_LIBS) $(OutPutOpt)$@ 1223 1239 @$(MT_DLL) 1224 1240 else 1225 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $( LIBS)1241 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS) 1226 1242 @$(MT_DLL) 1227 1243 endif … … 1229 1245 endif 1230 1246 1247 $(DISPLAY): $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) 1248 @mkdir -p $(@D) 1249 @echo ">> Building $@" 1250 ifeq ($(ARCH),aix5) 1251 @$(MAKESHARED) $(OutPutOpt) $@ $(DISPLAY_LIBS) -p 0 $^ 1252 else 1253 ifeq ($(PLATFORM),macosx) 1254 # We need to make both the .dylib and the .so 1255 @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DISPLAY_LIBS) 1256 ifneq ($(subst $(MACOSX_MINOR),,1234),1234) 1257 ifeq ($(MACOSX_MINOR),4) 1258 @ln -sf $@ $(subst .$(DllSuf),.so,$@) 1259 endif 1260 endif 1261 else 1262 ifeq ($(PLATFORM),win32) 1263 @bindexplib $* $^ > $*.def 1264 @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(DISPLAYLIB) 1265 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DISPLAY_LIBS) $(OutPutOpt)$@ 1266 @$(MT_DLL) 1267 else 1268 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DISPLAY_LIBS) 1269 @$(MT_DLL) 1270 endif 1271 endif 1272 endif 1273 1231 1274 clean: 1232 @rm -f $(DICT_OBJ) $(SOURCE_OBJ) $(TCL_OBJ) $(STDHEP_OBJ) core 1275 @rm -f $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) core 1276 @rm -rf tmp 1233 1277 1234 1278 distclean: clean 1235 @rm -f $( SHARED) $(SHAREDLIB) $(EXECUTABLE)1279 @rm -f $(DELPHES) $(DELPHESLIB) $(DISPLAY) $(DISPLAYLIB) $(EXECUTABLE) 1236 1280 1237 1281 dist: … … 1257 1301 @rm $@.arch $@.base 1258 1302 1259 $( SOURCE_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)1303 $(DELPHES_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf) 1260 1304 @mkdir -p $(@D) 1261 1305 @echo ">> Compiling $<" 1262 1306 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 1263 1307 1264 $(DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf) 1308 $(DISPLAY_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf) 1309 @mkdir -p $(@D) 1310 @echo ">> Compiling $<" 1311 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 1312 1313 $(DELPHES_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf) 1314 @mkdir -p $(@D) 1315 @echo ">> Compiling $<" 1316 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 1317 1318 $(DISPLAY_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf) 1265 1319 @mkdir -p $(@D) 1266 1320 @echo ">> Compiling $<" … … 1277 1331 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 1278 1332 1279 $(EXECUTABLE): %$(ExeSuf): $(D ICT_OBJ) $(SOURCE_OBJ) $(TCL_OBJ)1333 $(EXECUTABLE): %$(ExeSuf): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ) 1280 1334 @echo ">> Building $@" 1281 @$(LD) $(LDFLAGS) $^ $( LIBS) $(OutPutOpt)$@1335 @$(LD) $(LDFLAGS) $^ $(DELPHES_LIBS) $(OutPutOpt)$@ 1282 1336 1283 1337 ### -
classes/ClassesLinkDef.h
r2013f0a r00bcbe6 15 15 #include "classes/DelphesFactory.h" 16 16 17 #include "classes/DelphesDisplay.h"18 #include "classes/DelphesCaloData.h"19 20 17 #include "classes/SortableObject.h" 21 18 #include "classes/DelphesClasses.h" … … 29 26 #pragma link C++ class DelphesModule+; 30 27 #pragma link C++ class DelphesFactory+; 31 32 #pragma link C++ class DelphesDisplay+;33 #pragma link C++ class DelphesCaloData+;34 28 35 29 #pragma link C++ class SortableObject+; -
display/DelphesCaloData.cc
r2013f0a r00bcbe6 1 1 2 #include " classes/DelphesCaloData.h"2 #include "display/DelphesCaloData.h" 3 3 4 4 //------------------------------------------------------------------------------ -
display/DelphesDisplay.cc
r2013f0a r00bcbe6 17 17 #include "TEveLegoEventHandler.h" 18 18 19 #include " classes/DelphesDisplay.h"19 #include "display/DelphesDisplay.h" 20 20 21 21 //------------------------------------------------------------------------------ -
doc/genMakefile.tcl
r2013f0a r00bcbe6 188 188 189 189 CXXFLAGS += $(ROOTCFLAGS) -Wno-write-strings -D_FILE_OFFSET_BITS=64 -DDROP_CGAL -I. -Iexternal -Iexternal/tcl 190 LIBS = $(shell $(RC) --evelibs) $(SYSLIBS) 190 DELPHES_LIBS = $(shell $(RC) --libs) -lEG $(SYSLIBS) 191 DISPLAY_LIBS = $(shell $(RC) --evelibs) $(SYSLIBS) 191 192 192 193 ### 193 194 194 SHARED = libDelphes.$(DllSuf) 195 SHAREDLIB = libDelphes.lib 195 DELPHES = libDelphes.$(DllSuf) 196 DELPHESLIB = libDelphes.lib 197 198 DISPLAY = libDelphesDisplay.$(DllSuf) 199 DISPLAYLIB = libDelphesDisplay.lib 196 200 197 201 VERSION = $(shell cat VERSION) … … 205 209 executableDeps 206 210 207 dictDeps {DICT} {classes/*LinkDef.h} {modules/*LinkDef.h} {external/ExRootAnalysis/*LinkDef.h} 208 209 sourceDeps {SOURCE} {classes/*.cc} {modules/*.cc} {external/ExRootAnalysis/*.cc} {external/fastjet/*.cc} {external/fastjet/tools/*.cc} {external/fastjet/plugins/*/*.cc} 211 dictDeps {DELPHES_DICT} {classes/*LinkDef.h} {modules/*LinkDef.h} {external/ExRootAnalysis/*LinkDef.h} 212 213 dictDeps {DISPLAY_DICT} {display/*LinkDef.h} 214 215 sourceDeps {DELPHES} {classes/*.cc} {modules/*.cc} {external/ExRootAnalysis/*.cc} {external/fastjet/*.cc} {external/fastjet/tools/*.cc} {external/fastjet/plugins/*/*.cc} 216 217 sourceDeps {DISPLAY} {display/*.cc} 210 218 211 219 tclDeps … … 217 225 ### 218 226 219 all: $(SHARED) $(EXECUTABLE) $(STDHEP_EXECUTABLE) 220 221 $(SHARED): $(DICT_OBJ) $(SOURCE_OBJ) $(TCL_OBJ) 227 all: $(DELPHES) $(EXECUTABLE) 228 229 display: $(DISPLAY) 230 231 $(DELPHES): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ) 222 232 @mkdir -p $(@D) 223 233 @echo ">> Building $@" 224 234 ifeq ($(ARCH),aix5) 225 @$(MAKESHARED) $(OutPutOpt) $@ $( LIBS) -p 0 $^235 @$(MAKESHARED) $(OutPutOpt) $@ $(DELPHES_LIBS) -p 0 $^ 226 236 else 227 237 ifeq ($(PLATFORM),macosx) 228 238 # We need to make both the .dylib and the .so 229 @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $( LIBS)239 @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS) 230 240 ifneq ($(subst $(MACOSX_MINOR),,1234),1234) 231 241 ifeq ($(MACOSX_MINOR),4) … … 236 246 ifeq ($(PLATFORM),win32) 237 247 @bindexplib $* $^ > $*.def 238 @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$( SHAREDLIB)239 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $( LIBS) $(OutPutOpt)$@248 @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(DELPHESLIB) 249 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DELPHES_LIBS) $(OutPutOpt)$@ 240 250 @$(MT_DLL) 241 251 else 242 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $( LIBS)252 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS) 243 253 @$(MT_DLL) 244 254 endif … … 246 256 endif 247 257 258 $(DISPLAY): $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) 259 @mkdir -p $(@D) 260 @echo ">> Building $@" 261 ifeq ($(ARCH),aix5) 262 @$(MAKESHARED) $(OutPutOpt) $@ $(DISPLAY_LIBS) -p 0 $^ 263 else 264 ifeq ($(PLATFORM),macosx) 265 # We need to make both the .dylib and the .so 266 @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DISPLAY_LIBS) 267 ifneq ($(subst $(MACOSX_MINOR),,1234),1234) 268 ifeq ($(MACOSX_MINOR),4) 269 @ln -sf $@ $(subst .$(DllSuf),.so,$@) 270 endif 271 endif 272 else 273 ifeq ($(PLATFORM),win32) 274 @bindexplib $* $^ > $*.def 275 @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(DISPLAYLIB) 276 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DISPLAY_LIBS) $(OutPutOpt)$@ 277 @$(MT_DLL) 278 else 279 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DISPLAY_LIBS) 280 @$(MT_DLL) 281 endif 282 endif 283 endif 284 248 285 clean: 249 @rm -f $(DICT_OBJ) $(SOURCE_OBJ) $(TCL_OBJ) $(STDHEP_OBJ) core 286 @rm -f $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) core 287 @rm -rf tmp 250 288 251 289 distclean: clean 252 @rm -f $( SHARED) $(SHAREDLIB) $(EXECUTABLE)290 @rm -f $(DELPHES) $(DELPHESLIB) $(DISPLAY) $(DISPLAYLIB) $(EXECUTABLE) 253 291 254 292 dist: … … 274 312 @rm $@.arch $@.base 275 313 276 $(SOURCE_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf) 277 @mkdir -p $(@D) 278 @echo ">> Compiling $<" 279 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 280 281 $(DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf) 314 $(DELPHES_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf) 315 @mkdir -p $(@D) 316 @echo ">> Compiling $<" 317 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 318 319 $(DISPLAY_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf) 320 @mkdir -p $(@D) 321 @echo ">> Compiling $<" 322 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 323 324 $(DELPHES_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf) 325 @mkdir -p $(@D) 326 @echo ">> Compiling $<" 327 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 328 329 $(DISPLAY_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf) 282 330 @mkdir -p $(@D) 283 331 @echo ">> Compiling $<" … … 294 342 @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@ 295 343 296 $(EXECUTABLE): %$(ExeSuf): $(D ICT_OBJ) $(SOURCE_OBJ) $(TCL_OBJ)344 $(EXECUTABLE): %$(ExeSuf): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ) 297 345 @echo ">> Building $@" 298 @$(LD) $(LDFLAGS) $^ $( LIBS) $(OutPutOpt)$@346 @$(LD) $(LDFLAGS) $^ $(DELPHES_LIBS) $(OutPutOpt)$@ 299 347 300 348 ###
Note:
See TracChangeset
for help on using the changeset viewer.