Prepare the scram area

The first step is to prepare the scram area. We'll use CMSSW_2_1_9. So from your lxplus account digit:

scramv1 project CMSSW CMSSW_2_1_9

cd CMSSW_2_1_9/src

eval `scramv1 runtime -csh` (or -sh depending on your shell)

Get the necessary software

Now, we have to get the necessary packages.

cvs co CondFormats/RPCObjects

cvs co CondFormats/DataRecord

cvs co CondCore/RPCPlugins

cvs co CondTools/RPC

Run the code

Let's compile everything

scramv1 b

Now go to test folder in CondTools/RPC

cd CondTools/RPC/test

cmsRun GasReader.cfg for gas reading

cmsRun CondReader.cfg for current reading

In order to read Vmon, Status and Temperature we need to edit the following file

/CondTools/RPC/src/CondReader.cc

The IOV

It's necessary to edit the config file GasReader.cfg and CondReader.cfg to read data corresponding to different iovs. To perform this operation we need to know the iov associated with the date we want to access. There are different ways to get them (see How to get the IOV).

Once we know the IOV we have to use it in the field

untracked uint32 firstRun = ...

in EmptySource module in GasReader.cfg and CondReader.cfg.

How to get the IOV

The are several ways to get the iov. The fastest way to access the IOV list is to use the cmscond_list_iov. The following example shows how to access the list of IOVs from orcon (it's tha same for orcoff). On a cmsusr account:

cmscond_list_iov -c oracle://cms_orcon_prod/CMS_COND_21X_RPC -P /nfshome0/xiezhen/conddb -t RPCObCond

Another very simple way is the following: go to

https://p2k.web.cern.ch/p2k/popconact.php

and login with your own nice account. Then check usertext in a. additional columns, select the period for your data in b. period, add RPCOb in the filter string and click on submit query.

Now you will see the list of all RPC payloads trasferred, the time they was trasferred, the tag name, the destination db and (in the usertext field) ...first payload Since 1223708132 (for example in the case of RPCObCond). Ok the previous number is the iov we need.

The first since is ever referred to current. To get Vmon add +1 (to the first since), to get Status add +2 and to get Temperature add +3 (this is due to to the fact that different payloads with same tag cannot be associated to the same IOV)

For the gas object RPCObGas we have just one vector for IOV, so in the usertext we'll see something like Since 1223803844 (for example).

The PVSS map object

If we want to convert the dpids (of rpc data) to a DetId we have to access the RPCObPVSSmap object. To perform this operation we can use the analyzer IDMapReader in CondTools/RPC. From the test forder of CondTools/RPC:

cmsRun IDMapReader.cfg

-- Davide Pagano - 11 Oct 2008

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r5 - 2008-10-16 - DavidePagano
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox 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