CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 60 of file edmIntegrityCheck.py.

References print(), and str.

Referenced by CaloDualConeSelector< T >.selectCallback(), and CaloConeSelector< T >.selectCallback().

60 
61  def callback(result):
62  print('Checking thread done: ',str(result))
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
#define str(s)
def edmIntegrityCheck.work (   d,
  op 
)

Definition at line 39 of file edmIntegrityCheck.py.

Referenced by tmtt::DegradeBend.degrade(), HcalQie.getCode(), HcalQie.getEnergy(), GroupedCkfTrajectoryBuilder.rebuildTrajectories(), and ConfigurationDBHandler.startElement().

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

Variable Documentation

list edmIntegrityCheck.d = datasets[0]

Definition at line 66 of file edmIntegrityCheck.py.

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

Definition at line 17 of file edmIntegrityCheck.py.

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

Definition at line 18 of file edmIntegrityCheck.py.

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

Definition at line 72 of file edmIntegrityCheck.py.

tuple edmIntegrityCheck.pub = PublishToFileSystem('Test')

Definition at line 347 of file edmIntegrityCheck.py.

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

Definition at line 348 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 13 of file edmIntegrityCheck.py.