Fork me on GitHub

Changeset 283537c in git for examples


Ignore:
Timestamp:
Dec 22, 2014, 3:59:08 PM (10 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
7b50bf8, 7b6aafa
Parents:
6a8f6b8
Message:

update build instructions for examples/ExternalFastJet

Location:
examples/ExternalFastJet
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • examples/ExternalFastJet/ExternalFastJetBasic.cpp

    r6a8f6b8 r283537c  
    2222
    2323
    24 This simple example shows how to use Delphes with an external fastjet installation.
    25 Events are specified via the multidimentionnal array "EVENTS" (for an example reading
    26 an hepmc file see ExternalFastJetHepMC.cpp).
    27 
    28 In order to run this example you first, you need to set the paths to your Delphes, FastJet
     24This simple example shows how to use Delphes with an external FastJet installation.
     25Events are specified via the multidimensional array "EVENTS" (for an example reading
     26an HepMC file see ExternalFastJetHepMC.cpp).
     27
     28In order to run this example you first need to set the paths to your Delphes, FastJet
    2929and ROOT installations (DELPHES_DIR, FASTJET_DIR and ROOT_DIR):
    3030
     
    3535Then run the following commands to build the executable:
    3636
    37 DELPHES_LIB="-Wl,-rpath $DELPHES_DIR -L$DELPHES_DIR -lDelphesNoFastJet"
     37DELPHES_LIB="-Wl,-rpath,$DELPHES_DIR -L$DELPHES_DIR -lDelphesNoFastJet"
    3838
    3939FASTJET_INC=`$FASTJET_DIR/bin/fastjet-config --cxxflags`
     
    4444
    4545CXXFLAGS="$FASTJET_INC -I$ROOT_INC -I$DELPHES_DIR -I$DELPHES_DIR/external"
    46 LDFLAGS="$FASTJET_LIB $ROOT_LIB $DELPHES_LIB"
    47 
    48 g++ $CXXFLAGS $LDFLAGS examples/ExternalFastJetBasic.cpp -o examples/ExternalFastJetBasic
     46LDFLAGS="$FASTJET_LIB $ROOT_LIB -lEG $DELPHES_LIB"
     47
     48g++ $CXXFLAGS examples/ExternalFastJet/ExternalFastJetBasic.cpp $LDFLAGS -o ExternalFastJetBasic
    4949
    5050Then run:
    5151
    52 ./examples/ExternalFastJetBasic cards/delphes_card_CMS_NoFastJet.tcl
     52./ExternalFastJetBasic cards/delphes_card_CMS_NoFastJet.tcl
    5353
    5454
  • examples/ExternalFastJet/ExternalFastJetHepMC.cpp

    r6a8f6b8 r283537c  
    2222
    2323
    24 This simple example shows how to use Delphes with an external fastjet installation.
    25 Events in hepmc format are read via the DelphesHepMC reader.
    26 
    27 In order to run this example you first, you need to set the paths to your Delphes, FastJet
     24This simple example shows how to use Delphes with an external FastJet installation.
     25Events in HepMC format are read via the DelphesHepMC reader.
     26
     27In order to run this example you first need to set the paths to your Delphes, FastJet
    2828and ROOT installations (DELPHES_DIR, FASTJET_DIR and ROOT_DIR):
    2929
     
    3434Then run the following commands to build the executable:
    3535
    36 DELPHES_LIB="-Wl,-rpath $DELPHES_DIR -L$DELPHES_DIR -lDelphesNoFastJet"
     36DELPHES_LIB="-Wl,-rpath,$DELPHES_DIR -L$DELPHES_DIR -lDelphesNoFastJet"
    3737
    3838FASTJET_INC=`$FASTJET_DIR/bin/fastjet-config --cxxflags`
     
    4343
    4444CXXFLAGS="$FASTJET_INC -I$ROOT_INC -I$DELPHES_DIR -I$DELPHES_DIR/external"
    45 LDFLAGS="$FASTJET_LIB $ROOT_LIB $DELPHES_LIB"
    46 
    47 g++ $CXXFLAGS $LDFLAGS examples/ExternalFastJetHepMC.cpp -o examples/ExternalFastJetHepMC
    48 
    49 Then run (you need an event file in hepmc format):
    50 
    51 ./examples/ExternalFastJetHepMC cards/delphes_card_CMS_NoFastJet.tcl file.hepmc
     45LDFLAGS="$FASTJET_LIB $ROOT_LIB -lEG $DELPHES_LIB"
     46
     47g++ $CXXFLAGS examples/ExternalFastJet/ExternalFastJetHepMC.cpp $LDFLAGS -o ExternalFastJetHepMC
     48
     49Then run (you need an event file in HepMC format):
     50
     51./ExternalFastJetHepMC cards/delphes_card_CMS_NoFastJet.tcl file.hepmc
    5252
    5353
Note: See TracChangeset for help on using the changeset viewer.