Fork me on GitHub

Changeset 1167 in svn for trunk


Ignore:
Timestamp:
Jul 4, 2013, 1:04:05 AM (11 years ago)
Author:
Pavel Demin
Message:

add PileUpMergerPythia8

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r1144 r1167  
    1919DELPHES_LIBS = $(shell $(RC) --libs) -lEG $(SYSLIBS)
    2020DISPLAY_LIBS = $(shell $(RC) --evelibs) $(SYSLIBS)
     21
     22ifneq ($(PYTHIA8),)
     23CXXFLAGS += -DHAS_PYTHIA8 -I$(PYTHIA8)/include
     24DELPHES_LIBS += -L$(PYTHIA8)/lib/archive -lpythia8 -llhapdfdummy
     25endif
    2126
    2227###
     
    201206        modules/Cloner.h \
    202207        modules/Weighter.h \
    203         modules/ExampleModule.h
     208        modules/ExampleModule.h \
     209        modules/PileUpMergerPythia8.h
    204210tmp/external/ExRootAnalysis/ExRootAnalysisDict.$(SrcSuf): \
    205211        external/ExRootAnalysis/ExRootAnalysisLinkDef.h \
     
    356362        external/fastjet/plugins/CDFCones/fastjet/CDFMidPointPlugin.hh \
    357363        external/fastjet/plugins/CDFCones/fastjet/CDFJetCluPlugin.hh
     364tmp/modules/PileUpMergerPythia8.$(ObjSuf): \
     365        modules/PileUpMergerPythia8.$(SrcSuf) \
     366        modules/PileUpMergerPythia8.h \
     367        classes/DelphesClasses.h \
     368        classes/DelphesFactory.h \
     369        classes/DelphesFormula.h \
     370        classes/DelphesPileUpReader.h \
     371        external/ExRootAnalysis/ExRootResult.h \
     372        external/ExRootAnalysis/ExRootFilter.h \
     373        external/ExRootAnalysis/ExRootClassifier.h
    358374tmp/modules/StatusPidFilter.$(ObjSuf): \
    359375        modules/StatusPidFilter.$(SrcSuf) \
     
    889905        tmp/external/fastjet/plugins/EECambridge/EECambridgePlugin.$(ObjSuf)
    890906
     907ifneq ($(PYTHIA8),)
     908DELPHES_OBJ +=  \
     909        tmp/modules/PileUpMergerPythia8.$(ObjSuf)
     910endif
    891911tmp/display/DelphesDisplay.$(ObjSuf): \
    892912        display/DelphesDisplay.$(SrcSuf) \
     
    899919        tmp/display/DelphesCaloData.$(ObjSuf)
    900920
     921ifneq ($(PYTHIA8),)
     922DISPLAY_OBJ +=  \
     923       
     924endif
    901925tmp/external/tcl/tclObj.$(ObjSuf): \
    902926        external/tcl/tclObj.c
     
    10221046        @touch $@
    10231047
    1024 modules/ConstituentFilter.h: \
    1025         classes/DelphesModule.h
    1026         @touch $@
    1027 
    10281048external/fastjet/JetDefinition.hh: \
    10291049        external/fastjet/internal/numconsts.hh \
    10301050        external/fastjet/PseudoJet.hh
     1051        @touch $@
     1052
     1053modules/ConstituentFilter.h: \
     1054        classes/DelphesModule.h
    10311055        @touch $@
    10321056
     
    11581182
    11591183modules/UniqueObjectFinder.h: \
     1184        classes/DelphesModule.h
     1185        @touch $@
     1186
     1187modules/PileUpMergerPythia8.h: \
    11601188        classes/DelphesModule.h
    11611189        @touch $@
  • trunk/doc/genMakefile.tcl

    r1140 r1167  
    8888
    8989  set srcObjFiles {}
     90  set srcObjFilesPythia8 {}
    9091
    9192  foreach fileName $source {
    9293    regsub {\.cc} $fileName {} srcName
    9394    set srcObjName $prefix$srcName
    94 
    95     lappend srcObjFiles $srcObjName$objSuf
     95   
     96    if {$fileName == "modules/PileUpMergerPythia8.cc"} {
     97      lappend srcObjFilesPythia8 $srcObjName$objSuf
     98    } else {
     99      lappend srcObjFiles $srcObjName$objSuf
     100    }
    96101
    97102    dependencies $fileName "$srcObjName$objSuf:$suffix$srcName$srcSuf"
     
    101106  puts [join $srcObjFiles $suffix]
    102107  puts ""
     108 
     109  puts {ifneq ($(PYTHIA8),)}
     110  puts -nonewline "${srcPrefix}_OBJ += $suffix"
     111  puts [join $srcObjFilesPythia8 $suffix]
     112  puts {endif}
    103113}
    104114
     
    193203DISPLAY_LIBS = $(shell $(RC) --evelibs) $(SYSLIBS)
    194204
     205ifneq ($(PYTHIA8),)
     206CXXFLAGS += -DHAS_PYTHIA8 -I$(PYTHIA8)/include
     207DELPHES_LIBS += -L$(PYTHIA8)/lib/archive -lpythia8 -llhapdfdummy
     208endif
     209
    195210###
    196211
  • trunk/modules/ModulesLinkDef.h

    r1141 r1167  
    3737#include "modules/ExampleModule.h"
    3838
     39#ifdef HAS_PYTHIA8
     40#include "modules/PileUpMergerPythia8.h"
     41#endif
     42
    3943#ifdef __CINT__
    4044
     
    6872#pragma link C++ class ExampleModule+;
    6973
     74#ifdef HAS_PYTHIA8
     75#pragma link C++ class PileUpMergerPythia8+;
    7076#endif
     77
     78#endif
Note: See TracChangeset for help on using the changeset viewer.