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 157 of file ValidationOptions_cff.py.

References spr.find().

158  ''' Returns true of this python file is being called via cmsRun '''
159  if sys.argv[0].find('cmsRun') == -1:
160  return False
161  else:
162  return True
163 
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 150 of file ValidationOptions_cff.py.

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

Definition at line 164 of file ValidationOptions_cff.py.

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

Definition at line 171 of file ValidationOptions_cff.py.

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

Variable Documentation

ValidationOptions_cff.allowedOptions

Definition at line 16 of file ValidationOptions_cff.py.

ValidationOptions_cff.options

Definition at line 14 of file ValidationOptions_cff.py.

ValidationOptions_cff.ReleaseBase

Definition at line 4 of file ValidationOptions_cff.py.

ValidationOptions_cff.ReleaseVersion

Definition at line 5 of file ValidationOptions_cff.py.