Adding a max mass cutoff for slhaplot: don't show particle lines or associated decays for particles with masses greater than the cutoff. Version 1.2.8 pyslha-1.2.8

Sat, 24 Sep 2011 21:17:07 +0100

author
Andy Buckley <andy@insectnation.org>
date
Sat, 24 Sep 2011 21:17:07 +0100
changeset 154
da6a12eb28f1
parent 153
fcc4f8e3158b
child 155
d507f7835be2

Adding a max mass cutoff for slhaplot: don't show particle lines or associated decays for particles with masses greater than the cutoff. Version 1.2.8

ChangeLog file | annotate | diff | comparison | revisions
pyslha.py file | annotate | diff | comparison | revisions
slhaplot file | annotate | diff | comparison | revisions
     1.1 --- a/ChangeLog	Sat Sep 10 22:34:45 2011 +0900
     1.2 +++ b/ChangeLog	Sat Sep 24 21:17:07 2011 +0100
     1.3 @@ -1,3 +1,13 @@
     1.4 +2011-09-24  Andy Buckley  <andy@insectnation.org>
     1.5 +
     1.6 +	* Version 1.2.8
     1.7 +
     1.8 +	* Adding a max mass cutoff for slhaplot: don't show particle lines
     1.9 +	or associated decays for particles with masses greater than the
    1.10 +	cutoff. This is set to 10 TeV by default, i.e. above realistic LHC
    1.11 +	scales and was really introduced to protect the plotting code
    1.12 +	against Planck scale gravitons.
    1.13 +
    1.14  2011-09-10  Andy Buckley  <andy@insectnation.org>
    1.15  
    1.16  	* Version 1.2.7 (I'm not sure what happened to the ChangeLog
     2.1 --- a/pyslha.py	Sat Sep 10 22:34:45 2011 +0900
     2.2 +++ b/pyslha.py	Sat Sep 24 21:17:07 2011 +0100
     2.3 @@ -24,7 +24,7 @@
     2.4  """
     2.5  
     2.6  __author__ = "Andy Buckley <andy.buckley@cern.ch"
     2.7 -__version__ = "1.2.7"
     2.8 +__version__ = "1.2.8"
     2.9  
    2.10  
    2.11  def _autotype(var):
     3.1 --- a/slhaplot	Sat Sep 10 22:34:45 2011 +0900
     3.2 +++ b/slhaplot	Sat Sep 24 21:17:07 2011 +0100
     3.3 @@ -201,6 +201,10 @@
     3.4                    "comma-separated list, and 'shift' vertically shifts the clashing labels to avoid "
     3.5                    "collisions (default: %default)",
     3.6                    dest="PARTICLES_LABELS", default="shift")
     3.7 +parser.add_option("--maxmass", type="float", metavar="MASS",
     3.8 +                  help="don't show particles or decays with masses higher than this, "
     3.9 +                  "in GeV (default: %default)", dest="MAXMASS", default=10000)
    3.10 +
    3.11  verbgroup = optparse.OptionGroup(parser, "Verbosity control")
    3.12  parser.add_option("-l", dest="NATIVE_LOG_STRS", action="append",
    3.13                    default=[], help="set a log level in the Rivet library")
    3.14 @@ -363,7 +367,7 @@
    3.15      ## Set mass values in PDETAILS
    3.16      massblock = BLOCKS["MASS"]
    3.17      for pid in PDETAILS.keys():
    3.18 -        if massblock.entries.has_key(pid):
    3.19 +        if massblock.entries.has_key(pid) and abs(massblock.entries[pid]) < opts.MAXMASS:
    3.20              PDETAILS[pid].mass = abs(massblock.entries[pid])
    3.21          else:
    3.22              del PDETAILS[pid]

mercurial