CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 17 of file __init__.py.

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

Definition at line 21 of file __init__.py.

References print().

Referenced by GEMAMC13Status.GEMAMC13Status(), GEMAMCStatus.GEMAMCStatus(), GEMOHStatus.GEMOHStatus(), GEMVFATStatus.GEMVFATStatus(), GEMAMC13Status.inValidAMC(), GEMAMCStatus.inValidOH(), and GEMOHStatus.inValidVFAT().

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

Variable Documentation

python.quietWarn = False

Definition at line 15 of file __init__.py.