ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.CompareJetTestFiles.CompareJetTestFiles Class Reference
Inheritance diagram for python.CompareJetTestFiles.CompareJetTestFiles:
Collaboration diagram for python.CompareJetTestFiles.CompareJetTestFiles:

Public Member Functions

def __init__ (self, argdict={})
 
def run (self)
 

Public Attributes

 refFile
 
 newFile
 

Detailed Description

Definition at line 9 of file CompareJetTestFiles.py.

Constructor & Destructor Documentation

◆ __init__()

def python.CompareJetTestFiles.CompareJetTestFiles.__init__ (   self,
  argdict = {} 
)

Definition at line 10 of file CompareJetTestFiles.py.

10  def __init__(self,argdict={}):
11  testIdentifier = argdict.get('testIdentifierObj')
12  self.refFile = argdict.get('ReferenceFile')
13  self.newFile = argdict.get('NewFile')
14  logFile = argdict.get('LogFile')
15  #cmd = 'CompareJetTestFilesExec.py %s %s' % (self.refFile,self.newFile)
16  #cmd = '/afs/cern.ch/user/s/sschramm/testarea/dev-RTT/InstallArea/python/JetValidation/CompareJetTestFilesExec.py %s %s' % (self.refFile,self.newFile)
17 
18  cmd = os.path.join( JetValidation.__path__[0], "CompareJetTestFilesExec.py") + " %s %s" % (self.refFile,self.newFile)
19  ExeRunnerBase.__init__(self,cmd,testIdentifier,logFile)
20 

Member Function Documentation

◆ run()

def python.CompareJetTestFiles.CompareJetTestFiles.run (   self)

Definition at line 21 of file CompareJetTestFiles.py.

21  def run(self):
22  bad_refFile = not os.path.exists(self.refFile)
23  bad_newFile = not os.path.exists(self.newFile)
24  msg = ''
25  msgTpl = '%s: file does not exist, not running'
26  if bad_refFile:
27  msg += msgTpl % self.refFile
28  if bad_newFile:
29  msg += msgTpl % self.newFile
30 
31  # Should we run this test?
32  if msg: # This will turn up on the results web page for this job
33  tr = TestResult(msg)
34  self.testResults.append(tr)
35  return
36 
37  # all ok - call the worker script.
38  # You are free to call this as many times as you like.
39  # For example, if your worker script was grepping an input file,
40  # and you had many input file matches, you could loop over each file here
41  # in the master script and for each file call ExeRunnerBase.run().
42  # The advantage of this instead of passing the list of files to your worker
43  # is that you would get on your job web page a test result for each input file.
44  ExeRunnerBase.run(self)

Member Data Documentation

◆ newFile

python.CompareJetTestFiles.CompareJetTestFiles.newFile

Definition at line 13 of file CompareJetTestFiles.py.

◆ refFile

python.CompareJetTestFiles.CompareJetTestFiles.refFile

Definition at line 12 of file CompareJetTestFiles.py.


The documentation for this class was generated from the following file:
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18