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

◆ calledBycmsRun()

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

Definition at line 157 of file ValidationOptions_cff.py.

References spr.find().

157 def calledBycmsRun():
158  ''' Returns true of this python3 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:19

◆ checkOptionsForBadInput()

def ValidationOptions_cff.checkOptionsForBadInput ( )

Batchmode options.

Definition at line 150 of file ValidationOptions_cff.py.

References print().

151  # Sanity check
152  for optionName, allowedValues in allowedOptions.items():
153  if not getattr(options, optionName) in allowedValues:
154  print("Bad input to option: %s" % optionName)
155  sys.exit()
156 
def checkOptionsForBadInput()
Batchmode options.
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ CMSSWEnvironmentIsCurrent()

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 

◆ returnOptionsString()

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.

References mps_monitormerge.items.

171 def returnOptionsString():
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'].items():
175  outputString += " %s=%s" % (optionsName, optionValue)
176 
177  for optionsName, optionValues in options.__dict__['_lists'].items():
178  for anOption in optionValues:
179  outputString += " %s=%s" % (optionsName, anOption)
180  return outputString

Variable Documentation

◆ allowedOptions

ValidationOptions_cff.allowedOptions

Definition at line 17 of file ValidationOptions_cff.py.

◆ options

ValidationOptions_cff.options

Definition at line 15 of file ValidationOptions_cff.py.

◆ ReleaseBase

ValidationOptions_cff.ReleaseBase

Definition at line 5 of file ValidationOptions_cff.py.

◆ ReleaseVersion

ValidationOptions_cff.ReleaseVersion

Definition at line 6 of file ValidationOptions_cff.py.