CMS 3D CMS Logo

List of all members | Public Member Functions
production_tasks.CheckDatasetExists Class Reference
Inheritance diagram for production_tasks.CheckDatasetExists:
production_tasks.Task

Public Member Functions

def __init__ (self, dataset, user, options)
 
def run (self, input)
 
- Public Member Functions inherited from production_tasks.Task
def __init__ (self, name, dataset, user, options, instance=None)
 
def addOption (self, parser)
 
def getname (self)
 
def run (self, input)
 

Additional Inherited Members

- Public Attributes inherited from production_tasks.Task
 dataset
 
 instance
 
 name
 
 options
 
 user
 

Detailed Description

Use 'datasets.py' to check that the dataset exists in the production system.

Definition at line 101 of file production_tasks.py.

Constructor & Destructor Documentation

def production_tasks.CheckDatasetExists.__init__ (   self,
  dataset,
  user,
  options 
)

Definition at line 104 of file production_tasks.py.

104  def __init__(self, dataset, user, options):
105  Task.__init__(self,'CheckDatasetExists', dataset, user, options)
def __init__(self, dataset, user, options)

Member Function Documentation

def production_tasks.CheckDatasetExists.run (   self,
  input 
)

Definition at line 106 of file production_tasks.py.

References dataset.createDataset(), production_tasks.Task.dataset, edmIntegrityCheck.IntegrityCheck.dataset, genericValidation.GenericValidationData.dataset, EcalTPGParamReaderFromDB.user, dataset.BaseDataset.user, production_tasks.Task.user, popcon::RPCObPVSSmapData.user, popcon::RpcDataV.user, popcon::RpcDataT.user, popcon::RpcObGasData.user, popcon::RpcDataGasMix.user, popcon::RpcDataI.user, popcon::RpcDataS.user, popcon::RpcDataUXC.user, popcon::RpcDataFebmap.user, MatrixInjector.MatrixInjector.user, and EcalDBConnection.user.

106  def run(self, input):
107  pattern = fnmatch.translate(self.options.wildcard)
108  run_range = (self.options.min_run, self.options.max_run)
109  data = createDataset(self.user, self.dataset, pattern, run_range = run_range)
110  if( len(data.listOfGoodFiles()) == 0 ):
111  raise Exception('no good root file in dataset %s | %s | %s | %s' % (self.user,
112  self.dataset,
113  self.options.wildcard,
114  run_range))
115  return {'Dataset':self.dataset}
116 
def createDataset(user, dataset, pattern, readcache=False, basedir=None, run_range=None)
Definition: dataset.py:430