test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
dataset.EOSDataset Class Reference
Inheritance diagram for dataset.EOSDataset:
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

 castorDir
 
 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

A dataset located in any given eos directory

Definition at line 249 of file dataset.py.

Constructor & Destructor Documentation

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

Definition at line 252 of file dataset.py.

253  def __init__(self, name, basedir, pattern):
254  self.castorDir = '/'.join([basedir, name])
255  if not castortools.isEOSDir(self.castorDir):
256  raise ValueError('directory should be a directory on EOS.')
257  super(EOSDataset, self).__init__( name, 'EOS', pattern)
static std::string join(char **cmd)
Definition: RemoteFile.cc:18

Member Function Documentation

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

Definition at line 258 of file dataset.py.

259  def buildListOfFiles(self, pattern='.*root'):
260  self.files = castortools.matchingFiles( self.castorDir, pattern )
261 

Member Data Documentation

dataset.EOSDataset.castorDir

Definition at line 253 of file dataset.py.

Referenced by dataset.Dataset.extractFileSizes(), and dataset.Dataset.printInfo().

dataset.EOSDataset.files

Definition at line 259 of file dataset.py.