Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Mar 5, 2018
1 parent e908a47 commit 933f9fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion advanced-bender/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ BeamY b__ENDVERTEX_NDOF b__ENDVERTEX_YERR b__FD_OWNPV b__O
b__DIRA_OWNPV b__ENDVERTEX_X b__ENDVERTEX_Z b__IPCHI2_OWNPV b__OWNPV_NDOF b__OWNPV_YERR
b__ENDVERTEX_CHI2 b__ENDVERTEX_XERR b__ENDVERTEX_ZERR b__IP_OWNPV b__OWNPV_X b__OWNPV_Z
```
{% endchallenge %}
{% endchallenge %}
15 changes: 10 additions & 5 deletions simulation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ dv = DaVinci ( Simulation = True , ##
Correct `DDDB/SIMCOND`-tags can be retrived in several ways:
1. from `bookkeeping-DB` for the given production type
{% challenge "Challenge (only for those who knows how to do it)" %}
Do you know how to do it? If so make a try to use this way. Please use the timer for comparison.
Do you know how to do it? If so make a try to use this way.
* Please use the timer for comparison.
{% endchallenge %}
2. using the helper Bender scripts `get-dbtags` or `get-metainfo` for the given file
{% challenge "Challenge" %}
Try to use these scripts form the command line. Start with `get-dbtags -h` and `get-metainfo -h` and follow the instructions.
Try to use these scripts form the command line.
* Start with `get-dbtags -h` and `get-metainfo -h` and follow the instructions.
{% solution "Solution" %}
<script src="https://gist.github.com/VanyaBelyaev/8e316f81caaccda69cb3b7ced2abd5d5.js"/></script>
{% endchallenge %}
Expand All @@ -41,8 +43,9 @@ Try to use these scripts form the command line. Start with `get-dbtags -h` and
lb-run -c x86_64-slc6-gcc49-opt LHCbDirac/prod dirac-bookkeeping-decays-path 13104231
```
{% challenge "Challenge" %}
Make a try with this command. (Do not forget to obtain valid Grid proxy)
* Is the output clear enough?
Make a try with this command.
* (Do not forget to obtain valid Grid proxy)
* Is the output clear enough?
{% solution "Solution" %}
The output is a list tuples. For each tuple one gets (in order)
- The path in `bookkeeping-DB`
Expand Down Expand Up @@ -96,6 +99,8 @@ setData ( inputdata , catalogs , castor , useDBtags = True ) ## <--- HERE!
This is, probably, the most robust, safe and simultaneously the most convinient way
to treat `DDDB/SIMCOND`-tags for your application :-)


The price to pay: since internally it relies on the functionality provided by `get-dbtags`-script,
for processing it could take addtional O(1-2) minutes to open the first input file
and to read `DDDB/SIMCOND`-tags from it.


0 comments on commit 933f9fb

Please sign in to comment.