Difference: BenderScriptTutorial (6 vs. 7)

Revision 72016-02-05 - VanyaBelyaev

Line: 1 to 1
 
META TOPICPARENT name="LHCbSoftwareTutorials"

Getting started with BenderScript

Line: 14 to 14
 
Added:
>
>
The described funcntinoality corresponds to Bender version v28r0
 

Prerequisites

Line: 24 to 25
 BenderScript shares all pros and contras with GaudiPython
  • It definitely provides very simple and efficient way for exploring the data, in particular very simple way for investigation of the content for the input data and TES. One can easily loop over events, data containers, make simple calcualtions, apply large part of LoKi functors, use some part of DaVinci machinery, etc
  • There is large part of tasks that are very difficult in BenderScrip:
Changed:
<
<
    • large part of DaVinci tools is not working. It includes all tools and functionality related to e.g. actions with the associated best primary vertex. These manipulations are very complicated or some of them (e.g. PV-refit) is practically immpossible to perform in a correct way
    • some LoKi functors do not operate (mainly due to the issues from the previous item), e.g BPV*' or *DV or DTF_* - those are not easy to use from plain command line. There are some alternatives , but not for all functors.
>
>
    • large part of DaVinci tools is not working. It includes all tools and functionality related to e.g. actions with the associated best primary vertex. These manipulations are very complicated or some of them (e.g. PV-refit) is practically impossible to perform in a correct way
    • Many tools do not work without significant efforts
    • The results of tools often are very difficult to save to be used/reused e.g. for subsequent processing (e.g. save manually created particles and vertices to TES and to output file)
    • Some LoKi functors do not operate (mainly due to the issues from the previous item), e.g BPV*' or *DV or DTF_* - those are not easy to use from plain command line. There are some alternatives , but not for all functors.
 

Start of (interactive) BenderScript session

Line: 53 to 56
 On-default BenderScritp starts IPython session, but using command line arguments it could be substituted with on of the alternatives:
  • embedded python using -e/--embed option
  • plain python, using -y/--plain option
Changed:
<
<
Alternative could be more appropriate for some tricky cases with python imports.
>
>
Alternative could be more appropriate for some tricky cases with python imports, serialization and usage of subprocess (depending on combination of versions)
 
 
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