CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
uploads.output Class Reference

Public Member Functions

def __init__ (self, log_handle=None, verbose=False)
 
def write (self, message="", ignore_verbose=False)
 

Public Attributes

 current_output_length
 

Private Attributes

 _log_handle
 
 _verbose
 

Detailed Description

Used to control output to the console and to the client-side log.

Definition at line 59 of file uploads.py.

Constructor & Destructor Documentation

◆ __init__()

def uploads.output.__init__ (   self,
  log_handle = None,
  verbose = False 
)

Definition at line 64 of file uploads.py.

64  def __init__(self, log_handle=None, verbose=False):
65  # first time writing progress bar, don't need to go back along the line
66  self.current_output_length = 0
67  self._verbose = verbose
68  self._log_handle = log_handle
69 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ write()

def uploads.output.write (   self,
  message = "",
  ignore_verbose = False 
)
Write to the console and to the log file held by self.

Definition at line 70 of file uploads.py.

References uploads.output._log_handle, uploads.output._verbose, uploads.log(), and print().

Referenced by pkg.AbstractPkg.generate().

70  def write(self, message="", ignore_verbose=False):
71  """
72  Write to the console and to the log file held by self.
73  """
74  if ignore_verbose:
75  print(message)
76  elif self._verbose:
77  print(message)
78  if self._log_handle != None:
79  log(self._log_handle, message)
80 
def log(file_handle, message)
Definition: uploads.py:39
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Member Data Documentation

◆ _log_handle

uploads.output._log_handle
private

Definition at line 68 of file uploads.py.

Referenced by uploads.output.write().

◆ _verbose

uploads.output._verbose
private

◆ current_output_length

uploads.output.current_output_length

Definition at line 66 of file uploads.py.