Fork me on GitHub

Changes between Version 1 and Version 2 of WorkBook/ConfigFile


Ignore:
Timestamp:
Nov 19, 2012, 11:43:39 PM (12 years ago)
Author:
Pavel Demin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WorkBook/ConfigFile

    v1 v2  
    1 == Delphes' Configuration Files ==
     1== Delphes' Configuration File ==
    22
    3 The Delphes' configuration files are based on [http://www.tcl.tk Tcl scripting language]. Delphes uses [http://www.tcl.tk/man/tcl8.0/TclCmd/contents.htm Tcl 8.0.5] with 2 additional commands: {{{module}}} and {{{add}}}.
     3The Delphes' configuration file is based on [http://www.tcl.tk Tcl scripting language]. Delphes uses [http://www.tcl.tk/man/tcl8.0/TclCmd/contents.htm Tcl 8.0.5] with 2 additional commands: {{{module}}} and {{{add}}}.
    44
     5Here are the most important commands:
     6
     7'''{{{set ParamName value}}}'''
     8
     9this commands sets the value of {{{ParamName}}} to {{{value}}}
     10
     11'''{{{add ParamName value value value ...}}}'''
     12
     13this command treats the parameter given by {{{ParamName}}} as a list and appends each of the {{{value}}} arguments to that list as a separate element.
     14
     15'''{{{module ModuleClass ModuleName ModuleConfigurationBody}}}'''
     16
     17this command activates a module of class {{{ModuleClass}}} called {{{ModuleName}}} and evaluates module's configuration commands contained in {{{ModuleConfigurationBody}}}:
     18{{{
     19module Efficiency ElectronEfficiency {
     20  set InputArray ElectronEnergySmearing/electrons
     21  set OutputArray electrons
     22
     23  # add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
     24
     25  # default efficiency formula
     26  add EfficiencyFormula {0} {0.0}
     27
     28  # efficiency formula for electrons
     29  add EfficiencyFormula {11} {                                      (pt <= 5.0) * (0.000) + \
     30                                                (abs(eta) <= 1.5) * (pt > 5.0)  * (0.950) + \
     31                              (abs(eta) > 1.5 && abs(eta) <= 2.5) * (pt > 5.0)  * (0.850) + \
     32                              (abs(eta) > 2.5)                                  * (0.000)}
     33}
     34}}}
     35
     36The global parameter called {{{ExecutionPath}}} defines the order of execution of various modules.
     37
     38{{{
     39set ExecutionPath {
     40  ParticlePropagator
     41  TrackEfficiency
     42  TrackMomentumSmearing
     43}
     44}}}