bender & visualization (s) smart&transparent python/loki-based physics analysis +4 demo...

7
Bender & Visualization(s) Smart&Transparent Python/LoKi-based Physics Analysis +4 demo Vanya Belyaev Vanya Belyaev CERN & ITEP/Moscow CERN & ITEP/Moscow

Upload: karen-carpenter

Post on 19-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Bender & Visualization (s) Smart&Transparent Python/LoKi-based Physics Analysis +4 demo Vanya Belyaev CERN & ITEP/Moscow

Bender & Visualization(s)

Smart&Transparent Python/LoKi-based Physics Analysis +4 demo

Vanya BelyaevVanya BelyaevCERN & ITEP/MoscowCERN & ITEP/Moscow

Page 2: Bender & Visualization (s) Smart&Transparent Python/LoKi-based Physics Analysis +4 demo Vanya Belyaev CERN & ITEP/Moscow

12 Feb'2k+412 Feb'2k+4 Computing Computing Vanya Belyaev CERN & ITEP/MoscowVanya Belyaev CERN & ITEP/Moscow 22

LoKi + Python = Bender

• PythonPython allows to make the code even more compact and readable allows to make the code even more compact and readable

• PythonPython allows to keep the code and the options together in one file allows to keep the code and the options together in one file

• Improved localityImproved locality

• PythonPython allows to make analysis interactive allows to make analysis interactive

• InvokeInvoke BenderBender from from PanoramixPanoramix prompt ? prompt ? • Still into ink-bottle, not tested yet, should be trivialStill into ink-bottle, not tested yet, should be trivial

• The only one executable for all persons and all their jobsThe only one executable for all persons and all their jobs

• No private libraries, no compiler, linker etc No private libraries, no compiler, linker etc • Login into lxplusLogin into lxplus

• BenderEnv v2r0BenderEnv v2r0

• enjoyenjoy

• ‘‘Platform independent’ (to some extent) Platform independent’ (to some extent)

• Develop and test algorithms on laptop (Win) and then send the Develop and test algorithms on laptop (Win) and then send the script to ‘large’ (external) center (Linux)script to ‘large’ (external) center (Linux)

• Each separate analysis – Each separate analysis – 1 self-contained 1 self-contained PythonPython file with code and file with code and options options

• Easy to send 1 file to other center e.g. for preselectionEasy to send 1 file to other center e.g. for preselection

Page 3: Bender & Visualization (s) Smart&Transparent Python/LoKi-based Physics Analysis +4 demo Vanya Belyaev CERN & ITEP/Moscow

12 Feb'2k+412 Feb'2k+4 Computing Computing Vanya Belyaev CERN & ITEP/MoscowVanya Belyaev CERN & ITEP/Moscow 33

Interactivity

• Interactivity is not onlyInteractivity is not only “Python “Python prompt” ! prompt” ! • One needs visualizationOne needs visualization

• Histograms, (NTuples)Histograms, (NTuples)• Event Display Event Display

Bender is friendly guy!Bender is friendly guy!

• It nicely collaborates with It nicely collaborates with • ROOTROOT via via SEALSEAL dictionaries (thanks to Pere) dictionaries (thanks to Pere)

• Native Native ROOTROOT histograms + (NTuples) + all histograms + (NTuples) + all ROOTROOT stuff stuff

• ROOTROOT via via PIPI• AIDAAIDA histograms histograms

• HippoDrawHippoDraw via via PIPI • With some headache (PI is not bug-free, even demo examples ) With some headache (PI is not bug-free, even demo examples )

• AIDAAIDA histograms & clouds histograms & clouds

• LaJocondeLaJoconde• AIDAAIDA 1D histograms 1D histograms • Event Display, Geometry, etc Event Display, Geometry, etc

4 demos!4 demos!

Page 4: Bender & Visualization (s) Smart&Transparent Python/LoKi-based Physics Analysis +4 demo Vanya Belyaev CERN & ITEP/Moscow

12 Feb'2k+412 Feb'2k+4 Computing Computing Vanya Belyaev CERN & ITEP/MoscowVanya Belyaev CERN & ITEP/Moscow 44

Analysis Model

• My view on analysis models is highly biased My view on analysis models is highly biased

• I am physicist,I am physicist,

• I am making physics analyses in LHCb I am making physics analyses in LHCb

• I am code developer I am code developer AS A SEQUENCE :AS A SEQUENCE :

I DO NOT KNOW EXACTLY WHAT PHYSICISTS NEEDI DO NOT KNOW EXACTLY WHAT PHYSICISTS NEED

• PreselectionPreselection

•Significant reduction of data sampleSignificant reduction of data sample

•Simple/Efficient/Short/Dumb (1-2 pages) selection (Simple/Efficient/Short/Dumb (1-2 pages) selection (C++C++ or or PythonPython) ) algorithm algorithm

•(several times, with (several times, with miniDSTminiDST and/or and/or Event Tag CollectionsEvent Tag Collections))

• (Pseudo) interactive analysis (≤ few hours) with more sophisticated (Pseudo) interactive analysis (≤ few hours) with more sophisticated C++C++ or or PythonPython algorithms algorithms

• (several times, with (several times, with miniDSTminiDST and/or and/or Event Tag Collections)Event Tag Collections)

• Produce NTuples Produce NTuples

• Interactive analysis with Interactive analysis with ROOTROOT or or PAWPAW

Page 5: Bender & Visualization (s) Smart&Transparent Python/LoKi-based Physics Analysis +4 demo Vanya Belyaev CERN & ITEP/Moscow

12 Feb'2k+412 Feb'2k+4 Computing Computing Vanya Belyaev CERN & ITEP/MoscowVanya Belyaev CERN & ITEP/Moscow 55

Analysis Model : Bender

•Develop (interactively) Develop (interactively) Bender-base algorithmsBender-base algorithms

•Test it with events,Test it with events,

•Inspect histograms, Inspect histograms, (tuples)(tuples)

•Inspect TES,Inspect TES,

•Visualizse ‘interesting’ Visualizse ‘interesting’ events’events’

•Update algorithm Update algorithm

•Run “many” events Run “many” events • (collaborate with (collaborate with

Ganga?) Ganga?)

From one Python prompts From one Python prompts in one interactive ‘job’in one interactive ‘job’

Page 6: Bender & Visualization (s) Smart&Transparent Python/LoKi-based Physics Analysis +4 demo Vanya Belyaev CERN & ITEP/Moscow

12 Feb'2k+412 Feb'2k+4 Computing Computing Vanya Belyaev CERN & ITEP/MoscowVanya Belyaev CERN & ITEP/Moscow 66

Analysis models

• Bender is friendly guy! Bender is friendly guy! It nicely collaborates with It nicely collaborates with

• ROOTROOT via via SEALSEAL dictionaries (thanks to Pere) dictionaries (thanks to Pere)•Native Native ROOTROOT histograms + (NTuples) + allroot stuff histograms + (NTuples) + allroot stuff

• ROOTROOT via via PIPI•AIDAAIDA histograms histograms

• HippoDrawHippoDraw via via PIPI •With some headache (PI is not bug-free, even demo examples ) With some headache (PI is not bug-free, even demo examples )

•AIDAAIDA histograms & clouds histograms & clouds

• LaJocondeLaJoconde•AIDAAIDA 1D histograms 1D histograms

•Event Display, Geometry, etc Event Display, Geometry, etc

4 demos!4 demos!

Page 7: Bender & Visualization (s) Smart&Transparent Python/LoKi-based Physics Analysis +4 demo Vanya Belyaev CERN & ITEP/Moscow

12 Feb'2k+412 Feb'2k+4 Computing Computing Vanya Belyaev CERN & ITEP/MoscowVanya Belyaev CERN & ITEP/Moscow 77

Bender

Ostap Suleiman Berta Maria Ostap Suleiman Berta Maria BenderBender-bei-bei

Остап Сулейман Берта Мария Остап Сулейман Берта Мария БендерБендер-бей-бей

• The cult-hero of two Russian The cult-hero of two Russian books by I. Ilf & E. Petrovbooks by I. Ilf & E. Petrov• ““The 12 chairs”The 12 chairs”

• 12 12 стульевстульев• ““The golden calf”The golden calf”

• Золотой телёнокЗолотой телёнок

• The title: “The great schemer”The title: “The great schemer”

• Attractive & brilliant cheaterAttractive & brilliant cheater

Essential for successful and Essential for successful and good physics analysisgood physics analysis