Extracting information from the reconstruction databases

Information used by the reconstruction is stored in four databases. DDDB is the detector description database, which is "static". Changes are only supported with the use of tags. LHCBCOND and SIMCOND are the Condtions databases used for real and simulated data. They support tags as well as intervals of validity (IOV), so the conditions can change in time. ONLINE is the conditions database where data from hardware sensors are stored. It supports IOV but no tags.

Information from these databases can be extracted by either looking at the xml files using the CondDBBrowser or by using the Detector Element classes (C++) used by the reconstruction. The detector elements can be easily accessed using python. Each major RICH component has an associated detector element which can provide infomation about itself. The information can be accessed either using function calls, or by setting the output to debug in which case the detector element prints out information when it is initialised. The detector elements are stored in xml in a directory tree like structure, and in order to access them a location must be provided.

The information a detector element can provide can be found by eithet inspecting the python class (using the dir(object) function) or by consulting the doxygen documentation. A good place to start is the doxygen documenation for Brunel. Available classes are:

  • DeRichSystem
  • DeRich1
  • DeRich2
  • DeRichHPDPanel
  • DeRichHPD
  • DeRich(Sph)/(Sec)Mirror
  • DeRichGasRadiator
  • DeRichAerogelRadiator
and various base classes.

There are two example python scripts attached. To use them save them on lxplus (or plus at the pit) and rename them removing the .txt (the twiki added this automaticaly for security reasons). Type:

# SetupProject LHCb
# python -i fileName.py
Have a look in the files, there are useful comments. Even if you don't know python they are easy to understand and edit. To exit from python type Ctrl-D

-- AntonisPapanestis - 11-Mar-2010

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt HPD_DBInfo.py.txt r2 r1 manage 2.8 K 2010-04-20 - 15:41 AntonisPapanestis Python script to extract HPD alignment and QE from LHCBCOND
Texttxt RichInfo.py.txt r1 manage 2.0 K 2010-03-11 - 18:18 AntonisPapanestis Mirror and HPD location info
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2015-08-12 - AntonisPapanestis
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb 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