1 PESAsim examples

The examples directory contains some example projects, together with helper files, and extensions and so on, not strictly part of the PESAsim main package, but useful as examples of how a user might go about tailoring the project for their own ends.

The directory contains a makefile with multiple targets, each of which has a different functionality and is explained below.

Basic evaluation (file: basic-main.cxx make target: basic)

This example merely runs the PESA simulation over the events in one sample.

Varing a single cut (file: cut-main.cxx make target: cutter)

This systematically varies a cut over a range of values and runs the trigger for each value for a single sample of events.

Basic automated fit (file: fit-main.cxx make target: fitter)

This performs a basic two parameter fit using two samples,

  • a signal sample
  • a background sample

It defines a merit function based on the efficiencies for the two samples, and then fits the two parameters to minimise the merit function. For this example, the efficiency for the background sample is minimised, which trying to keep the efficiency for the signal sample constant.

Building the examples

To build the basic (e25i) evaluation version go to to the examples directory and type

  • make basic

at the command prompt. This builds the executable

  • basic

in the exe directory (in the sub directory corresponding to your machine architecture.

To build the cut example it is

  • make cutter

To build the fit example it is

  • make fitter

Whether these versions actually work, depends on whether your trigger actually contains the signatures that you are want to study. At the moment, this has to be done in the code for each trigger level, but plans are afoot to have this specified in a config file.

Runnning the examples

To run the examples, the executables need to be able to read the config files for each object.

These reside in the

  • config directory, so either copy these to a run directory, or just run things in you config directory.

-- MarkSutton - 28 Jan 2006

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2006-01-30 - unknown
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback