test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
datasetToSource Namespace Reference

Functions

def datasetToSource
 
def myDatasetToSource
 MM. More...
 

Function Documentation

def datasetToSource.datasetToSource (   user,
  dataset,
  pattern = '.*root',
  readCache = False 
)

Definition at line 6 of file datasetToSource.py.

References dataset.createDataset().

6 
7 def datasetToSource( user, dataset, pattern='.*root', readCache=False):
8 
9  # print user, dataset, pattern
10  data = createDataset(user, dataset, pattern, readCache)
11 
12  source = cms.Source(
13  "PoolSource",
14  noEventSort = cms.untracked.bool(True),
15  duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
16  fileNames = cms.untracked.vstring()
17  )
18 
19  source.fileNames.extend( data.listOfGoodFiles() )
20 
21  return source
def createDataset
Definition: dataset.py:426
def datasetToSource.myDatasetToSource (   user,
  dataset,
  pattern = '.*root',
  dbsInstance = None,
  readCache = False 
)

MM.

Definition at line 23 of file datasetToSource.py.

References dataset.createMyDataset().

23 
24 def myDatasetToSource( user, dataset, pattern='.*root', dbsInstance=None, readCache=False):
25 
26  #print user, dataset, pattern, dbsInstance
27  data = createMyDataset(user, dataset, pattern, dbsInstance, readCache)
28 
29  source = cms.Source(
30  "PoolSource",
31  noEventSort = cms.untracked.bool(True),
32  duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
33  fileNames = cms.untracked.vstring()
34  )
35 
36  #print data.listOfGoodFiles()
37  source.fileNames.extend( data.listOfGoodFiles() )
38 
return source
def createMyDataset
if user == 'CMS': data = CMSDataset( dataset ) elif user == 'LOCAL': if basedir is None: basedir = os...
Definition: dataset.py:467
def myDatasetToSource
MM.