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 247 of file submitDQMOfflineCAF.py.

References edm.print().

Referenced by Func_ExitBool(), and Func_MagConfig().

247 def Func_Exit():
248  """ Function Func_Exit():
249  Exit after error
250  """
251  print(' exit')
252  print()
253  sys.exit(1)
254 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:65
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 270 of file submitDQMOfflineCAF.py.

References Func_Exit(), and edm.print().

Referenced by Func_MagConfig().

270 def Func_ExitBool(int_index):
271  """ Function Func_ExitBool():
272  Exit after wrong assignment of bool option
273  """
274  print('> submitDQMOfflineCAF.py > option %s expects 0/1, FALSE/TRUE, False/True or false/true' %(DICT_optionLetters.items()[int_index]))
275  Func_Exit()
276 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:65
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 258 of file submitDQMOfflineCAF.py.

References Func_Usage(), and edm.print().

Referenced by Func_MagConfig().

259  """ Function Func_ExitUsage():
260  Exit after wrong invocation of script
261  """
262  print(' exit')
263  print()
264  Func_Usage()
265  sys.exit(1)
266 
def Func_ExitUsage()
Function Func_ExitUsage()
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:65
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 290 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(), edm.print(), python.rootplot.root2matplotlib.replace(), split, and str.

290 def Func_MagConfig(float_magFieldMeasured):
291  """ Func_MagConfig(float_magFieldMeasured):
292  Determine configuration to be used for a given magnetic field
293  """
294  float_magField = 0.0
295  for float_valueMagField in LFLOAT_valueMagField:
296  if math.fabs(float_valueMagField-float_magFieldMeasured) < math.fabs(float_magField-float_magFieldMeasured):
297  float_magField = float_valueMagField
298  return float_magField
299 
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 280 of file submitDQMOfflineCAF.py.

Referenced by Func_MagConfig().

280 def Func_MkDir(str_path):
281  """ Function Func_MkDir():
282  Create new directory
283  """
284  shutil.rmtree(str_path, True)
285  os.mkdir(str_path)
286 
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 238 of file submitDQMOfflineCAF.py.

References edm.print().

Referenced by Func_ExitUsage(), and Func_MagConfig().

239  """ Function Func_Usage():
240  Displays usage of the script
241  """
242  print(STR_textUsage)
243 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:65
def Func_Usage()
Function Func_Usage()