test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Classes | Functions | Variables
python Namespace Reference

Namespaces

 cmscompleter
 
 cmstools
 
 diff_provenance
 
 diffProv
 
 iterators
 
 LumiList
 
 namespaceDict
 
 ParticleDecayDrawer
 
 read_provenance
 
 readProv
 
 rootplot
 
 XML2Python
 

Classes

class  Events
 

## Events

More...
 
class  Handle
 

## Handle

More...
 
class  Lumis
 

## Lumis

More...
 
class  Runs
 

## Runs

More...
 

Functions

def setQuietWarn
 
def warn
 

Variables

 quietWarn = False
 

Function Documentation

def python.setQuietWarn (   quiet = True)

Definition at line 16 of file __init__.py.

16 
17 def setQuietWarn (quiet = True):
18  global quietWarn
19  quietWarn = quiet
def setQuietWarn
Definition: __init__.py:16
def python.warn (   args,
  kwargs 
)
print out warning with line number and rest of arguments

Definition at line 20 of file __init__.py.

20 
21 def warn (*args, **kwargs):
22  """print out warning with line number and rest of arguments"""
23  if quietWarn: return
24  frame = inspect.stack()[1]
25  filename = frame[1]
26  lineNum = frame[2]
27  #print "after '%s'" % filename
28  blankLines = kwargs.get('blankLines', 0)
29  if blankLines:
30  print '\n' * blankLines
31  spaces = kwargs.get('spaces', 0)
32  if spaces:
33  print ' ' * spaces,
34  if len (args):
35  print "%s (%s): " % (filename, lineNum),
36  for arg in args:
37  print arg,
38  print
39  else:
40  print "%s (%s):" % (filename, lineNum)
def warn
Definition: __init__.py:20

Variable Documentation

python.quietWarn = False

Definition at line 14 of file __init__.py.