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

References spr.find().

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

References edm.print().

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

Definition at line 166 of file ValidationOptions_cff.py.

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

Definition at line 173 of file ValidationOptions_cff.py.

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

Variable Documentation

ValidationOptions_cff.allowedOptions

Definition at line 18 of file ValidationOptions_cff.py.

ValidationOptions_cff.options

Definition at line 16 of file ValidationOptions_cff.py.

ValidationOptions_cff.ReleaseBase

Definition at line 6 of file ValidationOptions_cff.py.

ValidationOptions_cff.ReleaseVersion

Definition at line 7 of file ValidationOptions_cff.py.