CMS 3D CMS Logo

Namespaces | Classes | Functions | Variables
python Namespace Reference

Namespaces

 cmscompleter
 
 cmstools
 
 diffProv
 
 iterators
 
 LumiList
 
 namespaceDict
 
 ParticleDecayDrawer
 
 readProv
 
 rootplot
 
 XML2Python
 

Classes

class  Events
 

## Events

More...
 
class  Handle
 

## Handle

More...
 
class  Lumis
 

## Lumis

More...
 
class  Runs
 

## Runs

More...
 

Functions

def setQuietWarn (quiet=True)
 
def warn (args, kwargs)
 

Variables

 quietWarn
 

Function Documentation

◆ setQuietWarn()

def python.setQuietWarn (   quiet = True)

Definition at line 15 of file __init__.py.

15 def setQuietWarn (quiet = True):
16  global quietWarn
17  quietWarn = quiet
18 
def setQuietWarn(quiet=True)
Definition: __init__.py:15

◆ warn()

def python.warn (   args,
  kwargs 
)
print out warning with line number and rest of arguments

Definition at line 19 of file __init__.py.

References print().

Referenced by ClusterSummary.addClusCharge(), ClusterSummary.addClusSize(), ClusterSummary.addNClus(), GEMAMC13Status.GEMAMC13Status(), GEMAMCStatus.GEMAMCStatus(), GEMOHStatus.GEMOHStatus(), GEMVFATStatus.GEMVFATStatus(), ClusterSummary.getClusCharge(), ClusterSummary.getClusSize(), ClusterSummary.getModuleLocation(), ClusterSummary.getNClus(), GEMAMC13Status.inValidAMC(), GEMAMCStatus.inValidOH(), and GEMOHStatus.inValidVFAT().

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

Variable Documentation

◆ quietWarn

python.quietWarn

Definition at line 13 of file __init__.py.