This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| davinci:tthitslongtrack [2010/10/22 17:43] – created decianm | davinci:tthitslongtrack [2010/10/22 17:43] (current) – decianm | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== How to cut on number of TT hits on long tracks ====== | + | ====== How to cut on number of TT hits on tracks ====== |
| ===== Problem ===== | ===== Problem ===== | ||
| Some of the long tracks don't have TT hits. However, it may be useful to distinguish in an analysis long tracks with and without TT hits. | Some of the long tracks don't have TT hits. However, it may be useful to distinguish in an analysis long tracks with and without TT hits. | ||
| Line 6: | Line 6: | ||
| In your Combine Particles or wherever LoKi cuts can be applied, do: | In your Combine Particles or wherever LoKi cuts can be applied, do: | ||
| <code python> | <code python> | ||
| - | MyAlog.Preambulo += [ 'from LoKiTrigger.decorators import *' ] | + | MyAlgo.Preambulo += [ 'from LoKiTrigger.decorators import *' ] |
| ... | ... | ||
| Code = ' | Code = ' | ||
| </ | </ | ||
| - | + | This will demand tracks with more than 2 TT hits. | |