This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| davinci:dbtags [2010/01/05 11:15] – abuechle | davinci: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): | ||
| < | < | ||
| - | SetupProject | + | SetupProject |
| dirac-bookkeeping-production-informations < | dirac-bookkeeping-production-informations < | ||
| </ | </ | ||
| Line 50: | Line 50: | ||
| Under the different steps you find the DDDb tags and the ConDDb tags, i.e. 'DDDb: MC09-20090602', | Under the different steps you find the DDDb tags and the ConDDb tags, i.e. 'DDDb: MC09-20090602', | ||
| + | |||
| + | === What if the tag returned is None? === | ||
| + | It can happen, that the info reported by '' | ||
| + | lists '' | ||
| + | < | ||
| + | Production Info: | ||
| + | Configuration Name: MC | ||
| + | Configuration Version: MC11a | ||
| + | Event type: 11144103 | ||
| + | ----------------------- | ||
| + | | ||
| + | ApplicationName | ||
| + | ApplicationVersion : v33r1 | ||
| + | OptionFiles | ||
| + | DDB : None | ||
| + | CONDDB | ||
| + | ExtraPackages | ||
| + | ----------------------- | ||
| + | </ | ||
| + | |||
| + | 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 | ||
| + | < | ||
| + | SetupGauss | ||
| + | cat $GAUSSROOT/ | ||
| + | </ | ||
| ===== 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. | ||
| + | |||
| Insert the following lines to your options file: | Insert the following lines to your options file: | ||
| < | < | ||
| - | from Configurables import CondDB | + | DaVinci().CondDBtag |
| - | CondDB(UseOracle | + | DaVinci().DDDBtag = " |
| </ | </ | ||
| + | When running over Monte Carlo data, you need a DDDB tag (DDDB) and a CondDB (SIMCOND) tag. | ||
| < | < | ||
| DaVinci().CondDBtag = " | DaVinci().CondDBtag = " | ||
| DaVinci().DDDBtag = " | DaVinci().DDDBtag = " | ||
| </ | </ | ||
| + | *Note: There is nothing like " | ||
| + | *It may sometimes be necessary to access the OracleDB. This can be achieved the following way: | ||
| + | < | ||
| + | from Configurables import CondDB | ||
| + | CondDB(UseOracle = True) | ||
| + | </ | ||
| + | |||
| + | ===== Using dictionaries ===== | ||
| + | You can find a file including dictionaries of all yet known (and at least often used) tags under: "/ | ||
| + | which can be imported to be used in a python script. | ||
| + | The base file is located under "/ | ||
| + | |||
| ===== 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 69: | Line 110: | ||
| SIMCOND | SIMCOND | ||
| </ | </ | ||
| + | ===== Where to find information about global tags ===== | ||
| + | Follow this link: http:// | ||
| + | |||
| + | ===== More ===== | ||
| + | [[https:// | ||