This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
stripping:stripping [2010/09/07 18:37] – decianm | stripping: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:// | A lot of documentation can be found under: https:// | ||
Line 11: | Line 11: | ||
SetupProject DaVinci vXrYpZ | SetupProject DaVinci vXrYpZ | ||
python | python | ||
- | from StrippingSelections.StreamRadiative | + | from StrippingSettings.Stripping12 |
- | locations = {} for line in stream.lines : | + | locations = {} |
- | | + | for line in StreamCalibration.stream.lines : |
+ | | ||
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: '' | * This will give you something like: '' | ||
- | ==== How to access the event ==== | + | From Stripping 13 on, you have to do something like: |
+ | |||
+ | <code python> | ||
+ | from StrippingSelections.Utils import buildStreams | ||
+ | streams = buildStreams(' | ||
+ | |||
+ | for stream in streams: | ||
+ | if(stream.name() == " | ||
+ | for line in stream.lines : | ||
+ | print line.name(), | ||
+ | </ | ||
+ | ===== 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 = '/ | MyParticles = DataOnDemand(Location = '/ | ||
</ | </ | ||
+ | or you can set the '' | ||
+ | <code python> | ||
+ | MyParticles = DataOnDemand(Location = ' | ||
+ | MyGaudiSequence.RootInTES = "/ | ||
+ | </ | ||
+ | Note that you should not set '' | ||
+ | ===== 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('/ | ||
+ | j.inputdata.depth = 2 | ||
+ | </ | ||
+ | where it is crucial that you set '' | ||