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

◆ __init__()

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, 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

◆ getfiles()

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 

◆ headercomment()

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 
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

Member Data Documentation

◆ datasets

dataset.MultipleDatasets.datasets