CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
additionalparser.AdditionalData Class Reference

Public Member Functions

def __init__
 
def parse
 

Public Attributes

 iov_definition
 
 pede_steerer_command
 
 pede_steerer_method
 
 pede_steerer_options
 
 selectors
 

Detailed Description

stores the additional information of the alignment_merge.py file

Definition at line 9 of file additionalparser.py.

Constructor & Destructor Documentation

def additionalparser.AdditionalData.__init__ (   self)

Member Function Documentation

def additionalparser.AdditionalData.parse (   self,
  config,
  path 
)

Definition at line 22 of file additionalparser.py.

References additionalparser.AdditionalData.iov_definition, additionalparser.AdditionalData.pede_steerer_command, additionalparser.AdditionalData.pede_steerer_method, additionalparser.AdditionalData.pede_steerer_options, additionalparser.AdditionalData.selectors, and digitizers_cfi.strip.

22 
23  def parse(self, config, path):
24  logger = logging.getLogger("mpsvalidate")
25 
26  # extract process object from aligment_merge.py file
27  try:
28  process = mps_tools.get_process_object(path)
29  except ImportError:
30  logger.error("AdditionalData: {0} does not exist".format(path))
31  return
32 
33  # find alignable selectors
34  param_builder = process.AlignmentProducer.ParameterBuilder
35  for index,sel in enumerate(param_builder.parameterTypes):
36  selector_name = sel.split(",")[0].strip()
37  self.selectors[index] = {
38  "name": selector_name,
39  "selector": getattr(param_builder, selector_name),
40  }
41 
42  # find IOV definition
43  if len(process.AlignmentProducer.RunRangeSelection) > 0:
44  self.iov_definition = \
45  process.AlignmentProducer.RunRangeSelection.dumpPython()
46 
47  # find pede steerer configuration
48  pede_steerer = process.AlignmentProducer.algoConfig.pedeSteerer
49  self.pede_steerer_method = pede_steerer.method.value()
50  self.pede_steerer_options = pede_steerer.options.value()
51  self.pede_steerer_command = pede_steerer.pedeCommand.value()

Member Data Documentation

additionalparser.AdditionalData.iov_definition

Definition at line 19 of file additionalparser.py.

Referenced by additionalparser.AdditionalData.parse().

additionalparser.AdditionalData.pede_steerer_command

Definition at line 16 of file additionalparser.py.

Referenced by additionalparser.AdditionalData.parse().

additionalparser.AdditionalData.pede_steerer_method

Definition at line 14 of file additionalparser.py.

Referenced by additionalparser.AdditionalData.parse().

additionalparser.AdditionalData.pede_steerer_options

Definition at line 15 of file additionalparser.py.

Referenced by additionalparser.AdditionalData.parse().

additionalparser.AdditionalData.selectors

Definition at line 18 of file additionalparser.py.

Referenced by additionalparser.AdditionalData.parse().