Getting started

In this document, we show how to write simple application using Tudas library in each of three supported programming languages. If you prefer to test ready to use example, you can also run prepared by us client-side applications. We discuss it later in this section.

Creating example application

In our example, we'll create client-side application that will save roman pot offsets data into the database. Then we'll try to load this back and finally, we'll print it to ensure if everything is correct.

Running ready to use examples

We prepared few examples of using our libraries, one per each functionalities set. Available examples are:

  • Alignment calculations
  • Optics generation (elastic and inelastic)
  • Luminosity calculations
  • General measurements management
  • Saving run information
In the tutorial we use luminosity calculations example. Steps to run other examples are similar. We assume that you have installed Tudas library and you are in release directory.

Running java example

  1. Open your terminal and navigate to java directory:
     cd java
  2. Compile all examples using ant builder:
     ant
  3. Run example using our bash script:
     bash run ExampleLuminosityClient

Running python example

  1. Open your terminal and navigate to python directory:
     cd python
  2. Export all needed environment variables:
     . configuration
  3. Simply run example python script:
     python example_luminosity_client.py

Running c++ example

  1. Open your terminal and navigate to c++ directory:
     cd c++
  2. Export all needed environment variables:
     . configuration
  3. Compile examples using make:
     make all
  4. Run the example:
     ./ExampleLuminosityClient

Running CMSSW example

If you installed CMSSW version with Tudas module, you can basically run example configuration, which uses connection to database:

 cmsRun TotemUnifiedDatabaseAccessService/RPAlignmentESSource/test/test_cfg.py
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r9 - 2012-09-11 - unknown
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    TOTEM All webs login

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