CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
dataset.MultipleDatasets Class Reference
Inheritance diagram for dataset.MultipleDatasets:
dataset.DatasetBase

Public Member Functions

def __init__ (self, datasets, kwargs)
 
def getfiles (self, usecache)
 
def headercomment (self)
 
- Public Member Functions inherited from dataset.DatasetBase
def getfiles (self, usecache)
 
def headercomment (self)
 
def writefilelist_hippy (self, firstrun, lastrun, runs, eventsperjob, maxevents, outputfile, usecache=True)
 
def writefilelist_validation (self, firstrun, lastrun, runs, maxevents, outputfile=None, usecache=True)
 

Public Attributes

 datasets
 

Detailed Description

Definition at line 250 of file dataset.py.

Constructor & Destructor Documentation

def dataset.MultipleDatasets.__init__ (   self,
  datasets,
  kwargs 
)

Definition at line 251 of file dataset.py.

251  def __init__(self, *datasets, **kwargs):
252  dasinstance = defaultdasinstance
253  for kw, kwarg in kwargs.iteritems():
254  if kw == "dasinstance":
255  dasinstance = kwarg
256  else:
257  raise TypeError("Unknown kwarg {}={}".format(kw, kwarg))
258  self.datasets = [Dataset(dataset, dasinstance=dasinstance) for dataset in datasets]
259 
def __init__(self, datasets, kwargs)
Definition: dataset.py:251

Member Function Documentation

def dataset.MultipleDatasets.getfiles (   self,
  usecache 
)

Definition at line 261 of file dataset.py.

References dataset.MultipleDatasets.datasets.

261  def getfiles(self, usecache):
262  return sum([d.getfiles(usecache=usecache) for d in self.datasets], [])
263 
def getfiles(self, usecache)
Definition: dataset.py:261
def dataset.MultipleDatasets.headercomment (   self)

Definition at line 265 of file dataset.py.

References dataset.MultipleDatasets.datasets, and join().

265  def headercomment(self):
266  return ", ".join(d.headercomment for d in self.datasets)
267 
def headercomment(self)
Definition: dataset.py:265
static std::string join(char **cmd)
Definition: RemoteFile.cc:17

Member Data Documentation

dataset.MultipleDatasets.datasets