Difference: DaVinciTutorial0p5 (31 vs. 32)

Revision 322013-09-30 - PatrickSKoppenburg

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

DaVinci Tutorial 0.5

Line: 11 to 11
 378813-a-child-like-drawing-of-a-stick-man-playing-a-video-game-on-the-computer-the-image-is-a-vector-file.jpg
Changed:
<
<

- Prerequisites and Slides.

>
>

Prerequisites and Slides.

 
Changed:
<
<

- Creating Ganga template for DaVinci Tutorial jobs, and initial package build.

>
>

Creating Ganga template for DaVinci Tutorial jobs, and initial package build.

  DaVinciTutorial0 introduced you to running jobs inside Ganga, and you set up a generic template. Here we set up a specific one for this tutorial.
Line: 31 to 31
  Just as jobs is a list of previously run ganga jobs, templates is a list of previously created instantiations of the JobTemplate class. This template can be used for all the Tutorial analyses, and if you ever restart ganga you can just copy it off the templates list.
Changed:
<
<

- Start to write the options

>
>

Start to write the options

 
  1. First make sure you have the LHCb flavour of emacs. If not do what's described here.
  2. Open the main options file (from ganga type:)
    <!-- SyntaxHighlightingPlugin -->
!emacs $t.application.optsfile[0].name &
<!-- end SyntaxHighlightingPlugin -->
  1. Write in the options file. %SYNTAX{ syntax="python"}%from Gaudi.Configuration import *
Line: 39 to 39
 DaVinci() %ENDSYNTAX%
Changed:
<
<

- Configuring DaVinci()

>
>

Configuring DaVinci()

  We now need to configure the job in the main options file. In this case it is as simple as writing some options for the "DaVinci Configurable".
Line: 55 to 55
 Hint: if you have closed the file accidentally you can reopen with:
!emacs $t.application.optsfile[0].name &
Changed:
<
<

- Data

>
>

Data

  Then we need some data.
  • We will attach the data this time directly to the job object, instead of writing it into an options file. This is Muuuuch more flexible and almost always works first time.
Line: 78 to 78
 
  • The ganga box, the recommended and flexible way. Here you can give datasets different names, and even add "BKQuery" objects box.add(j.inputdata, "R14S20 DIMUON") ... any ganga object can be stored in your box.
OK, so there's like 3615 files in that BKQuery... and annoyingly at least one of them is missing any replicas, so you can probably just run on the first 10 ...
<!-- SyntaxHighlightingPlugin -->
t.inputdata = data[0:10]
<!-- end SyntaxHighlightingPlugin -->
Changed:
<
<

- Database tags

>
>

Database tags

  This part is rather complicated.
  • LHCb data is reconstructed assuming a given detector geometry and alignment.
Line: 92 to 92
 
  • If you use directly the dirac lhcb_bkk command (in a different window) it will save a file in which the database tags should be listed.
  • Otherwise, ask a colleague working on similar data.
Changed:
<
<

- Submit

>
>

Submit

 
<!-- SyntaxHighlightingPlugin -->
j = Job(t)
j.submit()
<!-- end SyntaxHighlightingPlugin -->
Changed:
<
<

- Did it work?

>
>

Did it work?

 
  • You tell me!
  • Take a look at the standard out and the XMLSummary ... can you understand it?
Changed:
<
<

- Try Dirac

>
>

Try Dirac

 
  • If you're brave, and if the local test worked, try submitting the job to the grid!
    <!-- SyntaxHighlightingPlugin -->
j=j.copy()
j.backend=Dirac()
j.submit() 
<!-- end SyntaxHighlightingPlugin -->
Changed:
<
<

- Understanding the DaVinci Configurable

>
>

Understanding the DaVinci Configurable

 
  • "DaVinci" means several things in our software. Really the meaty part of "DaVinci" you will interact with most is the python configuation object written into the options files.
  • This is not the same object as you get by typing DaVinci() at the ganga prompt! That is just a Ganga job object, known as a GPI-object, it doesn't really do anything apart from telling ganga what type of environment to set up.
Line: 135 to 135
 
Changed:
<
<
META PREFERENCE name="DAVINCIVERSION" title="DAVINCIVERSION" type="Set" value="v33r0p1"
META PREFERENCE name="TUTORIALVERSION" title="TUTORIALVERSION" type="Set" value="v10r4"
META PREFERENCE name="GANGAVERSION" title="GANGAVERSION" type="Set" value="5-8-16"
>
>
META PREFERENCE name="DAVINCIVERSION" title="DAVINCIVERSION" type="Set" value="v33r7"
META PREFERENCE name="TUTORIALVERSION" title="TUTORIALVERSION" type="Set" value="v10r6"
META PREFERENCE name="GANGAVERSION" title="GANGAVERSION" type="Set" value="v600r17"
 |*META PREFERENCE*|name="SYNTAXHIGHLIGHTINGPLUGIN_FORMAT_PREPEND" title="SYNTAXHIGHLIGHTINGPLUGIN_FORMAT_PREPEND" type="Set" value="
"|

 
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