CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
production_tasks.GenerateMask Class Reference
Inheritance diagram for production_tasks.GenerateMask:
production_tasks.Task

Public Member Functions

def __init__
 
def addOption
 
def run
 
- Public Member Functions inherited from production_tasks.Task
def __init__
 
def addOption
 
def getname
 
def run
 

Additional Inherited Members

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

Detailed Description

Uses edmIntegrityCheck.py to generate a file mask for the sample if one is not already present.

Definition at line 275 of file production_tasks.py.

Constructor & Destructor Documentation

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

Definition at line 277 of file production_tasks.py.

278  def __init__(self, dataset, user, options):
Task.__init__(self,'GenerateMask', dataset, user, options)

Member Function Documentation

def production_tasks.GenerateMask.addOption (   self,
  parser 
)

Definition at line 279 of file production_tasks.py.

280  def addOption(self, parser):
281  parser.add_option("-r", "--recursive", dest="resursive", default=False, action='store_true',help='Walk the mass storage device recursively')
parser.add_option("-p", "--printout", dest="printout", default=False, action='store_true',help='Print a report to stdout')
def production_tasks.GenerateMask.run (   self,
  input 
)

Definition at line 282 of file production_tasks.py.

References CalibratedPatElectronProducer.dataset, production_tasks.Task.dataset, CalibratedElectronProducer.dataset, edmIntegrityCheck.IntegrityCheck.dataset, genericValidation.GenericValidationData.dataset, FileExportPlugin.FileExportPlugin.options, cmsswPreprocessor.CmsswPreprocessor.options, DOTExport.DotProducer.options, confdb.HLTProcess.options, production_tasks.Task.options, edmIntegrityCheck.IntegrityCheck.options, dataset.BaseDataset.user, EcalTPGParamReaderFromDB.user, production_tasks.Task.user, popcon::RpcDataV.user, popcon::RpcObGasData.user, popcon::RPCObPVSSmapData.user, popcon::RpcDataT.user, popcon::RpcDataS.user, popcon::RpcDataFebmap.user, popcon::RpcDataUXC.user, popcon::RpcDataGasMix.user, popcon::RpcDataI.user, MatrixInjector.MatrixInjector.user, EcalDBConnection.user, and conddblib.TimeType.user.

283  def run(self, input):
284 
285  report = None
286  if self.options.check and not input['CheckForMask']['MaskPresent']:
287 
288  options = copy.deepcopy(self.options)
289  options.user = self.user
290 
291  if input.has_key('BaseDataset'):
292  options.name = input['BaseDataset']['Name']
293  else:
294  options.name = None
295 
296  check = IntegrityCheck(self.dataset,options)
297  check.test()
298  report = check.structured()
299  pub = PublishToFileSystem(check)
300  pub.publish(report)
301  elif input['CheckForMask']['MaskPresent']:
302  report = input['CheckForMask']['Report']
303 
304  return {'MaskPresent':report is not None,'Report':report}