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 229 of file valtools.py.

Constructor & Destructor Documentation

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

Definition at line 231 of file valtools.py.

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

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 243 of file valtools.py.

References valtools.comparison.comparisonOnWebSite(), valtools.comparison.comparisonUrl(), reco.if(), 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_, and edmplugin::Sentry.path_.

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

Member Data Documentation

valtools.comparison.benchmark_

Definition at line 232 of file valtools.py.

valtools.comparison.path_