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.LocalDataset Class Reference
Inheritance diagram for dataset.LocalDataset:
dataset.BaseDataset

Public Member Functions

def __init__
 
def buildListOfFiles
 
- Public Member Functions inherited from dataset.BaseDataset
def __init__
 def init(self, name, user, pattern='. More...
 
def buildListOfBadFiles
 
def buildListOfFiles
 
def extractFileSizes
 
def getPrimaryDatasetEntries
 
def listOfFiles
 
def listOfGoodFiles
 
def listOfGoodFilesWithPrescale
 
def printFiles
 
def printInfo
 

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 235 of file dataset.py.

Constructor & Destructor Documentation

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

Definition at line 237 of file dataset.py.

238  def __init__(self, name, basedir, pattern):
239  self.basedir = basedir
240  super(LocalDataset, self).__init__( name, 'LOCAL', pattern)

Member Function Documentation

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

Definition at line 241 of file dataset.py.

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

Member Data Documentation

dataset.LocalDataset.basedir

Definition at line 238 of file dataset.py.

dataset.LocalDataset.dir

Definition at line 244 of file dataset.py.

Referenced by Inspector.Inspector.Loop().

dataset.LocalDataset.files

Definition at line 246 of file dataset.py.