CMS 3D CMS Logo

Functions | Variables
ValidationOptions_cff Namespace Reference

Functions

def calledBycmsRun ()
 
def checkOptionsForBadInput ()
 
def CMSSWEnvironmentIsCurrent ()
 
def returnOptionsString ()
 

Variables

 allowedOptions
 
 options
 
 ReleaseBase
 
 ReleaseVersion
 

Function Documentation

◆ calledBycmsRun()

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

Definition at line 158 of file ValidationOptions_cff.py.

158 def calledBycmsRun():
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 

References spr.find().

◆ checkOptionsForBadInput()

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 

References edm.print().

◆ CMSSWEnvironmentIsCurrent()

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 

◆ returnOptionsString()

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.

172 def returnOptionsString():
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

◆ allowedOptions

ValidationOptions_cff.allowedOptions

Definition at line 18 of file ValidationOptions_cff.py.

◆ options

ValidationOptions_cff.options

Definition at line 16 of file ValidationOptions_cff.py.

◆ ReleaseBase

ValidationOptions_cff.ReleaseBase

Definition at line 6 of file ValidationOptions_cff.py.

◆ ReleaseVersion

ValidationOptions_cff.ReleaseVersion

Definition at line 7 of file ValidationOptions_cff.py.

ValidationOptions_cff.checkOptionsForBadInput
def checkOptionsForBadInput()
Definition: ValidationOptions_cff.py:151
ValidationOptions_cff.calledBycmsRun
def calledBycmsRun()
Definition: ValidationOptions_cff.py:158
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
edm::print
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
ValidationOptions_cff.returnOptionsString
def returnOptionsString()
Definition: ValidationOptions_cff.py:172
ValidationOptions_cff.CMSSWEnvironmentIsCurrent
def CMSSWEnvironmentIsCurrent()
Definition: ValidationOptions_cff.py:165