User Tools

Site Tools


stripping:stripping

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
stripping:stripping [2010/09/07 18:37] decianmstripping:stripping [2010/12/07 11:08] decianm
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
Line 19: Line 20:
   * This will give you something like: ''StrippingDiMuonIncLine Dimuon/Phys/DiMuonIncLine'', where the first one is your line and the second one the location.   * 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 ====+===== How to access the event =====
 To access the event, you have to set the correct path, f.ex:  To access the event, you have to set the correct path, f.ex: 
 <code python> <code python>
 MyParticles = DataOnDemand(Location = '/Event/Dimuon/Phys/DiMuonIncLine') MyParticles = DataOnDemand(Location = '/Event/Dimuon/Phys/DiMuonIncLine')
 </code> </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