User Tools

Site Tools


davinci:dbtags

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
davinci:dbtags [2010/01/05 11:52] decianmdavinci:dbtags [2012/04/26 14:48] (current) – [Find the correct tags for your data] nchiap
Line 10: Line 10:
 To look up the tags log in to lxplus (you need a Grid Certificate to do this): To look up the tags log in to lxplus (you need a Grid Certificate to do this):
 <code> <code>
-SetupProject Dirac+SetupProject LHCbDirac
 dirac-bookkeeping-production-informations <datasetNumber> dirac-bookkeeping-production-informations <datasetNumber>
 </code> </code>
Line 50: Line 50:
 Under the different steps you find the DDDb tags and the ConDDb tags, i.e. 'DDDb: MC09-20090602', 'ConDDb: sim-20090402-vo-md100' for the example file. Under the different steps you find the DDDb tags and the ConDDb tags, i.e. 'DDDb: MC09-20090602', 'ConDDb: sim-20090402-vo-md100' for the example file.
  
 +
 +=== What if the tag returned is None? ===
 +It can happen, that the info reported by ''dirac-bookkeeping-production-informations'' 
 +lists ''None'' as database tags:
 +<code>
 +Production Info: 
 +    Configuration Name: MC
 +    Configuration Version: MC11a
 +    Event type: 11144103
 +-----------------------
 + StepName: Merge12 for MC11 
 +    ApplicationName    : LHCb
 +    ApplicationVersion : v33r1
 +    OptionFiles        : $APPCONFIGOPTS/Merging/CopyDST.py
 +    DDB                : None
 +    CONDDB             : None
 +    ExtraPackages      : AppConfig.v3r118
 +-----------------------
 +</code>
 +
 +In this case the production information got lost while merging. 
 +You can have a look at the database tags used for the merge job and hope they where correct
 +<code>
 +SetupGauss
 +cat $GAUSSROOT/options/Gauss-MC11a.py
 +</code>
 ===== Implement the tags in your options file ===== ===== Implement the tags in your options file =====
 When using real data, you need a DDDB tag (DDDB) and a CondDB (LHCBCOND) tag.  When using real data, you need a DDDB tag (DDDB) and a CondDB (LHCBCOND) tag. 
  
 Insert the following lines to your options file: Insert the following lines to your options file:
-<code> 
-from Configurables import CondDB 
-CondDB(UseOracle = True) 
-</code> 
 <code> <code>
 DaVinci().CondDBtag = "head-20091211" DaVinci().CondDBtag = "head-20091211"
Line 67: Line 89:
 DaVinci().DDDBtag = "MC09-20090602" DaVinci().DDDBtag = "MC09-20090602"
 </code> </code>
-Note: There is nothing like "DaVinci().SimCond", the corresponding information has to be written in the "CondDBtag".+  *Note: There is nothing like "DaVinci().SimCond", the corresponding information has to be written in the "CondDBtag". 
 +  *It may sometimes be necessary to access the OracleDB. This can be achieved the following way: 
 +<code> 
 +from Configurables import CondDB 
 +CondDB(UseOracle = True) 
 +</code> 
 + 
 +===== Using dictionaries ===== 
 +You can find a file including dictionaries of all yet known (and at least often used) tags under: "/afs/cern.ch/user/e/elsasser/public/dbtags/tagdict.py" 
 +which can be imported to be used in a python script. 
 +The base file is located under "/afs/cern.ch/user/e/elsasser/public/dbtags/prodFileList.txt" 
 ===== Check if the correct tags were used in your job ===== ===== Check if the correct tags were used in your job =====
 Look at the stdout file of your job: Look at the stdout file of your job:
Line 79: Line 112:
 ===== Where to find information about global tags ===== ===== Where to find information about global tags =====
 Follow this link: http://lhcb-release-area.web.cern.ch/LHCb-release-area/DOC/dbase/conddb/release_notes.xml Follow this link: http://lhcb-release-area.web.cern.ch/LHCb-release-area/DOC/dbase/conddb/release_notes.xml
 +
 +===== More =====
 +[[https://twiki.cern.ch/twiki/bin/view/LHCb/RecommendedTags#Where_do_I_find_information_abou | "Recommended Tags" Page in TWiki]]
davinci/dbtags.1262688735.txt.gz · Last modified: 2010/01/05 11:52 by decianm