If you are using TUDAS interface in your CMSSW module, you should provide alternative way of loading data (i.e. from files). This should be done by ParameterSet mechanism, that allows user to set in python configuration file a data source: database or files.

You can find the extended version of this example, known as RPAlignmentESSource in our latest release package (or just check it here). Assuming, that you compiled TotemUnifiedDatabaseAccessSercive module in CMSSW, you need to do following steps:

  1. Firstly, you need to add use and flags declaration to your BuildFile.xml:
    <use   name="TotemUnifiedDatabaseAccessService/Tudas"/>
    <flags CXXFLAGS="-std=c++0x" />
  2. Then, you need to include all necessary headers:
    #include "TotemUnifiedDatabaseAccessService/Tudas/interface/TudasException.h"
    #include "TotemUnifiedDatabaseAccessService/Tudas/interface/DatabaseAccessProvider.h"
  3. In order to simplify Tudas library use, declare following namespaces:
    using namespace std;
    using namespace tudas;
    using namespace tudas::exceptions;
  4. To use TUDAS interfaces you should follow steps: 4-10 from Creating c++ application
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2013-01-19 - 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-2022 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