CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, name, basedir, pattern)
 
def buildListOfFiles (self, pattern='.*root')
 
- Public Member Functions inherited from dataset.BaseDataset
def __init__ (self, name, user, pattern='.*root', run_range=None, dbsInstance=None)
 def init(self, name, user, pattern='. More...
 
def buildListOfBadFiles (self)
 
def buildListOfFiles (self, pattern)
 
def extractFileSizes (self)
 
def getPrimaryDatasetEntries (self)
 
def listOfFiles (self)
 
def listOfGoodFiles (self)
 
def listOfGoodFilesWithPrescale (self, prescale)
 
def printFiles (self, abspath=True, info=True)
 
def printInfo (self)
 

Public Attributes

 basedir
 
 dir
 
 files
 
- Public Attributes inherited from dataset.BaseDataset
 bad_files
 
 dbsInstance
 MM. More...
 
 files
 
 filesAndSizes
 
 good_files
 
 name
 
 pattern
 
 primaryDatasetEntries
 MM. More...
 
 report
 
 run_range
 
 user
 

Detailed Description

Definition at line 234 of file dataset.py.

Constructor & Destructor Documentation

def dataset.LocalDataset.__init__ (   self,
  name,
  basedir,
  pattern 
)

Definition at line 236 of file dataset.py.

236  def __init__(self, name, basedir, pattern):
237  self.basedir = basedir
238  super(LocalDataset, self).__init__( name, 'LOCAL', pattern)
239 
def __init__(self, name, basedir, pattern)
Definition: dataset.py:236

Member Function Documentation

def dataset.LocalDataset.buildListOfFiles (   self,
  pattern = '.*root' 
)

Definition at line 240 of file dataset.py.

240  def buildListOfFiles(self, pattern='.*root'):
241  pat = re.compile( pattern )
242  sampleName = self.name.rstrip('/')
243  self.dir = ''.join( [os.path.abspath(self.basedir),
244  sampleName ] )
245  self.files = []
246  for file in sorted(os.listdir( self.dir )):
247  if pat.match( file ) is not None:
248  self.files.append( '/'.join([self.dir, file]) )
249  # print file
250 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def buildListOfFiles(self, pattern='.*root')
Definition: dataset.py:240

Member Data Documentation

dataset.LocalDataset.basedir

Definition at line 237 of file dataset.py.

dataset.LocalDataset.dir

Definition at line 243 of file dataset.py.

Referenced by Inspector.Inspector.Loop().

dataset.LocalDataset.files

Definition at line 245 of file dataset.py.