CMS 3D CMS Logo

Classes | Functions
SpecificationBuilder_cfi Namespace Reference

Classes

class  Specification
 

Functions

def parent (path)
 
def val (maybecms)
 

Function Documentation

def SpecificationBuilder_cfi.parent (   path)

Definition at line 38 of file SpecificationBuilder_cfi.py.

References join(), split, and val().

38 def parent(path):
39  parts = val(path).split("/")
40  return "/".join(parts[0:len(parts)-1])
41 
42 # do not change values here, Pass in a PSet instead
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
double split
Definition: MVATrainer.cc:139
def SpecificationBuilder_cfi.val (   maybecms)

Definition at line 32 of file SpecificationBuilder_cfi.py.

Referenced by SpecificationBuilder_cfi.Specification.groupBy(), and parent().

32 def val(maybecms):
33  if hasattr(maybecms, "value"):
34  return maybecms.value()
35  else:
36  return maybecms
37