Fork me on GitHub

Changes between Version 54 and Version 55 of WorkBook/LibraryInterface


Ignore:
Timestamp:
Dec 16, 2014, 11:59:52 PM (10 years ago)
Author:
Pavel Demin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WorkBook/LibraryInterface

    v54 v55  
    11== Library Interface ==
    22
    3 Here is an explanation of how Delphes' library can be called from a program.
     3Delphes can be used as a library and be included in a third party application.
     4To do so, simply download and compile Delphes as explained in the [wiki:WorkBook/QuickTour Quick start guide].
    45
    5 == Installation ==
     6This creates among other things the {{{libDelphes.so}}} library that can be dynamically linked to any C++ binary.
     7Header files are located in the modules and classes subdirectories:
    68
    7 Commands to download and build the library:
    8 {{{
    9 setup ROOT environment variables
     9- {{{modules/Delphes.h}}}
     10- {{{classes/DelphesClasses.h}}}
     11- {{{classes/DelphesFactory.h}}}
    1012
    11 wget http://cp3.irmp.ucl.ac.be/downloads/Delphes-3.1.2.tar.gz
    12 tar -zxf Delphes-3.1.2.tar.gz
    13 
    14 cd Delphes-3.1.2
    15 make -j 4
    16 
    17 # library
    18 ls libDelphes.so
    19 
    20 # headers
    21 ls modules/Delphes.h
    22 ls classes/DelphesClasses.h
    23 ls classes/DelphesFactory.h
    24 
    25 # config file
    26 ls examples/delphes_card_CMS.tcl
    27 }}}
    28 
    29 == Complete example ==
    30 
    31 A fully functional application using the Delphes library can be found in
    32 {{{
    33 readers/DelphesSTDHEP.cpp
    34 }}}
    3513
    3614== Simplified example ==
    3715
    38 {{{ReadEvent}}}, {{{ReadParticle}}}, {{{ConvertInput}}} and {{{ConvertOutput}}} functions should be implemented by the library's user.
     16The code below shows the basic ingredients to build a standalone application using Delphes. In that template, the {{{ReadEvent}}}, {{{ReadParticle}}}, {{{ConvertInput}}} and {{{ConvertOutput}}} functions should be implemented by the user.
    3917
    4018{{{
     
    178156}
    179157}}}
     158
     159== Complete example ==
     160
     161A fully functional application using the Delphes library can be found in
     162{{{
     163readers/DelphesSTDHEP.cpp
     164}}}