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
stripping:stripping [2010/09/07 18:26] – created decianmstripping:stripping [2011/04/20 11:09] (current) – [How to get the name of the lines] decianm
Line 1: Line 1:
 ====== Stripping ====== ====== Stripping ======
 ===== Idea ===== ===== Idea =====
-Fill this... +Stripping is the idea of only fully reconstructing interesting decays, which can easily be accessed afterwards. It can cause a lot of pain, though... 
-==== 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.
  
 +From Stripping 13 on, you have to do something like:
  
 +<code python>
 +from StrippingSelections.Utils import buildStreams
 +streams = buildStreams('Stripping13')
  
 +for stream in streams:
 +    if(stream.name() == "Calibration"):
 +        for line in stream.lines :
 +           print line.name(), "\t", line.outputLocation()
 +</code>
 +===== 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).
 +
 +===== How to test stripping lines on the GRID =====
 +First you have to make sure, the SDSTs as well as the RAW files are accessible and are staged in (as in the test-samples).
 +In ganga then you can do the following (in addition to the usual things):
 +<code python>
 +j.inputdata = DaVinci().readInputData('/someDirectory/something_SDST.py')
 +j.inputdata.depth = 2
 +</code>
 +where it is crucial that you set ''j.inputdata.depth = 2'' to make sure the RAW files can be accessed.
  
  
stripping/stripping.1283876768.txt.gz · Last modified: 2010/09/07 18:26 by decianm