User Tools

Site Tools


stripping:stripping

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
stripping:stripping [2010/09/07 18:26] – created decianmstripping:stripping [2010/12/07 11:08] decianm
Line 2: Line 2:
 ===== Idea ===== ===== Idea =====
 Fill this... Fill this...
-==== Documentation ====+===== Documentation =====
 A lot of documentation can be found under: https://twiki.cern.ch/twiki/bin/view/LHCb/LHCbStripping A lot of documentation can be found under: https://twiki.cern.ch/twiki/bin/view/LHCb/LHCbStripping
-=== How to get the name of the lines ===+===== How to get the name of the lines =====
 To know how to access your line in your options file, you have to know the name of it. To find this out, do the following: To know how to access your line in your options file, you have to know the name of it. To find this out, do the following:
   * Find out in which stream it is (Dimuon, Dielectron, EW,...)   * Find out in which stream it is (Dimuon, Dielectron, EW,...)
Line 11: Line 11:
 SetupProject DaVinci vXrYpZ SetupProject DaVinci vXrYpZ
 python python
-from StrippingSelections.StreamRadiative import stream +from StrippingSettings.Stripping12 import StreamCalibration 
-locations = {} for line in stream.lines : +locations = {}  
-   locations[ line.name()] = stream.name() + /’ + line.outputLocation()+for line in StreamCalibration.stream.lines : 
 +   locations[ line.name()] = str(StreamCalibration.stream.name()) + '/str(line.outputLocation())
 for line, loc in locations.iteritems() :  for line, loc in locations.iteritems() : 
    print line, loc    print line, loc
 +</code>
 +  * This will give you something like: ''StrippingDiMuonIncLine Dimuon/Phys/DiMuonIncLine'', where the first one is your line and the second one the location.
 +
 +===== How to access the event =====
 +To access the event, you have to set the correct path, f.ex: 
 +<code python>
 +MyParticles = DataOnDemand(Location = '/Event/Dimuon/Phys/DiMuonIncLine')
 +</code>
 +or you can set the ''RootInTES'' ...
 +<code python>
 +MyParticles = DataOnDemand(Location = 'Phys/DiMuonIncLine')
 +MyGaudiSequence.RootInTES = "/Event/Dimuon"
 +</code>
 +Note that you should not set ''RootInTES'' in the stripping, as it can cause problems (but can be useful for debugging sometimes).
  
  
stripping/stripping.txt · Last modified: 2011/04/20 11:09 by decianm