CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
valtools.comparison Class Reference

Public Member Functions

def __init__ (self, benchmark, comparisonPath)
 
def comparisonOnWebSite (self, website)
 
def comparisonUrl (self, website)
 
def submit (self, website, force=False)
 

Public Attributes

 benchmark_
 
 path_
 

Detailed Description

Definition at line 230 of file valtools.py.

Constructor & Destructor Documentation

def valtools.comparison.__init__ (   self,
  benchmark,
  comparisonPath 
)

Definition at line 232 of file valtools.py.

232  def __init__(self, benchmark, comparisonPath):
233  self.benchmark_ = benchmark
234  self.path_ = comparisonPath
235 
def __init__(self, benchmark, comparisonPath)
Definition: valtools.py:232

Member Function Documentation

def valtools.comparison.comparisonOnWebSite (   self,
  website 
)
def valtools.comparison.comparisonUrl (   self,
  website 
)
def valtools.comparison.submit (   self,
  website,
  force = False 
)

Definition at line 244 of file valtools.py.

References valtools.comparison.comparisonOnWebSite(), valtools.comparison.comparisonUrl(), pos::PixelVersionAlias.path_, dqm::DQMFileSaverBase::FileParameters.path_, trigger::TriggerFilterObjectWithRefs.path_, edmplugin::SharedLibrary.path_, HLTInclusiveVBFSource.path_, MP7FileReader.path_, SteppingHelixStateInfo.path_, TFileDirectory.path_, SiStripKey.path_, ecaldqm::MESet.path_, edm::messagedrop::StringProducerPath.path_, SiStripDbParams.path_, valtools.comparison.path_, edmplugin::Sentry.path_, and edm.print().

244  def submit(self, website, force=False):
245  print('Submitting comparison:')
246  print(' from: ',self.path_)
247  print(' to : ',self.comparisonOnWebSite(website))
248 
249  if( os.path.isdir(self.comparisonOnWebSite(website) ) ):
250  print('comparison already exists')
251  if force:
252  print('overwriting comparison on the website...')
253  else:
254  print('submission cancelled. run with -h for a solution.')
255  return False
256  else:
257  print('comparison directory does not yet exist. creating it.')
258  mkdir = 'mkdir -p ' + self.comparisonOnWebSite(website)
259  print(mkdir)
260  if os.system( mkdir ):
261  print('problem creating the output directory on the website. Aborting.')
262  return False
263  cp = 'cp %s %s' % (self.path_ + '/*',
264  self.comparisonOnWebSite(website))
265  if os.system(cp):
266  print('problem copying the files to the website aborting')
267  return False
268 
269  print('access your comparison here:')
270  print(' ', self.comparisonUrl(website))
271 
272 
273 
274 # pathname in the form: CMSSW_3_1_0_pre7/TauBenchmarkGeneric_Extension
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def comparisonOnWebSite(self, website)
Definition: valtools.py:236
def comparisonUrl(self, website)
Definition: valtools.py:240
def submit(self, website, force=False)
Definition: valtools.py:244

Member Data Documentation

valtools.comparison.benchmark_

Definition at line 233 of file valtools.py.

valtools.comparison.path_