parameters: (self, inputFiles = '', **kwargs)
docstring: inputFiles    => Either a single filename or a list of filenames
          Optional arguments:
          forceEvent  => Use fwlite::Event IF there is only one file
          maxEvents   => Maximum number of events to process
docstring_summary: inputFiles    => Either a single filename or a list of filenames
          Optional arguments:
          forceEvent  => Use fwlite::Event IF there is only one file
          maxEvents   => Maximum number of events to process
docstring_tokens: inputFiles = > Either a single filename or a list of filenames Optional arguments : forceEvent = > Use fwlite :: Event IF there is only one file maxEvents = > Maximum number of events to process
function: def __init__(self, inputFiles = '', **kwargs):
          """inputFiles    => Either a single filename or a list of filenames
          Optional arguments:
          forceEvent  => Use fwlite::Event IF there is only one file
          maxEvents   => Maximum number of events to process
          """        
          self._veryFirstTime      = True
          self._event              = 0
          self._eventCounts        = 0
          self._maxEvents          = 0
          self._forceEvent         = False
          self._mode               = None
          self._secondaryFilenames = None
          if isinstance (inputFiles, list):
              # it's a list
              self._filenames = inputFiles[:]
          elif isinstance (inputFiles, VarParsing):
              # it's a VarParsing object
              options = inputFiles
              self._maxEvents           = options.maxEvents
              self._filenames           = options.inputFiles
              self._secondaryFilenames  = options.secondaryInputFiles
          else:
              # it's probably a single string
              self._filenames = [inputFiles]
          ##############################
          ## Parse optional arguments ##
          ##############################
          if 'maxEvents' in kwargs:
              self._maxEvents = kwargs['maxEvents']
              del kwargs['maxEvents']
          if 'forceEvent' in kwargs:
              self._forceEvent = kwargs['forceEvent']
              del kwargs['forceEvent']
          if 'options' in kwargs:
              options = kwargs ['options']
              self._maxEvents           = options.maxEvents
              self._filenames           = options.inputFiles
              self._secondaryFilenames  = options.secondaryInputFiles
              del kwargs['options']
          # Since we deleted the options as we used them, that means
          # that kwargs should be empty.  If it's not, that means that
          # somebody passed in an argument that we're not using and we
          # should complain.
          if len (kwargs):
              raise RuntimeError("Unknown arguments %s" % kwargs)
          if not self._filenames:
              raise RuntimeError("No input files given")
function_tokens: def __init__ ( self , inputFiles = '' , * * kwargs ) : self . _veryFirstTime = True self . _event = 0 self . _eventCounts = 0 self . _maxEvents = 0 self . _forceEvent = False self . _mode = None self . _secondaryFilenames = None if isinstance ( inputFiles , list ) : # it's a list self . _filenames = inputFiles [ : ] elif isinstance ( inputFiles , VarParsing ) : # it's a VarParsing object options = inputFiles self . _maxEvents = options . maxEvents self . _filenames = options . inputFiles self . _secondaryFilenames = options . secondaryInputFiles else : # it's probably a single string self . _filenames = [ inputFiles ] ############################## ## Parse optional arguments ## ############################## if 'maxEvents' in kwargs : self . _maxEvents = kwargs [ 'maxEvents' ] del kwargs [ 'maxEvents' ] if 'forceEvent' in kwargs : self . _forceEvent = kwargs [ 'forceEvent' ] del kwargs [ 'forceEvent' ] if 'options' in kwargs : options = kwargs [ 'options' ] self . _maxEvents = options . maxEvents self . _filenames = options . inputFiles self . _secondaryFilenames = options . secondaryInputFiles del kwargs [ 'options' ] # Since we deleted the options as we used them, that means # that kwargs should be empty.  If it's not, that means that # somebody passed in an argument that we're not using and we # should complain. if len ( kwargs ) : raise RuntimeError ( "Unknown arguments %s" % kwargs ) if not self . _filenames : raise RuntimeError ( "No input files given" )