User Tools

Site Tools


davinci:positiveid

Differences

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

Link to this comparison view

Next revision
Previous revision
davinci:positiveid [2009/06/17 11:19] – created decianmdavinci: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 ''muminus'' and not as ''muplus'' and ''muminus'' in the nTuple. This will allow to chain or merge the root files in an easy way afterwards.+It may sometimes be useful to store particles always under the same label, for instance always as ''muminus'' and not as ''muplus'' and ''muminus'' in the nTuple. This will allow to chain or merge the root files in an easy way afterwards. A simple example may be: 
 + 
 +<code> 
 +Tuple = DecayTreeTuple("MisID"
 +Tuple.InputLocations = ["Phys/StdNoPIDsMuons"
 +Tuple.Decay = "[mu+]cc" 
 +</code> 
 + 
 +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 afterwards.
  
 ===== How to ===== ===== How to =====
Line 12: Line 20:
 myTuple.RevertToPositiveID = True myTuple.RevertToPositiveID = True
 </code> </code>
-Which will do the job.+which will do the job.
davinci/positiveid.1245230347.txt.gz · Last modified: 2009/06/17 11:19 by decianm