CMS 3D CMS Logo

Functions | Variables
ValidationOptions_cff Namespace Reference

Functions

def calledBycmsRun ()
 
def checkOptionsForBadInput ()
 Batchmode options. More...
 
def CMSSWEnvironmentIsCurrent ()
 
def returnOptionsString ()
 

Variables

 allowedOptions
 
 options
 
 ReleaseBase
 
 ReleaseVersion
 

Function Documentation

def ValidationOptions_cff.calledBycmsRun ( )
Returns true of this python file is being called via cmsRun 

Definition at line 158 of file ValidationOptions_cff.py.

References spr.find().

159  ''' Returns true of this python file is being called via cmsRun '''
160  if sys.argv[0].find('cmsRun') == -1:
161  return False
162  else:
163  return True
164 
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
def ValidationOptions_cff.checkOptionsForBadInput ( )

Batchmode options.

Definition at line 151 of file ValidationOptions_cff.py.

152  # Sanity check
153  for optionName, allowedValues in six.iteritems(allowedOptions):
154  if not getattr(options, optionName) in allowedValues:
155  print "Bad input to option: %s" % optionName
156  sys.exit()
157 
def checkOptionsForBadInput()
Batchmode options.
def ValidationOptions_cff.CMSSWEnvironmentIsCurrent ( )
Make sure that our CMSSW environment doesn't point ot another release!

Definition at line 165 of file ValidationOptions_cff.py.

166  ''' Make sure that our CMSSW environment doesn't point ot another release!'''
167  if ReleaseBase != os.path.commonprefix([ReleaseBase, os.getcwd()]):
168  return False
169  else:
170  return True
171 
def ValidationOptions_cff.returnOptionsString ( )
format the options to be passed on the command line.  Used when submitting batch jobs

Definition at line 172 of file ValidationOptions_cff.py.

173  ''' format the options to be passed on the command line. Used when submitting batch jobs'''
174  outputString = ""
175  for optionsName, optionValue in six.iteritems(options.__dict__['_singletons']):
176  outputString += " %s=%s" % (optionsName, optionValue)
177 
178  for optionsName, optionValues in six.iteritems(options.__dict__['_lists']):
179  for anOption in optionValues:
180  outputString += " %s=%s" % (optionsName, anOption)
181  return outputString

Variable Documentation

ValidationOptions_cff.allowedOptions

Definition at line 17 of file ValidationOptions_cff.py.

ValidationOptions_cff.options

Definition at line 15 of file ValidationOptions_cff.py.

ValidationOptions_cff.ReleaseBase

Definition at line 5 of file ValidationOptions_cff.py.

ValidationOptions_cff.ReleaseVersion

Definition at line 6 of file ValidationOptions_cff.py.