CMS 3D CMS Logo

Functions
submitDQMOfflineCAF Namespace Reference

Functions

def Func_Exit ()
 Function Func_Exit() More...
 
def Func_ExitBool (int_index)
 Function Func_ExitBool() More...
 
def Func_ExitUsage ()
 Function Func_ExitUsage() More...
 
def Func_MagConfig (float_magFieldMeasured)
 Function Func_MagConfig(float_magFieldMeasured) More...
 
def Func_MkDir (str_path)
 Function Func_MkDir() More...
 
def Func_Usage ()
 Function Func_Usage() More...
 

Function Documentation

def submitDQMOfflineCAF.Func_Exit ( )

Function Func_Exit()

Exit after error

Function Func_Exit():
Exit after error

Definition at line 246 of file submitDQMOfflineCAF.py.

Referenced by Func_ExitBool(), and Func_MagConfig().

246 def Func_Exit():
247  """ Function Func_Exit():
248  Exit after error
249  """
250  print ' exit'
251  print
252  sys.exit(1)
253 
def Func_Exit()
Function Func_Exit()
def submitDQMOfflineCAF.Func_ExitBool (   int_index)

Function Func_ExitBool()

Exit after wrong assignment of bool option

Function Func_ExitBool():
Exit after wrong assignment of bool option

Definition at line 269 of file submitDQMOfflineCAF.py.

References Func_Exit().

Referenced by Func_MagConfig().

269 def Func_ExitBool(int_index):
270  """ Function Func_ExitBool():
271  Exit after wrong assignment of bool option
272  """
273  print '> submitDQMOfflineCAF.py > option %s expects 0/1, FALSE/TRUE, False/True or false/true' %(DICT_optionLetters.items()[int_index])
274  Func_Exit()
275 
def Func_Exit()
Function Func_Exit()
def Func_ExitBool(int_index)
Function Func_ExitBool()
def submitDQMOfflineCAF.Func_ExitUsage ( )

Function Func_ExitUsage()

Exit after wrong invocation of script

Function Func_ExitUsage():
Exit after wrong invocation of script

Definition at line 257 of file submitDQMOfflineCAF.py.

References Func_Usage().

Referenced by Func_MagConfig().

258  """ Function Func_ExitUsage():
259  Exit after wrong invocation of script
260  """
261  print ' exit'
262  print
263  Func_Usage()
264  sys.exit(1)
265 
def Func_ExitUsage()
Function Func_ExitUsage()
def Func_Usage()
Function Func_Usage()
def submitDQMOfflineCAF.Func_MagConfig (   float_magFieldMeasured)

Function Func_MagConfig(float_magFieldMeasured)

Determine configuration to be used for a given magnetic field

Func_MagConfig(float_magFieldMeasured):
Determine configuration to be used for a given magnetic field

Definition at line 289 of file submitDQMOfflineCAF.py.

References FrontierConditions_GlobalTag_cff.file, objects.autophobj.float, Func_Exit(), Func_ExitBool(), Func_ExitUsage(), Func_MkDir(), Func_Usage(), createfilelist.int, join(), min(), python.rootplot.root2matplotlib.replace(), split, and str.

289 def Func_MagConfig(float_magFieldMeasured):
290  """ Func_MagConfig(float_magFieldMeasured):
291  Determine configuration to be used for a given magnetic field
292  """
293  float_magField = 0.0
294  for float_valueMagField in LFLOAT_valueMagField:
295  if math.fabs(float_valueMagField-float_magFieldMeasured) < math.fabs(float_magField-float_magFieldMeasured):
296  float_magField = float_valueMagField
297  return float_magField
298 
def Func_MagConfig(float_magFieldMeasured)
Function Func_MagConfig(float_magFieldMeasured)
def submitDQMOfflineCAF.Func_MkDir (   str_path)

Function Func_MkDir()

Create new directory

Function Func_MkDir():
Create new directory

Definition at line 279 of file submitDQMOfflineCAF.py.

Referenced by Func_MagConfig().

279 def Func_MkDir(str_path):
280  """ Function Func_MkDir():
281  Create new directory
282  """
283  shutil.rmtree(str_path, True)
284  os.mkdir(str_path)
285 
def Func_MkDir(str_path)
Function Func_MkDir()
def submitDQMOfflineCAF.Func_Usage ( )

Function Func_Usage()

Displays usage of the script

Function Func_Usage():
Displays usage of the script

Definition at line 237 of file submitDQMOfflineCAF.py.

Referenced by Func_ExitUsage(), and Func_MagConfig().

238  """ Function Func_Usage():
239  Displays usage of the script
240  """
241  print STR_textUsage
242 
def Func_Usage()
Function Func_Usage()