CMS 3D CMS Logo

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__ (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

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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 255 of file dataset.py.

255  def __init__(self, name, basedir, pattern):
256  self.castorDir = '/'.join([basedir, name])
257  if not castortools.isEOSDir(self.castorDir):
258  raise ValueError('directory should be a directory on EOS.')
259  super(EOSDataset, self).__init__( name, 'EOS', pattern)
260 
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)
static std::string join(char **cmd)
Definition: RemoteFile.cc:21

Member Function Documentation

◆ buildListOfFiles()

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

Definition at line 261 of file dataset.py.

261  def buildListOfFiles(self, pattern='.*root'):
262  self.files = castortools.matchingFiles( self.castorDir, pattern )
263 
264 

Member Data Documentation

◆ castorDir

dataset.EOSDataset.castorDir

Definition at line 256 of file dataset.py.

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

◆ files

dataset.EOSDataset.files

Definition at line 262 of file dataset.py.