Fork me on GitHub

Changeset 433360f in git


Ignore:
Timestamp:
Nov 17, 2017, 6:06:40 PM (7 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
6038170
Parents:
0f2e086
Message:

adapt Example1.py to Python 3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/Example1.py

    r0f2e086 r433360f  
    55import ROOT
    66
     7try:
     8  input = raw_input
     9except:
     10  pass
     11
    712if len(sys.argv) < 2:
    8   print " Usage: Example1.py input_file"
     13  print(" Usage: Example1.py input_file")
    914  sys.exit(1)
    1015
     
    4954
    5055    # Print jet transverse momentum
    51     print jet.PT
     56    print(jet.PT)
    5257
    5358  # If event contains at least 2 electrons
     
    6469histMass.Draw()
    6570
    66 raw_input("Press Enter to continue...")
     71input("Press Enter to continue...")
Note: See TracChangeset for help on using the changeset viewer.