This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
davinci:positiveid [2009/06/17 11:19] – created decianm | davinci:positiveid [2009/06/17 11:22] (current) – decianm | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Revert particle ID to a positive number in DecayTreeTuple ====== | ====== Revert particle ID to a positive number in DecayTreeTuple ====== | ||
===== Idea ===== | ===== Idea ===== | ||
- | It may sometimes be useful to store particles always under the same label, for instance always as '' | + | It may sometimes be useful to store particles always under the same label, for instance always as '' |
+ | |||
+ | < | ||
+ | Tuple = DecayTreeTuple(" | ||
+ | Tuple.InputLocations = [" | ||
+ | Tuple.Decay = " | ||
+ | </ | ||
+ | |||
+ | which takes every particle, assigns it the ID of a muon / antimuon, and saves it in the tuple. The problem here exactly is that the files can't be merged | ||
===== How to ===== | ===== How to ===== | ||
Line 12: | Line 20: | ||
myTuple.RevertToPositiveID = True | myTuple.RevertToPositiveID = True | ||
</ | </ | ||
- | Which will do the job. | + | which will do the job. |