CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
additionalparser.AdditionalData Class Reference

Public Member Functions

def __init__ (self)
 
def parse (self, config, path)
 

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