CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
edmIntegrityCheck Namespace Reference

Classes

class  IntegrityCheck
 
class  PublishToFileSystem
 

Functions

def callback
 
def work
 

Variables

list d = datasets[0]
 
tuple das = das.DASOptionParser(usage=usage)
 
tuple group = OptionGroup(das.parser,'edmIntegrityCheck Options','Options related to checking files on CASTOR')
 
tuple pool = multiprocessing.Pool(processes=opts.max_threads)
 
tuple pub = PublishToFileSystem('Test')
 
dictionary report = {'DateCreated':'123456','PathList':['/store/cmst3/user/wreece']}
 
string usage
 

Function Documentation

def edmIntegrityCheck.callback (   result)

Definition at line 59 of file edmIntegrityCheck.py.

59 
60  def callback(result):
61  print 'Checking thread done: ',str(result)
def edmIntegrityCheck.work (   d,
  op 
)

Definition at line 38 of file edmIntegrityCheck.py.

Referenced by HcalQie.getCode(), HcalQie.getEnergy(), GroupedCkfTrajectoryBuilder.rebuildTrajectories(), TopologyWorker.setPartList(), and ConfigurationDBHandler.startElement().

38 
39  def work(d,op):
40  tokens = d.split('%')
41  if len(tokens) == 2:
42  op.user = tokens[0]
43  d = tokens[1]
44 
45  check = IntegrityCheck(d,op)
46  pub = PublishToFileSystem(check)
47 
48  previous = None
49  if op.update:
50  previous = pub.get(check.directory)
51 
52  check.test(previous = previous, timeout = op.timeout)
53  if op.printout:
54  check.report()
55  report = check.structured()
56  pub.publish(report)
57 
58  return d

Variable Documentation

list edmIntegrityCheck.d = datasets[0]

Definition at line 65 of file edmIntegrityCheck.py.

tuple edmIntegrityCheck.das = das.DASOptionParser(usage=usage)

Definition at line 16 of file edmIntegrityCheck.py.

tuple edmIntegrityCheck.group = OptionGroup(das.parser,'edmIntegrityCheck Options','Options related to checking files on CASTOR')

Definition at line 17 of file edmIntegrityCheck.py.

tuple edmIntegrityCheck.pool = multiprocessing.Pool(processes=opts.max_threads)

Definition at line 71 of file edmIntegrityCheck.py.

Referenced by FWDialogBuilder.addLabel(), fireworks.boldGC(), CmsShowCommonPopup.CmsShowCommonPopup(), CentralityTableProducer.endJob(), FastTimerService.fillPathMap(), fireworks.italicGC(), and CmsShowMainFrame.showFWorksInfo().

tuple edmIntegrityCheck.pub = PublishToFileSystem('Test')

Definition at line 345 of file edmIntegrityCheck.py.

dictionary edmIntegrityCheck.report = {'DateCreated':'123456','PathList':['/store/cmst3/user/wreece']}

Definition at line 346 of file edmIntegrityCheck.py.

string edmIntegrityCheck.usage
Initial value:
1 = """usage: %prog [options] /Sample/Name/On/Castor
2 
3 e.g.: %prog -u wreece -p -w 'PFAOD_*.root' /MultiJet/Run2011A-05Aug2011-v1/AOD/V2
4  """

Definition at line 12 of file edmIntegrityCheck.py.