CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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__
 
def getfiles
 
def headercomment
 
- Public Member Functions inherited from dataset.DatasetBase
def getfiles
 
def headercomment
 
def writefilelist_hippy
 
def writefilelist_validation
 

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.

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

Member Function Documentation

def dataset.MultipleDatasets.getfiles (   self,
  usecache 
)

Definition at line 261 of file dataset.py.

References dataset.MultipleDatasets.datasets.

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

Definition at line 265 of file dataset.py.

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

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

Member Data Documentation

dataset.MultipleDatasets.datasets

Definition at line 258 of file dataset.py.

Referenced by dataset.MultipleDatasets.getfiles(), and dataset.MultipleDatasets.headercomment().