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

◆ __init__()

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 

Member Function Documentation

◆ comparisonOnWebSite()

def valtools.comparison.comparisonOnWebSite (   self,
  website 
)

◆ comparisonUrl()

def valtools.comparison.comparisonUrl (   self,
  website 
)

◆ submit()

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

Definition at line 244 of file valtools.py.

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

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

Member Data Documentation

◆ benchmark_

valtools.comparison.benchmark_

◆ path_

valtools.comparison.path_
indexGenCompare.submit
submit
Definition: indexGenCompare.py:117
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46