CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor Class Reference
Inheritance diagram for Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor:
Vispa.Share.BasicDataAccessor.BasicDataAccessor Vispa.Share.RelativeDataAccessor.RelativeDataAccessor

Public Member Functions

def __init__ (self)
 
def applyCommands (self, content, outputCommands)
 
def cancelOperations (self)
 
def children (self, object)
 
def classname (self, object)
 
def configFile (self)
 
def connections (self)
 
def daughterRelations (self, object)
 
def dumpPython (self)
 
def filename (self, object)
 
def foundIn (self, object)
 
def fullFilename (self, object)
 
def history (self)
 
def inputCommands (self)
 
def inputEventContent (self)
 
def inputTags (self, object)
 
def isContainer (self, object)
 
def isReplaceConfig (self)
 
def label (self, object)
 
def lineNumber (self, object)
 
def motherRelations (self, object)
 
def nonSequenceChildren (self, object)
 
def open (self, filename=None)
 
def outputCommands (self)
 
def outputEventContent (self)
 
def package (self, object)
 
def parameters (self, object)
 
def process (self)
 
def properties (self, object)
 
def pypackage (self, object)
 
def pypath (self, object)
 
def readConnections (self, objects, toNeighbors=False)
 
def recursePSetProperties (self, name, object, readonly=None)
 
def setIsReplaceConfig (self)
 
def setProcess (self, process)
 
def setProperty (self, object, name, value, categoryName)
 
def topLevelObjects (self)
 
def type (self, object)
 
def usedBy (self, object)
 
def uses (self, object)
 
- Public Member Functions inherited from Vispa.Share.BasicDataAccessor.BasicDataAccessor
def addProperty (self, object, name, value, type)
 
def allChildren (self, object)
 
def children (self, object)
 
def isContainer (self, object)
 
def label (self, object)
 
def properties (self, object)
 
def property (self, object, name)
 
def propertyValue (self, object, name)
 
def removeProperty (self, object, name)
 
def setProperty (self, object, name, value, categoryName)
 
def topLevelObjects (self)
 
- Public Member Functions inherited from Vispa.Share.RelativeDataAccessor.RelativeDataAccessor
def allDaughterRelations (self, object, list=None)
 
def allMotherRelations (self, object, list=None)
 
def daughterRelations (self, object)
 
def hasRelations (self, object)
 
def motherRelations (self, object)
 

Private Member Functions

def _addInputTag (self, value, this_key, this_inputtags)
 
def _initLists (self)
 
def _readHeaderInfo (self)
 
def _readInputTagsRecursive (self, this_parameters, start_key="")
 
def _readRecursive (self, mother, pth)
 
def _scheduleRecursive (self, object)
 
def _sort_list (self, l)
 

Private Attributes

 _allObjects
 
 _cancelOperationsFlag
 
 _connections
 
 _daughterRelationsDict
 
 _file
 
 _filename
 
 _foundInDict
 
 _history
 
 _inputTagsDict
 
 _isReplaceConfig
 
 _motherRelationsDict
 
 _scheduledObjects
 
 _topLevelObjects
 
 _usedByDict
 
 _usesDict
 

Detailed Description

Definition at line 37 of file ConfigDataAccessor.py.

Constructor & Destructor Documentation

def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.__init__ (   self)

Member Function Documentation

def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._addInputTag (   self,
  value,
  this_key,
  this_inputtags 
)
private
Add alls inputtags of value to a list 

Definition at line 461 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._addInputTag(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._readInputTagsRecursive(), mps_monitormerge.items, and str.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._addInputTag(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._readInputTagsRecursive().

461  def _addInputTag(self, value, this_key, this_inputtags):
462  """ Add alls inputtags of value to a list """
463  if isinstance(value, cms.VInputTag):
464  for i in range(len(value)):
465  if isinstance(value[i], str):
466  self._addInputTag(cms.InputTag(value[i]), this_key+"["+str(i)+"]", this_inputtags)
467  else:
468  self._addInputTag(value[i], this_key+"["+str(i)+"]", this_inputtags)
469  elif isinstance(value, list):
470  for i in value:
471  self._addInputTag(i, this_key, this_inputtags)
472  if hasattr(value, "parameters_"):
473  this_inputtags += self._readInputTagsRecursive(value.parameters_().items(), this_key)
474  if isinstance(value, cms.InputTag):
475  pythonValue = value.value()
476  this_inputtags += [(str(this_key), value.value())]
477 
def _readInputTagsRecursive(self, this_parameters, start_key="")
#define str(s)
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._initLists (   self)
private

Definition at line 48 of file ConfigDataAccessor.py.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.open(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProcess().

48  def _initLists(self):
49  self._allObjects = []
51  self._connections = {}
52  self._topLevelObjects = []
53  self._inputTagsDict = {}
54  self._foundInDict = {}
55  self._usesDict = {}
56  self._usedByDict = {}
59 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._readHeaderInfo (   self)
private

Definition at line 281 of file ConfigDataAccessor.py.

References Vispa.Main.TabController.TabController._filename, DQMIO2histo.DQMIO._filename, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._filename, MuonGeometryArrange._filename, TrackerGeometryCompare._filename, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._isReplaceConfig, and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.open().

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.open().

281  def _readHeaderInfo(self):
282  theFile = open(self._filename)
283  foundHeaderPart1 = False
284  foundHeaderPart2 = False
285  lines = 10
286  search_paths=[os.path.abspath(os.path.dirname(self._filename))]
287  while theFile and not (foundHeaderPart1 and foundHeaderPart2) and lines > 0:
288  line = theFile.readline()
289  lines -= 1
290  if "Generated by ConfigEditor" in line:
291  foundHeaderPart1 = True
292  splitline = line.split("'")
293  if foundHeaderPart1 and len(splitline) == 5 and splitline[0] == "sys.path.append(os.path.abspath(os.path.expandvars(os.path.join(" and splitline[4] == "))))\n":
294  search_paths+=[os.path.abspath(os.path.expandvars(os.path.join(splitline[1],splitline[3])))]
295  splitline = line.split()
296  if foundHeaderPart1 and len(splitline) == 4 and splitline[0] == "from" and splitline[2] == "import":
297  for search_path in search_paths:
298  if os.path.exists(os.path.join(search_path,splitline[1]+".py")):
299  self._filename = os.path.join(search_path,splitline[1]+".py")
300  break
301  self._isReplaceConfig = True
302  foundHeaderPart2 = True
303  theFile.close()
304 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._readInputTagsRecursive (   self,
  this_parameters,
  start_key = "" 
)
private
Make list of inputtags from parameter dict 

Definition at line 478 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._addInputTag().

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._addInputTag(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.inputTags().

478  def _readInputTagsRecursive(self, this_parameters, start_key=""):
479  """ Make list of inputtags from parameter dict """
480  this_inputtags = []
481  for key, value in this_parameters:
482  this_key = start_key
483  if this_key != "":
484  this_key += "."
485  this_key += key
486  self._addInputTag(value, this_key, this_inputtags)
487  return this_inputtags
488 
def _readInputTagsRecursive(self, this_parameters, start_key="")
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._readRecursive (   self,
  mother,
  pth 
)
private
Read cms objects recursively from path 

Definition at line 72 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._allObjects, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._readRecursive(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._topLevelObjects, and dir.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._readRecursive(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.open(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProcess().

72  def _readRecursive(self, mother, pth):
73  """ Read cms objects recursively from path """
74  entry = None
75  if isinstance(pth, (cms.Path, cms.EndPath, cms.Sequence, cms.SequencePlaceholder, cms.Source, mod._Module, cms.Service, cms.ESSource, cms.ESProducer, cms.ESPrefer, cms.PSet, cms.VPSet)):
76  entry = pth
77  entry._configChildren=[]
78  self._allObjects += [pth]
79  if mother != None:
80  if not pth in mother._configChildren:
81  mother._configChildren += [pth]
82  else:
83  self._topLevelObjects += [pth]
84  next_mother = entry
85  if entry == None:
86  next_mother = mother
87  if isinstance(pth, list):
88  for i in pth:
89  self._readRecursive(next_mother, i)
90  if hasattr(sqt,"_SequenceCollection"):
91  # since CMSSW_3_11_X
92  if isinstance(pth, (sqt._ModuleSequenceType)):
93  if isinstance(pth._seq, (sqt._SequenceCollection)):
94  for o in pth._seq._collection:
95  self._readRecursive(next_mother, o)
96  else:
97  self._readRecursive(next_mother, pth._seq)
98  elif isinstance(pth, sqt._UnarySequenceOperator):
99  self._readRecursive(next_mother, pth._operand)
100  else:
101  # for backwards-compatibility with CMSSW_3_10_X
102  for i in dir(pth):
103  o = getattr(pth, i)
104  if isinstance(o, sqt._Sequenceable):
105  self._readRecursive(next_mother, o)
106 
dbl *** dir
Definition: mlp_gen.cc:35
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._scheduleRecursive (   self,
  object 
)
private

Definition at line 217 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._scheduledObjects, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._scheduleRecursive(), data_sources.node.children(), geometry.Structure.children, Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.isContainer(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.motherRelations().

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._scheduleRecursive(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProcess().

217  def _scheduleRecursive(self,object):
218  if object in self._scheduledObjects:
219  return
220  if self.isContainer(object):
221  for obj in reversed(self.children(object)):
222  self._scheduleRecursive(obj)
223  else:
224  self._scheduledObjects+=[object]
225  for used in self.motherRelations(object):
226  self._scheduleRecursive(used)
227 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._sort_list (   self,
  l 
)
private

Definition at line 151 of file ConfigDataAccessor.py.

References python.readProv.filereader.Module.label, reco::tau::entry.label, core.AutoHandle.AutoHandle.label, L1TriggerKeyExtViewer.label, SubDetParams.label, reco::Centrality.label(), ElectronLikelihoodCategoryData.label, cond::BoostVersion.label(), entry< T >.label, classes.PlotData.label, SiPixelFedFillerWordEventNumber.label, GenericMVAComputerCache::IndividualComputer.label, l1t::L1GtBoardTypeStringToEnum.label, TtEvent::HypoClassKeyStringToEnum.label, HcalLutSet.label, L1GtBoardTypeStringToEnum.label, ConverterTester.label, TrackCandidateTopBottomHitFilter.label, l1t::L1TGtObjectStringToEnum.label, L1GtObjectStringToEnum.label, TaggingVariablePlotter::VariableConfig.label, SiPixelRawToDigi.label, HGCalValidator.label, muon::SelectionTypeStringToEnum.label, SiPixelQualityESProducer.label, HLTVertexPerformanceAnalyzer.label, hltPlot.label, FWPSetTableManager::PSetData.label, GlobalDigisHistogrammer.label, MillePedeVariables.label(), MultiTrackValidator.label, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.label, MuonSimHitsValidAnalyzer.label, PrimaryVertexProducer::algo.label, GlobalRecHitsHistogrammer.label, L1GtPsbQuadStringToEnum.label, PhysicsTools::MVAModuleHelper< Record, Object, Filler >.label, python.rootplot.utilities.Hist2D.label, TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscInfo.label, cond::DataProxyWrapperBase.label(), l1t::GtConditionTypeStringToEnum.label, GlobalHitsTester.label, pat::TriggerFilter.label(), DependencyGraph::node.label, GlobalHitsHistogrammer.label, MatrixInjector.MatrixInjector.label, PrimaryVertexProducerAlgorithm::algo.label, ValidationMisalignedTracker.label, GlobalHitsAnalyzer.label, TrackerHitProducer.label, HLTBTagPerformanceAnalyzer.label, l1t::GtConditionCategoryStringToEnum.label, GlobalHitsProducer.label, DTDigiReader.label, MatrixUtil.InputInfo.label, hitfit::FE_Obj.label, L1GtConditionTypeStringToEnum.label, python.rootplot.utilities.Hist.label, cond::payloadInspector::ModuleVersion.label, EcalSimHitsValidProducer.label, GlobalDigisProducer.label, FWColorSelect.label(), GlobalDigisAnalyzer.label, L1GtConditionCategoryStringToEnum.label, TkAlStyle.label(), GlobalRecHitsAnalyzer.label, GlobalRecHitsProducer.label, MuonTrackValidatorBase.label, Vispa.Gui.FindDialog.FindDialog.label(), FastTimerService::GroupOfModules.label, ScaleVarWeight.label, edm::TrieNodeIter< T >.label(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.label(), and JsonOutputProducer::JsonVars.label.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProcess().

151  def _sort_list(self, l):
152  result = l[:]
153  result.sort(lambda x, y: cmp(self.label(x).lower(), self.label(y).lower()))
154  return result
155 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.applyCommands (   self,
  content,
  outputCommands 
)

Definition at line 701 of file ConfigDataAccessor.py.

Referenced by Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor.addConfig(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProcess().

701  def applyCommands(self, content, outputCommands):
702  keep = {}
703  if len(outputCommands)>0 and outputCommands[0]!="keep *":
704  for object in content:
705  keep[object] = False
706  else:
707  for object in content:
708  keep[object] = True
709  for o in outputCommands:
710  #skip multiple spaces
711  command, filter = [ x for x in o.split(" ") if x]
712  if len(filter.split("_")) > 1:
713  module = filter.split("_")[1]
714  product = filter.split("_")[2]
715  process = filter.split("_")[3]
716  else:
717  module = filter
718  product = "*"
719  process = "*"
720  for object in content:
721  if "*" in module:
722  match = module.strip("*") in object[1]
723  else:
724  match = module == object[1]
725  if "*" in product:
726  match = match and product.strip("*") in object[2]
727  else:
728  match = match and product == object[2]
729  if "*" in process:
730  match = match and process.strip("*") in object[3]
731  else:
732  match = match and process == object[3]
733  if match:
734  keep[object] = command == "keep"
735  return [object for object in content if keep[object]]
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.cancelOperations (   self)
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children (   self,
  object 
)
Get children of an object 

Definition at line 338 of file ConfigDataAccessor.py.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._scheduleRecursive(), Vispa.Share.BasicDataAccessor.BasicDataAccessor.allChildren(), Vispa.Views.LineDecayView.LineDecayView.autolayout(), Vispa.Views.BoxDecayView.BoxDecayContainer.autolayoutAlgorithm(), Vispa.Gui.WidgetContainer.WidgetContainer.autolayoutChildren(), Vispa.Gui.WidgetContainer.WidgetContainer.autosize(), Vispa.Views.LineDecayView.LineDecayContainer.childContainer(), Vispa.Views.WidgetView.WidgetView.clear(), Vispa.Views.LineDecayView.LineDecayContainer.createDecayObjectsFromPxlObject(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.deleteSelectedConnections(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.deselectAllWidgets(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.foundIn(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.getWidgetByName(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.hideMenuWidgets(), Vispa.Views.LineDecayView.LineDecayView.lineDecayContainer(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.mouseReleaseEvent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.nonSequenceChildren(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.portConnection(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.propagateEventUnderConnectionWidget(), Vispa.Views.LineDecayView.LineDecayContainer.scheduleUpdateVisibleList(), Vispa.Views.LineDecayView.LineDecayView.scrollBarValueChanged(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.selectedWidgets(), Vispa.Views.LineDecayView.LineDecayContainer.setAcceptDrops(), Vispa.Gui.VispaWidget.VispaWidget.setDragable(), Vispa.Views.LineDecayView.LineDecayView.setEditable(), Vispa.Gui.ZoomableWidget.ZoomableWidget.setZoom(), Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.updateConnections(), and Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.widgetDragged().

338  def children(self, object):
339  """ Get children of an object """
340  if hasattr(object, "_configChildren"):
341  return tuple(object._configChildren)
342  else:
343  return ()
344 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.classname (   self,
  object 
)
Get classname of an object 

Definition at line 384 of file ConfigDataAccessor.py.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties().

384  def classname(self, object):
385  """ Get classname of an object """
386  text = ""
387  if hasattr(object, "type_"):
388  text = object.type_()
389  return text
390 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.connections (   self)
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.daughterRelations (   self,
  object 
)
Get daughterRelations of an object 

Definition at line 370 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._daughterRelationsDict.

Referenced by Vispa.Share.RelativeDataAccessor.RelativeDataAccessor.allDaughterRelations(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.nonSequenceChildren().

370  def daughterRelations(self, object):
371  """ Get daughterRelations of an object """
372  if object in self._daughterRelationsDict.keys():
373  try:
374  return self._daughterRelationsDict[object]
375  except TypeError:
376  return []
377  else:
378  return []
379 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.dumpPython (   self)
dump python configuration 

Definition at line 305 of file ConfigDataAccessor.py.

References edm::ProductLabels.process, CSCTFMonitorInterface.process(), helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), CSCMonitorInterface.process(), PFPileUpAlgo.process(), HcalCableMapper.process(), BTagDifferentialPlot.process(), cms::DDCMSDetElementCreator.process(), runTauIdMVA.TauIDEmbedder.process, DTT0WireWorkflow.DTT0WireWorkflow.process, cms::DDDetector.process(), DTVdriftWorkflow.DTvdriftWorkflow.process, TrackingRecHitNoSmearingPlugin.process(), TrackingRecHitStripGSPlugin.process(), cms::DDVolumeProcessor.process(), cscdqm::HWStandbyType.process, TrackingRecHitAlgorithm.process(), DTTtrigWorkflow.DTttrigWorkflow.process, DTuROSRawToDigi.process(), DTTFFEDReader.process(), DTuROSDigiToRaw.process(), fwlite::internal::DataKey.process(), TestOutliers.process, HTTP.RequestManager.process(), PixelTemplateSmearerBase.process(), edm::StoredMergeableRunProductMetadata::SingleRunEntryAndProcess.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, cond::payloadInspector::PlotBase.process(), Config.Process.process, DTWorkflow.DTWorkflow.process, ConfigBuilder.ConfigBuilder.process, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::ProductResolverIndexHelper::Item.process(), LHCInfoImpl::LumiSectionFilter.process(), and JsonOutputProducer::JsonConfigurationBlock.process.

Referenced by Mixins._Parameterizable.__addParameter(), Modules.SwitchProducer.__addParameter(), Mixins._ParameterTypeBase.__repr__(), Mixins._Parameterizable.__repr__(), Mixins._ValidatingParameterListBase.__repr__(), Types.VPSet.__repr__(), Mixins._Parameterizable.__setattr__(), Modules.SwitchProducer.__setattr__(), and SequenceTypes.Schedule.__str__().

305  def dumpPython(self):
306  """ dump python configuration """
307  logging.debug(__name__ + ": dumpPython")
308  text = None
309  if self.process():
310  text = self.process().dumpPython()
311  return text
312 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.filename (   self,
  object 
)
Get filename 

Definition at line 415 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.fullFilename().

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties().

415  def filename(self, object):
416  """ Get filename """
417  text = os.path.splitext(os.path.basename(self.fullFilename(object)))[0]
418  return text
419 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.foundIn (   self,
  object 
)
Make list of all mother sequences 

Definition at line 515 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._allObjects, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._foundInDict, data_sources.node.children(), geometry.Structure.children, Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), python.readProv.filereader.Module.label, reco::tau::entry.label, L1TriggerKeyExtViewer.label, core.AutoHandle.AutoHandle.label, SubDetParams.label, reco::Centrality.label(), ElectronLikelihoodCategoryData.label, cond::BoostVersion.label(), entry< T >.label, SiPixelFedFillerWordEventNumber.label, classes.PlotData.label, GenericMVAComputerCache::IndividualComputer.label, l1t::L1GtBoardTypeStringToEnum.label, TtEvent::HypoClassKeyStringToEnum.label, HcalLutSet.label, L1GtBoardTypeStringToEnum.label, TrackCandidateTopBottomHitFilter.label, ConverterTester.label, l1t::L1TGtObjectStringToEnum.label, L1GtObjectStringToEnum.label, TaggingVariablePlotter::VariableConfig.label, HGCalValidator.label, SiPixelRawToDigi.label, SiPixelQualityESProducer.label, muon::SelectionTypeStringToEnum.label, HLTVertexPerformanceAnalyzer.label, hltPlot.label, FWPSetTableManager::PSetData.label, GlobalDigisHistogrammer.label, MillePedeVariables.label(), MultiTrackValidator.label, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.label, MuonSimHitsValidAnalyzer.label, PrimaryVertexProducer::algo.label, GlobalRecHitsHistogrammer.label, L1GtPsbQuadStringToEnum.label, PhysicsTools::MVAModuleHelper< Record, Object, Filler >.label, python.rootplot.utilities.Hist2D.label, TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscInfo.label, cond::DataProxyWrapperBase.label(), l1t::GtConditionTypeStringToEnum.label, GlobalHitsTester.label, pat::TriggerFilter.label(), DependencyGraph::node.label, GlobalHitsHistogrammer.label, MatrixInjector.MatrixInjector.label, ValidationMisalignedTracker.label, PrimaryVertexProducerAlgorithm::algo.label, GlobalHitsAnalyzer.label, TrackerHitProducer.label, HLTBTagPerformanceAnalyzer.label, l1t::GtConditionCategoryStringToEnum.label, GlobalHitsProducer.label, DTDigiReader.label, MatrixUtil.InputInfo.label, hitfit::FE_Obj.label, L1GtConditionTypeStringToEnum.label, python.rootplot.utilities.Hist.label, cond::payloadInspector::ModuleVersion.label, EcalSimHitsValidProducer.label, GlobalDigisProducer.label, FWColorSelect.label(), GlobalDigisAnalyzer.label, L1GtConditionCategoryStringToEnum.label, TkAlStyle.label(), GlobalRecHitsAnalyzer.label, GlobalRecHitsProducer.label, MuonTrackValidatorBase.label, Vispa.Gui.FindDialog.FindDialog.label(), FastTimerService::GroupOfModules.label, ScaleVarWeight.label, edm::TrieNodeIter< T >.label(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.label(), and JsonOutputProducer::JsonVars.label.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties().

515  def foundIn(self, object):
516  """ Make list of all mother sequences """
517  if not object in self._foundInDict.keys():
518  foundin = []
519  for entry in self._allObjects:
520  for daughter in self.children(entry):
521  if self.label(object) == self.label(daughter) and len(self.children(entry)) > 0 and not self.label(entry) in foundin:
522  foundin += [self.label(entry)]
523  try:
524  self._foundInDict[object]=foundin
525  except TypeError:
526  return []
527  return self._foundInDict[object]
528 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.fullFilename (   self,
  object 
)
Get full filename 

Definition at line 391 of file ConfigDataAccessor.py.

References Vispa.Main.TabController.TabController._filename, DQMIO2histo.DQMIO._filename, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._filename, MuonGeometryArrange._filename, TrackerGeometryCompare._filename, python.readProv.filereader.Module.label, reco::tau::entry.label, core.AutoHandle.AutoHandle.label, L1TriggerKeyExtViewer.label, SubDetParams.label, reco::Centrality.label(), ElectronLikelihoodCategoryData.label, cond::BoostVersion.label(), entry< T >.label, classes.PlotData.label, SiPixelFedFillerWordEventNumber.label, GenericMVAComputerCache::IndividualComputer.label, l1t::L1GtBoardTypeStringToEnum.label, TtEvent::HypoClassKeyStringToEnum.label, HcalLutSet.label, L1GtBoardTypeStringToEnum.label, ConverterTester.label, TrackCandidateTopBottomHitFilter.label, l1t::L1TGtObjectStringToEnum.label, L1GtObjectStringToEnum.label, TaggingVariablePlotter::VariableConfig.label, SiPixelRawToDigi.label, HGCalValidator.label, muon::SelectionTypeStringToEnum.label, SiPixelQualityESProducer.label, HLTVertexPerformanceAnalyzer.label, hltPlot.label, FWPSetTableManager::PSetData.label, GlobalDigisHistogrammer.label, MillePedeVariables.label(), MultiTrackValidator.label, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.label, MuonSimHitsValidAnalyzer.label, PrimaryVertexProducer::algo.label, GlobalRecHitsHistogrammer.label, L1GtPsbQuadStringToEnum.label, PhysicsTools::MVAModuleHelper< Record, Object, Filler >.label, python.rootplot.utilities.Hist2D.label, TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscInfo.label, cond::DataProxyWrapperBase.label(), l1t::GtConditionTypeStringToEnum.label, GlobalHitsTester.label, pat::TriggerFilter.label(), DependencyGraph::node.label, GlobalHitsHistogrammer.label, MatrixInjector.MatrixInjector.label, PrimaryVertexProducerAlgorithm::algo.label, ValidationMisalignedTracker.label, GlobalHitsAnalyzer.label, TrackerHitProducer.label, HLTBTagPerformanceAnalyzer.label, l1t::GtConditionCategoryStringToEnum.label, GlobalHitsProducer.label, DTDigiReader.label, MatrixUtil.InputInfo.label, hitfit::FE_Obj.label, L1GtConditionTypeStringToEnum.label, python.rootplot.utilities.Hist.label, cond::payloadInspector::ModuleVersion.label, EcalSimHitsValidProducer.label, GlobalDigisProducer.label, FWColorSelect.label(), GlobalDigisAnalyzer.label, L1GtConditionCategoryStringToEnum.label, TkAlStyle.label(), GlobalRecHitsAnalyzer.label, GlobalRecHitsProducer.label, MuonTrackValidatorBase.label, Vispa.Gui.FindDialog.FindDialog.label(), FastTimerService::GroupOfModules.label, ScaleVarWeight.label, edm::TrieNodeIter< T >.label(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.label(), and JsonOutputProducer::JsonVars.label.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.filename(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.package(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.pypackage(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.pypath().

391  def fullFilename(self, object):
392  """ Get full filename """
393  text = ""
394 # if hasattr(object,"_filename"):
395 # text=object._filename
396  if text == "" or text.find("FWCore/ParameterSet") >= 0 or text.find("/build/") >= 0:
397  if self.label(object) in file_dict:
398  text = file_dict[self.label(object)]
399  else:
400  text = self._filename
401  root = os.path.splitext(text)[0]
402  if root != "":
403  text = root + ".py"
404  return text
405 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.history (   self)
configuration history 

Definition at line 313 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._history, and SiStripQualityHistory._history.

313  def history(self):
314  """ configuration history """
315  logging.debug(__name__ + ": history")
316  return self._history
317 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.inputCommands (   self)

Definition at line 685 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._allObjects, AlignableObjectId::entry.type, omtf::CscDataWord64.type(), BCoptions.type, core.AutoHandle.AutoHandle.type, TotemTriggerCounters.type, core.autovars.NTupleVariable.type, omtf::RpcDataWord64.type(), MixingInputConfig.type(), reco::MuonMETCorrectionData.type(), omtf::MuonDataWord64.type(), l1t::Parameter.type, DQM.DQMReader.type, SurveyParameters.type(), CalCluster.type, omtf::DtDataWord64.type(), rpcrawtodigi::ReadoutError.type(), MuonResidualsTwoBin.type(), MuonResiduals1DOFFitter.type(), LocalFileSystem::FSInfo.type, reco::TrackingRecHitInfo.type(), DDHCalForwardAlgo.type, MuonResidualsAngleFitter.type(), MuonResidualsBfieldAngleFitter.type(), plottingOptions.BasePlottingOptions.type, rpcrawtodigi::DataRecord.type(), hcaldqm::quantity::Quantity.type(), MuonResidualsPositionFitter.type(), DB_ME.type, FWItemRandomAccessorBase.type(), reco::TrackInfo.type(), reco::PUSubMETCandInfo.type(), SummationStep.type, BeamSpotFakeConditions.type, FastTimeDetId.type(), FWItemSingleAccessor.type(), BdecayFilter::CutStruct.type, BsJpsiPhiFilter::CutStruct.type, TauJetCorrector::ParametrizationTauJet.type, edm::eventsetup::EventSetupRecordKey.type(), cond::TimeTypeSpecs.type, JetPartonNamespace::ParametrizationJetParton.type, L1DataEmulDigi.type(), FWItemTVirtualCollectionProxyAccessor.type(), HGCScintillatorDetId.type(), FWItemAccessorBase.type(), BeamSpotAlignmentParameters.type(), RigidBodyAlignmentParameters.type(), RigidBodyAlignmentParameters4D.type(), TauJetCorrector.type, CosmicMuonSeedGenerator::MuonRecHitPair.type, MuonChamberResidual.type(), DQMGenericClient::EfficOption.type, HcalDcsDetId.type(), HGCalTriggerDetId.type(), FWPhysicsObjectDesc.type(), HGCSiliconDetId.type(), edm::eventsetup::DataKey.type(), HFNoseDetId.type(), DTTMax::TMax.type, Entry.type(), ScoutingMuon.type(), RPCCompDetId.type(), MuonResiduals5DOFFitter.type(), L1GctInternHFData.type(), metsig::SigInputObj.type, MuonResiduals6DOFrphiFitter.type(), OpticalObject.type(), BowedSurfaceAlignmentParameters.type(), l1extra::L1EmParticle.type(), AlignmentParameters.type(), l1extra::L1JetParticle.type(), PrimaryVertexMonitor.type, MuonResiduals6DOFFitter.type(), l1extra::L1EtMissParticle.type(), CounterChecker.type, hcaldqm::quantity::DetectorQuantity.type(), HGCalSimHitValidation::hitsinfo.type, FWPSetTableManager::PSetData.type, cond::DataProxyWrapperBase.type(), ProcTMVA::Method.type, MuonGeometrySanityCheckPoint.type, hcaldqm::quantity::TrigTowerQuantity.type(), susybsm::HSCParticle.type(), ME::Settings.type, reco::PFBlockElement.type(), Measurement.type(), L1GctInternJetData.type(), TwoBowedSurfacesAlignmentParameters.type(), PhysicsTools::TreeReader::Value.type, pat::TriggerFilter.type(), DependencyGraph::node.type, L1GctInternHtMiss.type(), pat::TriggerCondition.type(), HcalTB04Analysis.type, L1GctInternEtSum.type(), HcalRaddamMuon.type, edm::Handle< GenericObject >.type(), FWEventItem.type(), HistoData.type, options.HLTProcessOptions.type, DTROSWordType.type(), nanoaod::FlatTable::Column.type, cuy.ValElement.type, edm::Handle< FWGenericObject >.type(), reco::BeamSpot.type(), MuonResidualsFitter.type(), pat::TriggerObject.type(), TrackingRecHit.type(), BPHMassFitSelect.type, DataProxyWrapper< RecordT, DataT, Initializer >.type(), ME.type, cond::payloadInspector::PlotBase.type(), FourVectorHLT::PathInfo.type(), L1Analysis::L1AnalysisRecoMuonDataFormat.type, edm::Entry.type, Json::Value.type(), beamvalidation.IOV.type, gen::Hydjet2Hadronizer.type, reco::Muon.type(), hcaldqm::quantity::ValueQuantity.type(), hcaldqm::quantity::ElectronicsQuantity.type(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.type(), edm::IndexIntoFile::IndexIntoFileItrImpl.type(), JsonOutputProducer::JsonVars.type, TrackingNtuple::SimHitData.type, and edm::IndexIntoFile::IndexIntoFileItr.type().

685  def inputCommands(self):
686  inputModules = [object for object in self._allObjects\
687  if self.type(object) == "Source"]
688  if len(inputModules) > 0 and hasattr(inputModules[0], "inputCommands"):
689  return inputModules[0].inputCommands
690  else:
691  return []
692 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.inputEventContent (   self)

Definition at line 655 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._scheduledObjects, SiStripClusterizer.inputTags, ShallowDigisProducer.inputTags, SiStripProcessedRawDigiProducer.inputTags, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.inputTags(), python.readProv.filereader.Module.label, reco::tau::entry.label, core.AutoHandle.AutoHandle.label, L1TriggerKeyExtViewer.label, SubDetParams.label, reco::Centrality.label(), ElectronLikelihoodCategoryData.label, cond::BoostVersion.label(), entry< T >.label, classes.PlotData.label, SiPixelFedFillerWordEventNumber.label, GenericMVAComputerCache::IndividualComputer.label, l1t::L1GtBoardTypeStringToEnum.label, TtEvent::HypoClassKeyStringToEnum.label, HcalLutSet.label, L1GtBoardTypeStringToEnum.label, ConverterTester.label, TrackCandidateTopBottomHitFilter.label, l1t::L1TGtObjectStringToEnum.label, L1GtObjectStringToEnum.label, TaggingVariablePlotter::VariableConfig.label, SiPixelRawToDigi.label, HGCalValidator.label, muon::SelectionTypeStringToEnum.label, SiPixelQualityESProducer.label, HLTVertexPerformanceAnalyzer.label, hltPlot.label, FWPSetTableManager::PSetData.label, GlobalDigisHistogrammer.label, MillePedeVariables.label(), MultiTrackValidator.label, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.label, MuonSimHitsValidAnalyzer.label, PrimaryVertexProducer::algo.label, GlobalRecHitsHistogrammer.label, L1GtPsbQuadStringToEnum.label, PhysicsTools::MVAModuleHelper< Record, Object, Filler >.label, python.rootplot.utilities.Hist2D.label, TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscInfo.label, cond::DataProxyWrapperBase.label(), GlobalHitsTester.label, l1t::GtConditionTypeStringToEnum.label, pat::TriggerFilter.label(), DependencyGraph::node.label, GlobalHitsHistogrammer.label, MatrixInjector.MatrixInjector.label, ValidationMisalignedTracker.label, PrimaryVertexProducerAlgorithm::algo.label, GlobalHitsAnalyzer.label, TrackerHitProducer.label, HLTBTagPerformanceAnalyzer.label, l1t::GtConditionCategoryStringToEnum.label, DTDigiReader.label, GlobalHitsProducer.label, MatrixUtil.InputInfo.label, hitfit::FE_Obj.label, L1GtConditionTypeStringToEnum.label, python.rootplot.utilities.Hist.label, cond::payloadInspector::ModuleVersion.label, EcalSimHitsValidProducer.label, GlobalDigisProducer.label, FWColorSelect.label(), GlobalDigisAnalyzer.label, L1GtConditionCategoryStringToEnum.label, TkAlStyle.label(), GlobalRecHitsAnalyzer.label, GlobalRecHitsProducer.label, MuonTrackValidatorBase.label, Vispa.Gui.FindDialog.FindDialog.label(), FastTimerService::GroupOfModules.label, ScaleVarWeight.label, edm::TrieNodeIter< T >.label(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.label(), JsonOutputProducer::JsonVars.label, split, and str.

655  def inputEventContent(self):
656  content = []
657  allLabels = [self.label(object) for object in self._scheduledObjects]
658  content_objects = {}
659  for object in self._scheduledObjects:
660  for key, value in self.inputTags(object):
661  elements=str(value).split(":")
662  module = elements[0]
663  if len(elements)>1:
664  product = elements[1]
665  else:
666  product = ""
667  if len(elements)>2:
668  process = elements[2]
669  else:
670  process = "*"
671  if not module in allLabels:
672  if not ("*",module,product,process) in content:
673  content += [("*",module,product,process)]
674  if "*_"+module+"_"+product+"_"+process in content_objects.keys():
675  content_objects["*_"+module+"_"+product+"_"+process]+=","+self.label(object)
676  else:
677  content_objects["*_"+module+"_"+product+"_"+process]=self.label(object)
678  return (content,content_objects)
679 
#define str(s)
double split
Definition: MVATrainer.cc:139
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.inputTags (   self,
  object 
)
Make list of inputtags from parameter dict 

Definition at line 489 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._inputTagsDict, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._readInputTagsRecursive(), function::ZMuStandaloneScaledFunction.parameters, function::ZMuTrackFunction.parameters, function::ZMuTrackScaledFunction.parameters, function::ZMuMuNormalBack.parameters, function::ZMuTrackScaledNormalBack.parameters, MuScleFitDBobject.parameters, function::ZMuMuBack.parameters, function::ZMuMuBackNorm.parameters, SimpleJetCorrectionUncertainty.parameters(), L1MuCSCTFConfiguration.parameters(), reco::GsfComponent5D.parameters(), RecHit2DLocalPos.parameters(), DDI::Solid.parameters(), SimpleJetCorrector.parameters(), InvalidTrackingRecHit.parameters(), TkFittedLasBeam.parameters(), RecHit1D.parameters(), TwoBodyDecay.parameters(), L1TCSCTFClient.parameters, TwoBodyDecayParameters.parameters(), JetResolution.parameters(), EmulatedME0Segment.parameters(), AlignmentParametersData.parameters(), PPSTimingCalibration.parameters(), DQMMessageLoggerClient.parameters, CSCSegment.parameters(), BeamSpotTransientTrackingRecHit.parameters(), MuonMiniAOD.parameters, MuonSeedsAnalyzer.parameters, ME0Segment.parameters(), DTSegmentsTask.parameters, DiMuonHistograms.parameters, MuonEnergyDepositAnalyzer.parameters, GEMSegment.parameters(), GEMCSCSegment.parameters(), TriggerMatchEfficiencyPlotter.parameters, DTRecSegment4D.parameters(), SegmentTrackAnalyzer.parameters, EfficiencyAnalyzer.parameters, MuonKinVsEtaAnalyzer.parameters, CosmicMuonRecoAnalyzer.parameters, EfficiencyPlotter.parameters, MuonTrackResidualsTest.parameters, TriggerMatchMonitor.parameters, gen::PomwigHadronizer.parameters, DTSLRecCluster.parameters(), MuonRecoAnalyzer.parameters, METCorrectorParameters::Record.parameters(), CompositeAlignmentParameters.parameters(), MEtXYcorrectParameters::Record.parameters(), MuonRecoTest.parameters, DDSolid.parameters(), MuonRecoOneHLT.parameters, TrapezoidalPlaneBounds.parameters(), AlignmentSurfaceDeformations.parameters(), PTrajectoryStateOnDet.parameters(), DTCalibValidation.parameters, DTRecSegment2D.parameters(), ConfObject.parameters, G4ProcessHelper.parameters, DTCalibValidationFromMuons.parameters, JetCorrectorParameters::Record.parameters(), DTEfficiencyTask.parameters, MuonAlignmentSummary.parameters, DTChamberEfficiencyTest.parameters, AlignmentParameters.parameters(), DTSegmentAnalysisTask.parameters, DTResolutionTest.parameters, reco::GsfTrackExtra.parameters(), DTSegmentAnalysisTest.parameters, DTEfficiencyTest.parameters, TrackingRecHit.parameters(), DTChamberEfficiencyTask.parameters, DTDataIntegrityTask.parameters, SiStripConfObject.parameters, FWGeometry::GeomDetInfo.parameters, DTTriggerEfficiencyTask.parameters, HCALResponse.parameters, DTLocalTriggerLutTask.parameters, BaseTrackerRecHit.parameters(), DTLocalTriggerBaseTest.parameters, MuonAlignment.parameters, Herwig6Hadronizer.parameters, METAnalyzer.parameters, DTLocalTriggerTask.parameters, DynamicTruncation.parameters, DCCTBDataParser.parameters, ReferenceTrajectoryBase.parameters(), reco::TrackBase.parameters(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.parameters().

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.inputEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.readConnections(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.uses().

489  def inputTags(self, object):
490  """ Make list of inputtags from parameter dict """
491  try:
492  v = self._inputTagsDict.get(object)
493  if v is None:
494  v = self._readInputTagsRecursive(self.parameters(object))
495  self._inputTagsDict[object]=v
496  except TypeError:
497  v = []
498  return v
499 
def _readInputTagsRecursive(self, this_parameters, start_key="")
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.isContainer (   self,
  object 
)

Definition at line 345 of file ConfigDataAccessor.py.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._scheduleRecursive(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.nonSequenceChildren().

345  def isContainer(self, object):
346  return isinstance(object, (ConfigFolder, list, cms.Path, cms.EndPath, cms.Sequence)) # cms.SequencePlaceholder assumed to be a module
347 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.isReplaceConfig (   self)
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.label (   self,
  object 
)
Get label of an object 

Definition at line 321 of file ConfigDataAccessor.py.

References str.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._sort_list(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.foundIn(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.fullFilename(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.inputEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.outputEventContent(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.properties(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.readConnections(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.updateProcess(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.usedBy().

321  def label(self, object):
322  """ Get label of an object """
323  text = ""
324  if hasattr(object, "label_") and (not hasattr(object,"hasLabel_") or object.hasLabel_()):
325  text = str(object.label_())
326  if text:
327  return text
328  if text == "":
329  if hasattr(object, "_name"):
330  text = str(object._name)
331  if text == "":
332  if hasattr(object, "type_"):
333  text = str(object.type_())
334  if text == "":
335  text = "NoLabel"
336  return text
337 
#define str(s)
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.lineNumber (   self,
  object 
)
Get linenumber 

Definition at line 406 of file ConfigDataAccessor.py.

References str.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties().

406  def lineNumber(self, object):
407  """ Get linenumber """
408  text = ""
409  if hasattr(object, "_filename"):
410  if object._filename.find("FWCore/ParameterSet") < 0 and object._filename.find("ConfigEditor") < 0:
411  if hasattr(object, "_lineNumber"):
412  text = str(object._lineNumber)
413  return text
414 
#define str(s)
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.motherRelations (   self,
  object 
)
Get motherRelations of an object 

Definition at line 360 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._motherRelationsDict.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._scheduleRecursive(), Vispa.Share.RelativeDataAccessor.RelativeDataAccessor.allMotherRelations(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.nonSequenceChildren().

360  def motherRelations(self, object):
361  """ Get motherRelations of an object """
362  if object in self._motherRelationsDict.keys():
363  try:
364  return self._motherRelationsDict[object]
365  except TypeError:
366  return []
367  else:
368  return []
369 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.nonSequenceChildren (   self,
  object 
)

Definition at line 348 of file ConfigDataAccessor.py.

References Vispa.Share.BasicDataAccessor.BasicDataAccessor.allChildren(), data_sources.node.children(), geometry.Structure.children, Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.daughterRelations(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.isContainer(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.motherRelations().

348  def nonSequenceChildren(self, object):
349  objects=[]
350  if self.isContainer(object):
351  for o in self.allChildren(object):
352  if not self.isContainer(o) and len(self.children(o)) == 0 and not o in objects:
353  objects += [o]
354  else:
355  for o in self.motherRelations(object)+[object]+self.daughterRelations(object):
356  if not o in objects:
357  objects += [o]
358  return objects
359 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.open (   self,
  filename = None 
)
Open config file and read it.

Definition at line 156 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._allObjects, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._file, CommonAnalyzer._file, dqm-mbProfile.Profile._file, Vispa.Main.TabController.TabController._filename, DQMIO2histo.DQMIO._filename, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._filename, MuonGeometryArrange._filename, TrackerGeometryCompare._filename, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._history, SiStripQualityHistory._history, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._initLists(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._isReplaceConfig, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._readHeaderInfo(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._readRecursive(), dir, edm::ProductLabels.process, CSCTFMonitorInterface.process(), CSCMonitorInterface.process(), helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), PFPileUpAlgo.process(), HcalCableMapper.process(), BTagDifferentialPlot.process(), cms::DDCMSDetElementCreator.process(), runTauIdMVA.TauIDEmbedder.process, DTT0WireWorkflow.DTT0WireWorkflow.process, cms::DDDetector.process(), DTVdriftWorkflow.DTvdriftWorkflow.process, TrackingRecHitNoSmearingPlugin.process(), TrackingRecHitStripGSPlugin.process(), cms::DDVolumeProcessor.process(), cscdqm::HWStandbyType.process, TrackingRecHitAlgorithm.process(), DTTtrigWorkflow.DTttrigWorkflow.process, DTuROSRawToDigi.process(), DTTFFEDReader.process(), DTuROSDigiToRaw.process(), fwlite::internal::DataKey.process(), TestOutliers.process, HTTP.RequestManager.process(), PixelTemplateSmearerBase.process(), edm::StoredMergeableRunProductMetadata::SingleRunEntryAndProcess.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, cond::payloadInspector::PlotBase.process(), Config.Process.process, DTWorkflow.DTWorkflow.process, ConfigBuilder.ConfigBuilder.process, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::ProductResolverIndexHelper::Item.process(), LHCInfoImpl::LumiSectionFilter.process(), JsonOutputProducer::JsonConfigurationBlock.process, python.rootplot.root2matplotlib.replace(), FWHLTValidator.setProcess(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProcess(), and str.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._readHeaderInfo().

156  def open(self, filename=None):
157  """ Open config file and read it.
158  """
159  logging.debug(__name__ + ": open")
160  if filename != None:
161  self._filename = str(filename)
162  global imported_configs
163  self._isReplaceConfig = False
164  self._history=None
165 
166 # import input-config and make list of all imported configs
167  for i in imported_configs.iterkeys():
168  if i in sys.modules.keys():
169  del sys.modules[i]
170  sys.path.insert(0, os.path.dirname(self._filename))
171  common_imports = sys.modules.copy()
172 
173  import imp
174  theFile = open(self._filename)
175  self._file = imp.load_module(os.path.splitext(os.path.basename(self._filename))[0].replace(".", "_"), theFile, self._filename, ("py", "r", 1))
176  theFile.close()
177 
178  imported_configs = sys.modules.copy()
179  for i in common_imports.iterkeys():
180  del imported_configs[i]
181 
182 # make dictionary that connects every cms-object with the file in which it is defined
183  for j in six.itervalues(imported_configs):
184  setj = set(dir(j))
185  for entry in setj:
186  if entry[0] != "_" and entry != "cms":
187  source = 1
188  for k in six.itervalues(imported_configs):
189  if hasattr(k, entry):
190  setk = set(dir(k))
191  if len(setk) < len(setj) and setk < setj:
192  source = 0
193  if source == 1:
194  filen = self._filename
195  if hasattr(j, "__file__"):
196  filen = j.__file__
197  file_dict[entry] = filen
198 
199 # collect all path/sequences/modules of the input-config in a list
200  if self.process():
201  self.setProcess(self.process())
202  self._readHeaderInfo()
203  self._history=self.process().dumpHistory()
204  if not self._isReplaceConfig and hasattr(self.process(),"resetHistory"):
205  self.process().resetHistory()
206  else:
207  self._initLists()
208  for entry in dir(self._file):
209  o=getattr(self._file, entry)
210  if entry[0] != "_" and entry != "cms" and hasattr(o, "label_"):
211  getattr(self._file, entry).setLabel(entry)
212  text = os.path.splitext(os.path.basename(file_dict[o.label_()]))[0]
213  if text == os.path.splitext(os.path.basename(self._filename))[0] and not o in self._allObjects:
214  self._readRecursive(None, o)
215  return True
216 
def replace(string, replacements)
dbl *** dir
Definition: mlp_gen.cc:35
#define str(s)
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.outputCommands (   self)

Definition at line 693 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._allObjects, AlignableObjectId::entry.type, omtf::CscDataWord64.type(), BCoptions.type, core.AutoHandle.AutoHandle.type, TotemTriggerCounters.type, core.autovars.NTupleVariable.type, omtf::RpcDataWord64.type(), MixingInputConfig.type(), reco::MuonMETCorrectionData.type(), omtf::MuonDataWord64.type(), l1t::Parameter.type, DQM.DQMReader.type, SurveyParameters.type(), CalCluster.type, omtf::DtDataWord64.type(), rpcrawtodigi::ReadoutError.type(), MuonResidualsTwoBin.type(), MuonResiduals1DOFFitter.type(), LocalFileSystem::FSInfo.type, reco::TrackingRecHitInfo.type(), DDHCalForwardAlgo.type, MuonResidualsAngleFitter.type(), MuonResidualsBfieldAngleFitter.type(), plottingOptions.BasePlottingOptions.type, rpcrawtodigi::DataRecord.type(), hcaldqm::quantity::Quantity.type(), MuonResidualsPositionFitter.type(), DB_ME.type, FWItemRandomAccessorBase.type(), reco::TrackInfo.type(), reco::PUSubMETCandInfo.type(), SummationStep.type, BeamSpotFakeConditions.type, FastTimeDetId.type(), FWItemSingleAccessor.type(), BdecayFilter::CutStruct.type, BsJpsiPhiFilter::CutStruct.type, TauJetCorrector::ParametrizationTauJet.type, edm::eventsetup::EventSetupRecordKey.type(), cond::TimeTypeSpecs.type, JetPartonNamespace::ParametrizationJetParton.type, L1DataEmulDigi.type(), FWItemTVirtualCollectionProxyAccessor.type(), HGCScintillatorDetId.type(), FWItemAccessorBase.type(), BeamSpotAlignmentParameters.type(), RigidBodyAlignmentParameters.type(), RigidBodyAlignmentParameters4D.type(), TauJetCorrector.type, CosmicMuonSeedGenerator::MuonRecHitPair.type, MuonChamberResidual.type(), DQMGenericClient::EfficOption.type, HcalDcsDetId.type(), HGCalTriggerDetId.type(), FWPhysicsObjectDesc.type(), HGCSiliconDetId.type(), edm::eventsetup::DataKey.type(), HFNoseDetId.type(), DTTMax::TMax.type, Entry.type(), ScoutingMuon.type(), RPCCompDetId.type(), MuonResiduals5DOFFitter.type(), L1GctInternHFData.type(), metsig::SigInputObj.type, MuonResiduals6DOFrphiFitter.type(), OpticalObject.type(), BowedSurfaceAlignmentParameters.type(), l1extra::L1EmParticle.type(), AlignmentParameters.type(), l1extra::L1JetParticle.type(), PrimaryVertexMonitor.type, MuonResiduals6DOFFitter.type(), l1extra::L1EtMissParticle.type(), CounterChecker.type, hcaldqm::quantity::DetectorQuantity.type(), HGCalSimHitValidation::hitsinfo.type, FWPSetTableManager::PSetData.type, cond::DataProxyWrapperBase.type(), ProcTMVA::Method.type, MuonGeometrySanityCheckPoint.type, hcaldqm::quantity::TrigTowerQuantity.type(), susybsm::HSCParticle.type(), ME::Settings.type, reco::PFBlockElement.type(), Measurement.type(), L1GctInternJetData.type(), TwoBowedSurfacesAlignmentParameters.type(), PhysicsTools::TreeReader::Value.type, pat::TriggerFilter.type(), DependencyGraph::node.type, L1GctInternHtMiss.type(), pat::TriggerCondition.type(), HcalTB04Analysis.type, L1GctInternEtSum.type(), HcalRaddamMuon.type, edm::Handle< GenericObject >.type(), FWEventItem.type(), HistoData.type, options.HLTProcessOptions.type, DTROSWordType.type(), nanoaod::FlatTable::Column.type, cuy.ValElement.type, edm::Handle< FWGenericObject >.type(), reco::BeamSpot.type(), MuonResidualsFitter.type(), pat::TriggerObject.type(), TrackingRecHit.type(), BPHMassFitSelect.type, DataProxyWrapper< RecordT, DataT, Initializer >.type(), ME.type, cond::payloadInspector::PlotBase.type(), FourVectorHLT::PathInfo.type(), L1Analysis::L1AnalysisRecoMuonDataFormat.type, edm::Entry.type, Json::Value.type(), beamvalidation.IOV.type, gen::Hydjet2Hadronizer.type, reco::Muon.type(), hcaldqm::quantity::ValueQuantity.type(), hcaldqm::quantity::ElectronicsQuantity.type(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.type(), edm::IndexIntoFile::IndexIntoFileItrImpl.type(), JsonOutputProducer::JsonVars.type, TrackingNtuple::SimHitData.type, and edm::IndexIntoFile::IndexIntoFileItr.type().

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProcess().

693  def outputCommands(self):
694  outputModules = [object for object in self._allObjects\
695  if self.type(object) == "OutputModule"]
696  if len(outputModules) > 0 and hasattr(outputModules[0], "outputCommands"):
697  return outputModules[0].outputCommands
698  else:
699  return []
700 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.outputEventContent (   self)

Definition at line 680 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._allObjects, python.readProv.filereader.Module.label, reco::tau::entry.label, core.AutoHandle.AutoHandle.label, L1TriggerKeyExtViewer.label, SubDetParams.label, reco::Centrality.label(), ElectronLikelihoodCategoryData.label, cond::BoostVersion.label(), entry< T >.label, classes.PlotData.label, SiPixelFedFillerWordEventNumber.label, GenericMVAComputerCache::IndividualComputer.label, l1t::L1GtBoardTypeStringToEnum.label, TtEvent::HypoClassKeyStringToEnum.label, HcalLutSet.label, L1GtBoardTypeStringToEnum.label, ConverterTester.label, TrackCandidateTopBottomHitFilter.label, l1t::L1TGtObjectStringToEnum.label, L1GtObjectStringToEnum.label, TaggingVariablePlotter::VariableConfig.label, SiPixelRawToDigi.label, HGCalValidator.label, muon::SelectionTypeStringToEnum.label, SiPixelQualityESProducer.label, HLTVertexPerformanceAnalyzer.label, hltPlot.label, FWPSetTableManager::PSetData.label, GlobalDigisHistogrammer.label, MillePedeVariables.label(), MultiTrackValidator.label, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.label, MuonSimHitsValidAnalyzer.label, PrimaryVertexProducer::algo.label, GlobalRecHitsHistogrammer.label, L1GtPsbQuadStringToEnum.label, PhysicsTools::MVAModuleHelper< Record, Object, Filler >.label, python.rootplot.utilities.Hist2D.label, TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscInfo.label, cond::DataProxyWrapperBase.label(), GlobalHitsTester.label, l1t::GtConditionTypeStringToEnum.label, pat::TriggerFilter.label(), DependencyGraph::node.label, GlobalHitsHistogrammer.label, MatrixInjector.MatrixInjector.label, ValidationMisalignedTracker.label, PrimaryVertexProducerAlgorithm::algo.label, GlobalHitsAnalyzer.label, TrackerHitProducer.label, HLTBTagPerformanceAnalyzer.label, l1t::GtConditionCategoryStringToEnum.label, DTDigiReader.label, GlobalHitsProducer.label, MatrixUtil.InputInfo.label, hitfit::FE_Obj.label, L1GtConditionTypeStringToEnum.label, python.rootplot.utilities.Hist.label, cond::payloadInspector::ModuleVersion.label, EcalSimHitsValidProducer.label, GlobalDigisProducer.label, FWColorSelect.label(), GlobalDigisAnalyzer.label, L1GtConditionCategoryStringToEnum.label, TkAlStyle.label(), GlobalRecHitsAnalyzer.label, GlobalRecHitsProducer.label, MuonTrackValidatorBase.label, Vispa.Gui.FindDialog.FindDialog.label(), FastTimerService::GroupOfModules.label, ScaleVarWeight.label, edm::TrieNodeIter< T >.label(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.label(), JsonOutputProducer::JsonVars.label, edm::ProductLabels.process, CSCTFMonitorInterface.process(), helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), CSCMonitorInterface.process(), PFPileUpAlgo.process(), HcalCableMapper.process(), BTagDifferentialPlot.process(), cms::DDCMSDetElementCreator.process(), runTauIdMVA.TauIDEmbedder.process, DTT0WireWorkflow.DTT0WireWorkflow.process, cms::DDDetector.process(), DTVdriftWorkflow.DTvdriftWorkflow.process, TrackingRecHitNoSmearingPlugin.process(), TrackingRecHitStripGSPlugin.process(), cscdqm::HWStandbyType.process, cms::DDVolumeProcessor.process(), TrackingRecHitAlgorithm.process(), DTTtrigWorkflow.DTttrigWorkflow.process, DTuROSRawToDigi.process(), DTTFFEDReader.process(), DTuROSDigiToRaw.process(), fwlite::internal::DataKey.process(), TestOutliers.process, HTTP.RequestManager.process(), PixelTemplateSmearerBase.process(), edm::StoredMergeableRunProductMetadata::SingleRunEntryAndProcess.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, cond::payloadInspector::PlotBase.process(), Config.Process.process, DTWorkflow.DTWorkflow.process, ConfigBuilder.ConfigBuilder.process, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::ProductResolverIndexHelper::Item.process(), LHCInfoImpl::LumiSectionFilter.process(), JsonOutputProducer::JsonConfigurationBlock.process, AlignableObjectId::entry.type, omtf::CscDataWord64.type(), core.AutoHandle.AutoHandle.type, BCoptions.type, TotemTriggerCounters.type, core.autovars.NTupleVariable.type, omtf::RpcDataWord64.type(), reco::MuonMETCorrectionData.type(), MixingInputConfig.type(), omtf::MuonDataWord64.type(), l1t::Parameter.type, DQM.DQMReader.type, CalCluster.type, SurveyParameters.type(), omtf::DtDataWord64.type(), rpcrawtodigi::ReadoutError.type(), MuonResidualsTwoBin.type(), MuonResiduals1DOFFitter.type(), LocalFileSystem::FSInfo.type, reco::TrackingRecHitInfo.type(), DDHCalForwardAlgo.type, MuonResidualsAngleFitter.type(), hcaldqm::quantity::Quantity.type(), rpcrawtodigi::DataRecord.type(), plottingOptions.BasePlottingOptions.type, MuonResidualsBfieldAngleFitter.type(), MuonResidualsPositionFitter.type(), FWItemRandomAccessorBase.type(), DB_ME.type, reco::TrackInfo.type(), reco::PUSubMETCandInfo.type(), SummationStep.type, BeamSpotFakeConditions.type, FastTimeDetId.type(), FWItemSingleAccessor.type(), BdecayFilter::CutStruct.type, BsJpsiPhiFilter::CutStruct.type, TauJetCorrector::ParametrizationTauJet.type, edm::eventsetup::EventSetupRecordKey.type(), cond::TimeTypeSpecs.type, JetPartonNamespace::ParametrizationJetParton.type, L1DataEmulDigi.type(), FWItemTVirtualCollectionProxyAccessor.type(), FWItemAccessorBase.type(), HGCScintillatorDetId.type(), BeamSpotAlignmentParameters.type(), RigidBodyAlignmentParameters.type(), RigidBodyAlignmentParameters4D.type(), TauJetCorrector.type, MuonChamberResidual.type(), CosmicMuonSeedGenerator::MuonRecHitPair.type, HcalDcsDetId.type(), DQMGenericClient::EfficOption.type, HGCalTriggerDetId.type(), FWPhysicsObjectDesc.type(), HGCSiliconDetId.type(), edm::eventsetup::DataKey.type(), HFNoseDetId.type(), DTTMax::TMax.type, Entry.type(), ScoutingMuon.type(), RPCCompDetId.type(), MuonResiduals5DOFFitter.type(), L1GctInternHFData.type(), metsig::SigInputObj.type, MuonResiduals6DOFrphiFitter.type(), OpticalObject.type(), BowedSurfaceAlignmentParameters.type(), l1extra::L1EmParticle.type(), AlignmentParameters.type(), l1extra::L1JetParticle.type(), PrimaryVertexMonitor.type, MuonResiduals6DOFFitter.type(), l1extra::L1EtMissParticle.type(), CounterChecker.type, HGCalSimHitValidation::hitsinfo.type, hcaldqm::quantity::DetectorQuantity.type(), FWPSetTableManager::PSetData.type, cond::DataProxyWrapperBase.type(), ProcTMVA::Method.type, MuonGeometrySanityCheckPoint.type, hcaldqm::quantity::TrigTowerQuantity.type(), susybsm::HSCParticle.type(), reco::PFBlockElement.type(), Measurement.type(), ME::Settings.type, L1GctInternJetData.type(), PhysicsTools::TreeReader::Value.type, TwoBowedSurfacesAlignmentParameters.type(), pat::TriggerFilter.type(), DependencyGraph::node.type, L1GctInternHtMiss.type(), pat::TriggerCondition.type(), HcalTB04Analysis.type, L1GctInternEtSum.type(), HcalRaddamMuon.type, edm::Handle< GenericObject >.type(), FWEventItem.type(), HistoData.type, options.HLTProcessOptions.type, DTROSWordType.type(), nanoaod::FlatTable::Column.type, cuy.ValElement.type, edm::Handle< FWGenericObject >.type(), reco::BeamSpot.type(), MuonResidualsFitter.type(), pat::TriggerObject.type(), TrackingRecHit.type(), BPHMassFitSelect.type, DataProxyWrapper< RecordT, DataT, Initializer >.type(), cond::payloadInspector::PlotBase.type(), ME.type, FourVectorHLT::PathInfo.type(), L1Analysis::L1AnalysisRecoMuonDataFormat.type, edm::Entry.type, Json::Value.type(), beamvalidation.IOV.type, gen::Hydjet2Hadronizer.type, reco::Muon.type(), hcaldqm::quantity::ValueQuantity.type(), hcaldqm::quantity::ElectronicsQuantity.type(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.type(), edm::IndexIntoFile::IndexIntoFileItrImpl.type(), JsonOutputProducer::JsonVars.type, TrackingNtuple::SimHitData.type, and edm::IndexIntoFile::IndexIntoFileItr.type().

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProcess().

def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.package (   self,
  object 
)
Get Package of an object file 

Definition at line 439 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.fullFilename(), and split.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties().

439  def package(self, object):
440  """ Get Package of an object file """
441  shortdirname = os.path.dirname(self.fullFilename(object)).split('python/')
442  text = ""
443  if len(shortdirname) > 1:
444  text = shortdirname[1]
445  return text
446 
double split
Definition: MVATrainer.cc:139
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.parameters (   self,
  object 
)
Get parameters of an object 

Definition at line 447 of file ConfigDataAccessor.py.

References mps_monitormerge.items.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.inputTags(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.recursePSetProperties().

447  def parameters(self, object):
448  """ Get parameters of an object """
449  this_parameters = []
450  if hasattr(object, "parameters_"):
451  this_parameters = object.parameters_().items()
452  elif hasattr(object, "_seq"):
453  if hasattr(object._seq,"dumpSequencePython"):
454  this_parameters = [('sequence', object._seq.dumpSequencePython())]
455  else:
456  this_parameters = [('sequence', 'WARNING: object was removed from a sequence.')]
457  if hasattr(object, "tarlabel_"):
458  this_parameters += [('tarlabel', object.tarlabel_())]
459  return this_parameters
460 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties (   self,
  object 
)
Make list of all properties 

Definition at line 582 of file ConfigDataAccessor.py.

References fftluttypes::EtaFlatteningFactors.classname(), fftluttypes::PileupRhoCalibration.classname(), fftluttypes::PileupRhoEtaDependence.classname(), fftluttypes::LUT0.classname(), fftluttypes::LUT1.classname(), fftcorrtypes::BasicJet.classname(), fftluttypes::LUT2.classname(), fftcorrtypes::GenJet.classname(), fftluttypes::LUT3.classname(), fftcorrtypes::CaloJet.classname(), fftluttypes::LUT4.classname(), fftcorrtypes::PFJet.classname(), fftluttypes::LUT5.classname(), fftcorrtypes::TrackJet.classname(), fftluttypes::LUT6.classname(), fftcorrtypes::JPTJet.classname(), fftluttypes::LUT7.classname(), fftcorrtypes::PFCHS0.classname(), fftluttypes::LUT8.classname(), fftcorrtypes::PFCHS1.classname(), fftluttypes::LUT9.classname(), fftcorrtypes::PFCHS2.classname(), fftluttypes::LUT10.classname(), fftluttypes::LUT11.classname(), fftcorrtypes::BasicJetSys.classname(), fftluttypes::LUT12.classname(), fftcorrtypes::GenJetSys.classname(), fftluttypes::LUT13.classname(), fftcorrtypes::CaloJetSys.classname(), fftluttypes::LUT14.classname(), fftcorrtypes::PFJetSys.classname(), fftluttypes::LUT15.classname(), fftcorrtypes::TrackJetSys.classname(), fftcorrtypes::JPTJetSys.classname(), fftcorrtypes::PFCHS0Sys.classname(), fftcorrtypes::PFCHS1Sys.classname(), fftcorrtypes::PFCHS2Sys.classname(), fftcorrtypes::Gen0.classname(), fftcorrtypes::Gen1.classname(), fftcorrtypes::Gen2.classname(), fftcorrtypes::PF0.classname(), fftcorrtypes::PF1.classname(), fftcorrtypes::PF2.classname(), fftcorrtypes::PF3.classname(), fftcorrtypes::PF4.classname(), fftcorrtypes::Calo0.classname(), fftcorrtypes::Calo1.classname(), fftcorrtypes::Calo2.classname(), fftcorrtypes::Calo3.classname(), fftcorrtypes::Calo4.classname(), fftcorrtypes::Gen0Sys.classname(), fftcorrtypes::Gen1Sys.classname(), fftcorrtypes::Gen2Sys.classname(), fftcorrtypes::PF0Sys.classname(), fftcorrtypes::PF1Sys.classname(), fftcorrtypes::PF2Sys.classname(), fftcorrtypes::PF3Sys.classname(), fftcorrtypes::PF4Sys.classname(), fftcorrtypes::PF5Sys.classname(), fftcorrtypes::PF6Sys.classname(), fftcorrtypes::PF7Sys.classname(), fftcorrtypes::PF8Sys.classname(), fftcorrtypes::PF9Sys.classname(), fftcorrtypes::Calo0Sys.classname(), fftcorrtypes::Calo1Sys.classname(), fftcorrtypes::Calo2Sys.classname(), fftcorrtypes::Calo3Sys.classname(), fftcorrtypes::Calo4Sys.classname(), fftcorrtypes::Calo5Sys.classname(), fftcorrtypes::Calo6Sys.classname(), fftcorrtypes::Calo7Sys.classname(), fftcorrtypes::Calo8Sys.classname(), fftcorrtypes::Calo9Sys.classname(), fftcorrtypes::CHS0Sys.classname(), fftcorrtypes::CHS1Sys.classname(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.classname(), fftcorrtypes::CHS2Sys.classname(), fftcorrtypes::CHS3Sys.classname(), fftcorrtypes::CHS4Sys.classname(), fftcorrtypes::CHS5Sys.classname(), fftcorrtypes::CHS6Sys.classname(), fftcorrtypes::CHS7Sys.classname(), fftcorrtypes::CHS8Sys.classname(), fftcorrtypes::CHS9Sys.classname(), TShapeAnalysis.filename, dqmservices::DQMFileIterator::LumiEntry.filename, dqmservices::DQMFileIterator::EorEntry.filename, hippyaddtobaddatafiles.KeepWhileOpenFile.filename, LumiList.LumiList.filename, StatisticsFilter.filename, python.rootplot.rootmath.Target.filename, dqm::DQMFileSaverBase.filename(), SiStripQualityHotStripIdentifierRoot.filename, Vispa.Main.TabController.TabController.filename(), classes.OutputData.filename, dataset.DataFile.filename, cuy.ValElement.filename, python.rootplot.utilities.RootFile.filename, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.filename(), utils.unpickler.filename, HcalObjRepresent::ADataRepr.filename, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.foundIn(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.fullFilename(), python.readProv.filereader.Module.label, reco::tau::entry.label, core.AutoHandle.AutoHandle.label, L1TriggerKeyExtViewer.label, SubDetParams.label, reco::Centrality.label(), ElectronLikelihoodCategoryData.label, cond::BoostVersion.label(), entry< T >.label, classes.PlotData.label, SiPixelFedFillerWordEventNumber.label, GenericMVAComputerCache::IndividualComputer.label, l1t::L1GtBoardTypeStringToEnum.label, TtEvent::HypoClassKeyStringToEnum.label, HcalLutSet.label, L1GtBoardTypeStringToEnum.label, ConverterTester.label, TrackCandidateTopBottomHitFilter.label, l1t::L1TGtObjectStringToEnum.label, L1GtObjectStringToEnum.label, TaggingVariablePlotter::VariableConfig.label, SiPixelRawToDigi.label, HGCalValidator.label, muon::SelectionTypeStringToEnum.label, SiPixelQualityESProducer.label, HLTVertexPerformanceAnalyzer.label, hltPlot.label, FWPSetTableManager::PSetData.label, GlobalDigisHistogrammer.label, MillePedeVariables.label(), MultiTrackValidator.label, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.label, MuonSimHitsValidAnalyzer.label, PrimaryVertexProducer::algo.label, GlobalRecHitsHistogrammer.label, L1GtPsbQuadStringToEnum.label, PhysicsTools::MVAModuleHelper< Record, Object, Filler >.label, python.rootplot.utilities.Hist2D.label, TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscInfo.label, cond::DataProxyWrapperBase.label(), GlobalHitsTester.label, l1t::GtConditionTypeStringToEnum.label, pat::TriggerFilter.label(), DependencyGraph::node.label, GlobalHitsHistogrammer.label, MatrixInjector.MatrixInjector.label, ValidationMisalignedTracker.label, PrimaryVertexProducerAlgorithm::algo.label, GlobalHitsAnalyzer.label, TrackerHitProducer.label, HLTBTagPerformanceAnalyzer.label, l1t::GtConditionCategoryStringToEnum.label, DTDigiReader.label, GlobalHitsProducer.label, MatrixUtil.InputInfo.label, hitfit::FE_Obj.label, L1GtConditionTypeStringToEnum.label, python.rootplot.utilities.Hist.label, cond::payloadInspector::ModuleVersion.label, EcalSimHitsValidProducer.label, GlobalDigisProducer.label, FWColorSelect.label(), GlobalDigisAnalyzer.label, L1GtConditionCategoryStringToEnum.label, TkAlStyle.label(), GlobalRecHitsAnalyzer.label, GlobalRecHitsProducer.label, MuonTrackValidatorBase.label, Vispa.Gui.FindDialog.FindDialog.label(), FastTimerService::GroupOfModules.label, ScaleVarWeight.label, edm::TrieNodeIter< T >.label(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.label(), JsonOutputProducer::JsonVars.label, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.lineNumber(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.package(), function::ZMuStandaloneScaledFunction.parameters, function::ZMuTrackFunction.parameters, function::ZMuTrackScaledFunction.parameters, MuScleFitDBobject.parameters, function::ZMuMuNormalBack.parameters, function::ZMuTrackScaledNormalBack.parameters, function::ZMuMuBack.parameters, function::ZMuMuBackNorm.parameters, SimpleJetCorrectionUncertainty.parameters(), L1MuCSCTFConfiguration.parameters(), reco::GsfComponent5D.parameters(), RecHit2DLocalPos.parameters(), DDI::Solid.parameters(), SimpleJetCorrector.parameters(), InvalidTrackingRecHit.parameters(), TkFittedLasBeam.parameters(), RecHit1D.parameters(), TwoBodyDecay.parameters(), L1TCSCTFClient.parameters, TwoBodyDecayParameters.parameters(), AlignmentParametersData.parameters(), JetResolution.parameters(), EmulatedME0Segment.parameters(), PPSTimingCalibration.parameters(), DQMMessageLoggerClient.parameters, BeamSpotTransientTrackingRecHit.parameters(), CSCSegment.parameters(), MuonMiniAOD.parameters, DiMuonHistograms.parameters, DTSegmentsTask.parameters, MuonEnergyDepositAnalyzer.parameters, MuonSeedsAnalyzer.parameters, ME0Segment.parameters(), GEMSegment.parameters(), TriggerMatchEfficiencyPlotter.parameters, GEMCSCSegment.parameters(), EfficiencyAnalyzer.parameters, DTRecSegment4D.parameters(), SegmentTrackAnalyzer.parameters, MuonKinVsEtaAnalyzer.parameters, CosmicMuonRecoAnalyzer.parameters, EfficiencyPlotter.parameters, MuonTrackResidualsTest.parameters, TriggerMatchMonitor.parameters, gen::PomwigHadronizer.parameters, DTSLRecCluster.parameters(), MuonRecoAnalyzer.parameters, METCorrectorParameters::Record.parameters(), CompositeAlignmentParameters.parameters(), MuonRecoTest.parameters, MEtXYcorrectParameters::Record.parameters(), DDSolid.parameters(), TrapezoidalPlaneBounds.parameters(), AlignmentSurfaceDeformations.parameters(), MuonRecoOneHLT.parameters, PTrajectoryStateOnDet.parameters(), DTCalibValidation.parameters, DTRecSegment2D.parameters(), ConfObject.parameters, G4ProcessHelper.parameters, DTCalibValidationFromMuons.parameters, DTEfficiencyTask.parameters, JetCorrectorParameters::Record.parameters(), MuonAlignmentSummary.parameters, DTChamberEfficiencyTest.parameters, DTResolutionTest.parameters, DTSegmentAnalysisTask.parameters, AlignmentParameters.parameters(), reco::GsfTrackExtra.parameters(), DTSegmentAnalysisTest.parameters, DTEfficiencyTest.parameters, TrackingRecHit.parameters(), DTChamberEfficiencyTask.parameters, DTDataIntegrityTask.parameters, SiStripConfObject.parameters, DTTriggerEfficiencyTask.parameters, FWGeometry::GeomDetInfo.parameters, HCALResponse.parameters, DTLocalTriggerLutTask.parameters, BaseTrackerRecHit.parameters(), DTLocalTriggerBaseTest.parameters, MuonAlignment.parameters, Herwig6Hadronizer.parameters, METAnalyzer.parameters, DTLocalTriggerTask.parameters, DynamicTruncation.parameters, DCCTBDataParser.parameters, ReferenceTrajectoryBase.parameters(), reco::TrackBase.parameters(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.parameters(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.recursePSetProperties(), AlignableObjectId::entry.type, omtf::CscDataWord64.type(), core.AutoHandle.AutoHandle.type, BCoptions.type, TotemTriggerCounters.type, core.autovars.NTupleVariable.type, omtf::RpcDataWord64.type(), MixingInputConfig.type(), omtf::MuonDataWord64.type(), reco::MuonMETCorrectionData.type(), l1t::Parameter.type, DQM.DQMReader.type, SurveyParameters.type(), CalCluster.type, omtf::DtDataWord64.type(), rpcrawtodigi::ReadoutError.type(), MuonResidualsTwoBin.type(), MuonResiduals1DOFFitter.type(), LocalFileSystem::FSInfo.type, reco::TrackingRecHitInfo.type(), DDHCalForwardAlgo.type, MuonResidualsAngleFitter.type(), MuonResidualsBfieldAngleFitter.type(), plottingOptions.BasePlottingOptions.type, hcaldqm::quantity::Quantity.type(), rpcrawtodigi::DataRecord.type(), FWItemRandomAccessorBase.type(), MuonResidualsPositionFitter.type(), DB_ME.type, reco::TrackInfo.type(), SummationStep.type, reco::PUSubMETCandInfo.type(), BeamSpotFakeConditions.type, FWItemSingleAccessor.type(), FastTimeDetId.type(), BsJpsiPhiFilter::CutStruct.type, TauJetCorrector::ParametrizationTauJet.type, BdecayFilter::CutStruct.type, edm::eventsetup::EventSetupRecordKey.type(), cond::TimeTypeSpecs.type, JetPartonNamespace::ParametrizationJetParton.type, L1DataEmulDigi.type(), FWItemTVirtualCollectionProxyAccessor.type(), HGCScintillatorDetId.type(), FWItemAccessorBase.type(), RigidBodyAlignmentParameters.type(), BeamSpotAlignmentParameters.type(), RigidBodyAlignmentParameters4D.type(), MuonChamberResidual.type(), CosmicMuonSeedGenerator::MuonRecHitPair.type, TauJetCorrector.type, DQMGenericClient::EfficOption.type, HcalDcsDetId.type(), HGCalTriggerDetId.type(), FWPhysicsObjectDesc.type(), HGCSiliconDetId.type(), edm::eventsetup::DataKey.type(), HFNoseDetId.type(), DTTMax::TMax.type, Entry.type(), ScoutingMuon.type(), RPCCompDetId.type(), MuonResiduals5DOFFitter.type(), L1GctInternHFData.type(), metsig::SigInputObj.type, MuonResiduals6DOFrphiFitter.type(), BowedSurfaceAlignmentParameters.type(), OpticalObject.type(), l1extra::L1EmParticle.type(), AlignmentParameters.type(), l1extra::L1JetParticle.type(), PrimaryVertexMonitor.type, MuonResiduals6DOFFitter.type(), l1extra::L1EtMissParticle.type(), CounterChecker.type, hcaldqm::quantity::DetectorQuantity.type(), HGCalSimHitValidation::hitsinfo.type, FWPSetTableManager::PSetData.type, cond::DataProxyWrapperBase.type(), ProcTMVA::Method.type, MuonGeometrySanityCheckPoint.type, hcaldqm::quantity::TrigTowerQuantity.type(), susybsm::HSCParticle.type(), ME::Settings.type, reco::PFBlockElement.type(), Measurement.type(), L1GctInternJetData.type(), PhysicsTools::TreeReader::Value.type, TwoBowedSurfacesAlignmentParameters.type(), pat::TriggerFilter.type(), DependencyGraph::node.type, L1GctInternHtMiss.type(), pat::TriggerCondition.type(), HcalTB04Analysis.type, L1GctInternEtSum.type(), HcalRaddamMuon.type, edm::Handle< GenericObject >.type(), FWEventItem.type(), HistoData.type, options.HLTProcessOptions.type, DTROSWordType.type(), nanoaod::FlatTable::Column.type, cuy.ValElement.type, edm::Handle< FWGenericObject >.type(), reco::BeamSpot.type(), MuonResidualsFitter.type(), pat::TriggerObject.type(), TrackingRecHit.type(), BPHMassFitSelect.type, DataProxyWrapper< RecordT, DataT, Initializer >.type(), cond::payloadInspector::PlotBase.type(), ME.type, FourVectorHLT::PathInfo.type(), L1Analysis::L1AnalysisRecoMuonDataFormat.type, edm::Entry.type, Json::Value.type(), beamvalidation.IOV.type, gen::Hydjet2Hadronizer.type, reco::Muon.type(), hcaldqm::quantity::ValueQuantity.type(), hcaldqm::quantity::ElectronicsQuantity.type(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.type(), edm::IndexIntoFile::IndexIntoFileItrImpl.type(), JsonOutputProducer::JsonVars.type, TrackingNtuple::SimHitData.type, edm::IndexIntoFile::IndexIntoFileItr.type(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.usedBy(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.uses().

Referenced by Vispa.Share.BasicDataAccessor.BasicDataAccessor.property().

582  def properties(self, object):
583  """ Make list of all properties """
584  #logging.debug(__name__ + ": properties")
585  properties = []
586  properties += [("Category", "Object info", "")]
587  if self.label(object) != "":
588  properties += [("String", "label", self.label(object), None, True)]
589  if self.type(object) != "":
590  text = self.type(object)
591  if self.classname(object) != "":
592  text += " <" + self.classname(object) + ">"
593  properties += [("String", "type", text, None, True)]
594  if self.filename(object) != "":
595  text = self.filename(object)
596  if self.lineNumber(object) != "":
597  text += " : " + self.lineNumber(object)
598  properties += [("String", "file", text, None, True)]
599  if self.package(object) != "":
600  properties += [("String", "package", self.package(object), None, True)]
601  if self.fullFilename(object) != "":
602  properties += [("String", "full filename", self.fullFilename(object), None, True)]
603  foundIn=self.foundIn(object)
604  if len(foundIn) > 0:
605  text = ""
606  for entry in foundIn:
607  if text != "":
608  text += ", "
609  text += entry
610  properties += [("String", "in sequence", text, "This module/sequence is used the listed sequences", True)]
611  uses=self.uses(object)
612  usedBy=self.usedBy(object)
613  if len(uses) + len(usedBy) > 0:
614  properties += [("Category", "Connections", "")]
615  if len(uses) > 0:
616  text = ""
617  for label in uses:
618  if text != "":
619  text += ", "
620  text += label
621  properties += [("MultilineString", "uses", text, "This module/sequence depends on the output of the listes modules/seuquences", True)]
622  if len(usedBy) > 0:
623  text = ""
624  usedby = []
625  for entry in usedBy:
626  if text != "":
627  text += ", "
628  text += entry
629  properties += [("MultilineString", "used by", text, "The listed modules/sequences depend on the output of this module/sequence", True)]
630  if len(self.parameters(object)) > 0:
631  properties += [("Category", "Parameters", "")]
632  properties += self.recursePSetProperties("", object)
633  return tuple(properties)
634 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.pypackage (   self,
  object 
)

Definition at line 420 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.fullFilename(), and python.rootplot.root2matplotlib.replace().

420  def pypackage(self,object):
421  match_compiled = re.match(r'(?:^|.*?/)CMSSW[0-9_]*/python/((?:\w*/)*\w*)\.py$',self.fullFilename(object))
422  if match_compiled:
423  return match_compiled.group(1).replace('/','.')
424 
425  match_norm = re.match(r'(?:^|.*?/)(\w*)/(\w*)/(?:test|python)/((?:\w*/)*)(\w*)\.py$',self.fullFilename(object))
426  if match_norm:
427  return '%s.%s.%s%s' % (match_norm.group(1),match_norm.group(2),match_norm.group(3).replace('/','.'),match_norm.group(4))
428  return ''
429 
def replace(string, replacements)
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.pypath (   self,
  object 
)

Definition at line 430 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.fullFilename().

430  def pypath(self,object):
431  match_compiled = re.match(r'(?:^|.*?/)CMSSW[0-9_]*/python/((?:\w*/){2})((?:\w*/)*)(\w*\.py)$',self.fullFilename(object))
432  if match_compiled:
433  return '%spython/%s%s' % (match_compiled.group(1),match_compiled.group(2),match_compiled.group(3))
434  match_norm = re.match(r'(?:^|.*?/)(\w*/\w*/(?:test|python)/(?:\w*/)*\w*\.py)$',self.fullFilename(object))
435  if match_norm:
436  return match_norm.group(1)
437  return ''
438 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.readConnections (   self,
  objects,
  toNeighbors = False 
)
Read connection between objects 

Definition at line 107 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._allObjects, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._cancelOperationsFlag, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._connections, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._daughterRelationsDict, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._motherRelationsDict, SiStripClusterizer.inputTags, ShallowDigisProducer.inputTags, SiStripProcessedRawDigiProducer.inputTags, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.inputTags(), join(), python.readProv.filereader.Module.label, reco::tau::entry.label, L1TriggerKeyExtViewer.label, core.AutoHandle.AutoHandle.label, SubDetParams.label, reco::Centrality.label(), ElectronLikelihoodCategoryData.label, cond::BoostVersion.label(), entry< T >.label, classes.PlotData.label, SiPixelFedFillerWordEventNumber.label, GenericMVAComputerCache::IndividualComputer.label, l1t::L1GtBoardTypeStringToEnum.label, HcalLutSet.label, TtEvent::HypoClassKeyStringToEnum.label, L1GtBoardTypeStringToEnum.label, ConverterTester.label, TrackCandidateTopBottomHitFilter.label, l1t::L1TGtObjectStringToEnum.label, L1GtObjectStringToEnum.label, TaggingVariablePlotter::VariableConfig.label, SiPixelRawToDigi.label, HGCalValidator.label, muon::SelectionTypeStringToEnum.label, SiPixelQualityESProducer.label, HLTVertexPerformanceAnalyzer.label, hltPlot.label, FWPSetTableManager::PSetData.label, GlobalDigisHistogrammer.label, MillePedeVariables.label(), MultiTrackValidator.label, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.label, MuonSimHitsValidAnalyzer.label, GlobalRecHitsHistogrammer.label, PrimaryVertexProducer::algo.label, L1GtPsbQuadStringToEnum.label, PhysicsTools::MVAModuleHelper< Record, Object, Filler >.label, python.rootplot.utilities.Hist2D.label, TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscInfo.label, cond::DataProxyWrapperBase.label(), l1t::GtConditionTypeStringToEnum.label, GlobalHitsTester.label, GlobalHitsHistogrammer.label, DependencyGraph::node.label, pat::TriggerFilter.label(), MatrixInjector.MatrixInjector.label, ValidationMisalignedTracker.label, PrimaryVertexProducerAlgorithm::algo.label, GlobalHitsAnalyzer.label, TrackerHitProducer.label, HLTBTagPerformanceAnalyzer.label, l1t::GtConditionCategoryStringToEnum.label, GlobalHitsProducer.label, DTDigiReader.label, MatrixUtil.InputInfo.label, hitfit::FE_Obj.label, L1GtConditionTypeStringToEnum.label, python.rootplot.utilities.Hist.label, cond::payloadInspector::ModuleVersion.label, EcalSimHitsValidProducer.label, GlobalDigisProducer.label, FWColorSelect.label(), GlobalDigisAnalyzer.label, L1GtConditionCategoryStringToEnum.label, TkAlStyle.label(), GlobalRecHitsAnalyzer.label, GlobalRecHitsProducer.label, MuonTrackValidatorBase.label, Vispa.Gui.FindDialog.FindDialog.label(), FastTimerService::GroupOfModules.label, ScaleVarWeight.label, edm::TrieNodeIter< T >.label(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.label(), JsonOutputProducer::JsonVars.label, split, and str.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProcess().

107  def readConnections(self, objects,toNeighbors=False):
108  """ Read connection between objects """
109  connections={}
110  checkedObjects = set()
111  self._motherRelationsDict={}
112  self._daughterRelationsDict={}
113  if toNeighbors:
114  compareObjectList=[]
115  for obj in objects:
116  compareObjectList+=[(obj,o) for o in self._allObjects]
117  compareObjectList+=[(o,obj) for o in self._allObjects]
118  else:
119  compareObjectList=[(o1,o2) for o1 in objects for o2 in objects]
120  for connection in compareObjectList:
121  if self._cancelOperationsFlag:
122  break
123  try:
124  if (not connection in checkedObjects) and (connection not in self._connections):
125  checkedObjects.add(connection)
126  for key, value in self.inputTags(connection[1]):
127  s = str(value)
128  index = s.find(':')
129  if -1 != index:
130  module = s[:index]
131  else:
132  module = s
133  if module == self.label(connection[0]):
134  product = ".".join(str(value).split(":")[1:])
135  self._connections[connection]=(product, key)
136  if connection in self._connections:
137  connections[connection]=self._connections[connection]
138  if connection[1] not in self._motherRelationsDict:
139  self._motherRelationsDict[connection[1]]=[]
140  self._motherRelationsDict[connection[1]]+=[connection[0]]
141  if connection[0] not in self._daughterRelationsDict:
142  self._daughterRelationsDict[connection[0]]=[]
143  self._daughterRelationsDict[connection[0]]+=[connection[1]]
144  except TypeError:
145  return {}
146  return connections
147 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
#define str(s)
double split
Definition: MVATrainer.cc:139
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.recursePSetProperties (   self,
  name,
  object,
  readonly = None 
)

Definition at line 543 of file ConfigDataAccessor.py.

References Vispa.Main.Exceptions.exception_traceback(), function::ZMuStandaloneScaledFunction.parameters, function::ZMuTrackFunction.parameters, function::ZMuTrackScaledFunction.parameters, function::ZMuMuNormalBack.parameters, MuScleFitDBobject.parameters, function::ZMuTrackScaledNormalBack.parameters, function::ZMuMuBack.parameters, function::ZMuMuBackNorm.parameters, SimpleJetCorrectionUncertainty.parameters(), L1MuCSCTFConfiguration.parameters(), reco::GsfComponent5D.parameters(), RecHit2DLocalPos.parameters(), DDI::Solid.parameters(), SimpleJetCorrector.parameters(), InvalidTrackingRecHit.parameters(), TkFittedLasBeam.parameters(), RecHit1D.parameters(), TwoBodyDecay.parameters(), TwoBodyDecayParameters.parameters(), L1TCSCTFClient.parameters, JetResolution.parameters(), EmulatedME0Segment.parameters(), AlignmentParametersData.parameters(), PPSTimingCalibration.parameters(), DQMMessageLoggerClient.parameters, CSCSegment.parameters(), BeamSpotTransientTrackingRecHit.parameters(), MuonMiniAOD.parameters, MuonEnergyDepositAnalyzer.parameters, MuonSeedsAnalyzer.parameters, ME0Segment.parameters(), DiMuonHistograms.parameters, DTSegmentsTask.parameters, GEMCSCSegment.parameters(), GEMSegment.parameters(), TriggerMatchEfficiencyPlotter.parameters, MuonKinVsEtaAnalyzer.parameters, DTRecSegment4D.parameters(), SegmentTrackAnalyzer.parameters, EfficiencyAnalyzer.parameters, CosmicMuonRecoAnalyzer.parameters, EfficiencyPlotter.parameters, MuonTrackResidualsTest.parameters, TriggerMatchMonitor.parameters, gen::PomwigHadronizer.parameters, DTSLRecCluster.parameters(), MuonRecoAnalyzer.parameters, METCorrectorParameters::Record.parameters(), CompositeAlignmentParameters.parameters(), MEtXYcorrectParameters::Record.parameters(), MuonRecoTest.parameters, DDSolid.parameters(), AlignmentSurfaceDeformations.parameters(), MuonRecoOneHLT.parameters, TrapezoidalPlaneBounds.parameters(), PTrajectoryStateOnDet.parameters(), DTCalibValidation.parameters, DTRecSegment2D.parameters(), ConfObject.parameters, G4ProcessHelper.parameters, DTCalibValidationFromMuons.parameters, JetCorrectorParameters::Record.parameters(), DTEfficiencyTask.parameters, MuonAlignmentSummary.parameters, DTChamberEfficiencyTest.parameters, DTSegmentAnalysisTask.parameters, DTResolutionTest.parameters, AlignmentParameters.parameters(), reco::GsfTrackExtra.parameters(), DTSegmentAnalysisTest.parameters, DTEfficiencyTest.parameters, DTChamberEfficiencyTask.parameters, TrackingRecHit.parameters(), SiStripConfObject.parameters, DTDataIntegrityTask.parameters, FWGeometry::GeomDetInfo.parameters, DTTriggerEfficiencyTask.parameters, HCALResponse.parameters, DTLocalTriggerLutTask.parameters, BaseTrackerRecHit.parameters(), DTLocalTriggerBaseTest.parameters, MuonAlignment.parameters, Herwig6Hadronizer.parameters, METAnalyzer.parameters, DTLocalTriggerTask.parameters, DynamicTruncation.parameters, DCCTBDataParser.parameters, ReferenceTrajectoryBase.parameters(), reco::TrackBase.parameters(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.parameters(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.recursePSetProperties(), python.rootplot.root2matplotlib.replace(), split, str, and digitizers_cfi.strip.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.recursePSetProperties().

543  def recursePSetProperties(self, name, object, readonly=None):
544  #logging.debug(__name__ + ": recursePSetProperties: " + name)
545  properties = []
546  if name != "" and not isinstance(object, typ.PSet):
547  try:
548  partyp=str(type(object)).split("'")[1].replace("FWCore.ParameterSet.Types","cms")
549  if isinstance(object, cms.InputTag):
550  inputtagValue=object.pythonValue()
551  for i in range(3-len(inputtagValue.split(","))):
552  inputtagValue+=', ""'
553  properties += [("String", name, "cms.InputTag("+inputtagValue+")", partyp, readonly)]
554  elif isinstance(object, cms.bool):
555  properties += [("Boolean", name, object.value(), partyp, readonly)]
556  elif isinstance(object, (cms.int32, cms.uint32, cms.int64, cms.uint64)):
557  properties += [("Integer", name, object.value(), partyp, readonly)]
558  elif isinstance(object, cms.double):
559  properties += [("Double", name, object.value(), partyp, readonly)]
560  elif hasattr(object, "pythonValue"):
561  properties += [("String", name, str(object.pythonValue()).strip("\"'"), partyp, readonly)]
562  elif hasattr(object, "value"):
563  properties += [("MultilineString", name, str(object.value()), partyp, readonly)]
564  else:
565  properties += [("MultilineString", name, str(object), partyp, readonly)]
566  except Exception:
567  logging.error(__name__ + ": " + exception_traceback())
568 
569  if isinstance(object, ConfigFolder):
570  readonly = True
571 
572  params = self.parameters(object)[:]
573  params.sort(lambda x, y: cmp(x[0].lower(), y[0].lower()))
574  for key, value in params:
575  keyname = name
576  if name != "":
577  keyname += "."
578  keyname += key
579  properties += self.recursePSetProperties(keyname, value, readonly)
580  return properties
581 
def replace(string, replacements)
#define str(s)
double split
Definition: MVATrainer.cc:139
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setIsReplaceConfig (   self)
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProcess (   self,
  process 
)

Definition at line 228 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._allObjects, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._initLists(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._readRecursive(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._scheduledObjects, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._scheduleRecursive(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._sort_list(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._topLevelObjects, Vispa.Share.BasicDataAccessor.BasicDataAccessor.allChildren(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.applyCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.outputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.outputEventContent(), edm.print(), edm::ProductLabels.process, CSCTFMonitorInterface.process(), helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), CSCMonitorInterface.process(), PFPileUpAlgo.process(), HcalCableMapper.process(), BTagDifferentialPlot.process(), cms::DDCMSDetElementCreator.process(), runTauIdMVA.TauIDEmbedder.process, DTT0WireWorkflow.DTT0WireWorkflow.process, cms::DDDetector.process(), DTVdriftWorkflow.DTvdriftWorkflow.process, TrackingRecHitNoSmearingPlugin.process(), TrackingRecHitStripGSPlugin.process(), cms::DDVolumeProcessor.process(), cscdqm::HWStandbyType.process, TrackingRecHitAlgorithm.process(), DTTFFEDReader.process(), DTTtrigWorkflow.DTttrigWorkflow.process, DTuROSRawToDigi.process(), DTuROSDigiToRaw.process(), fwlite::internal::DataKey.process(), TestOutliers.process, HTTP.RequestManager.process(), PixelTemplateSmearerBase.process(), edm::StoredMergeableRunProductMetadata::SingleRunEntryAndProcess.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, cond::payloadInspector::PlotBase.process(), Config.Process.process, DTWorkflow.DTWorkflow.process, ConfigBuilder.ConfigBuilder.process, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::ProductResolverIndexHelper::Item.process(), LHCInfoImpl::LumiSectionFilter.process(), JsonOutputProducer::JsonConfigurationBlock.process, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.readConnections(), and str.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.open().

228  def setProcess(self,process):
229  self._file.process=process
230  self._initLists()
231  parameters = {"name": self.process().process}
232  process_folder = ConfigFolder("process", None, parameters)
233 
234  self._allObjects += [process_folder]
235  self._topLevelObjects += [process_folder]
236 
237  folder_list = []
238  folder_list += [("source", [self.process().source])]
239  if self.process().schedule != None:
240  folder_list += [("paths", self.process().schedule)]
241  else:
242  folder_list += [("paths", six.itervalues(self.process().paths))]
243  folder_list += [("endpaths", six.itervalues(self.process().endpaths))]
244  folder_list += [("modules", self._sort_list(self.process().producers.values()+self.process().filters.values()+self.process().analyzers.values()))]
245  folder_list += [("services", self._sort_list(self.process().services.values()))]
246  folder_list += [("psets", self._sort_list(self.process().psets.values()))]
247  folder_list += [("vpsets", self._sort_list(self.process().vpsets.values()))]
248  folder_list += [("essources", self._sort_list(self.process().es_sources.values()))]
249  folder_list += [("esproducers", self._sort_list(self.process().es_producers.values()))]
250  folder_list += [("esprefers", self._sort_list(self.process().es_prefers.values()))]
251  folders={}
252  for foldername, entry in folder_list:
253  folder = ConfigFolder(foldername, process_folder)
254  self._allObjects += [folder]
255  folders[foldername]=folder
256  for path in entry:
257  self._readRecursive(folder, path)
258  if True:
259  print("Creating schedule...", end=' ')
260  self.readConnections(self.allChildren(folders["modules"]))
261  self._scheduleRecursive(folders["paths"])
262  self._scheduledObjects.reverse()
263  names = [l for t,l,p,pr in self.applyCommands(self.outputEventContent(),self.outputCommands())]
264  for obj in self.allChildren(folders["modules"]):
265  if str(obj) in names:
266  self._scheduledObjects+=[obj]
267  scheduled_folder = ConfigFolder("scheduled", folders["paths"])
268  self._allObjects += [scheduled_folder]
269  folders["paths"]._configChildren.remove(scheduled_folder)
270  folders["paths"]._configChildren.insert(0,scheduled_folder)
271  scheduled_folder._configChildren=self._scheduledObjects
272  print("done")
273  else:
275 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
#define str(s)
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProperty (   self,
  object,
  name,
  value,
  categoryName 
)
Sets a property with given name to value.

Definition at line 635 of file ConfigDataAccessor.py.

References Vispa.Main.Exceptions.exception_traceback(), edm::ProductLabels.process, CSCTFMonitorInterface.process(), helper::NullPostProcessor< OutputCollection, EdmFilter >.process(), CSCMonitorInterface.process(), PFPileUpAlgo.process(), HcalCableMapper.process(), BTagDifferentialPlot.process(), cms::DDCMSDetElementCreator.process(), runTauIdMVA.TauIDEmbedder.process, DTT0WireWorkflow.DTT0WireWorkflow.process, cms::DDDetector.process(), DTVdriftWorkflow.DTvdriftWorkflow.process, TrackingRecHitNoSmearingPlugin.process(), TrackingRecHitStripGSPlugin.process(), cms::DDVolumeProcessor.process(), cscdqm::HWStandbyType.process, TrackingRecHitAlgorithm.process(), DTTtrigWorkflow.DTttrigWorkflow.process, DTuROSRawToDigi.process(), DTTFFEDReader.process(), DTuROSDigiToRaw.process(), fwlite::internal::DataKey.process(), TestOutliers.process, HTTP.RequestManager.process(), PixelTemplateSmearerBase.process(), edm::StoredMergeableRunProductMetadata::SingleRunEntryAndProcess.process(), EgammaHLTValidationUtils.EgammaDQMModuleMaker.process, cond::payloadInspector::PlotBase.process(), Config.Process.process, DTWorkflow.DTWorkflow.process, ConfigBuilder.ConfigBuilder.process, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.process(), edm::ProductResolverIndexHelper::Item.process(), LHCInfoImpl::LumiSectionFilter.process(), JsonOutputProducer::JsonConfigurationBlock.process, and str.

635  def setProperty(self, object, name, value, categoryName):
636  """ Sets a property with given name to value.
637  """
638  if hasattr(object, "_seq") and name=="sequence":
639  return "Modification of sequences not supported yet."
640  else:
641  process=self.process()
642  try:
643  if isinstance(value,str) and\
644  not value[0]=="[" and\
645  not value[0:4]=="cms.":
646  exec("object." + name + "='''" + value + "'''")
647  else:
648  exec("object." + name + "=" + str(value))
649  except Exception as e:
650  error="Cannot set parameter "+name+" (see logfile for details):\n"+str(e)
651  logging.warning(__name__ + ": setProperty: Cannot set parameter "+name+": "+exception_traceback())
652  return error
653  return True
654 
def setProperty(self, object, name, value, categoryName)
#define str(s)
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.topLevelObjects (   self)
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.type (   self,
  object 
)
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.usedBy (   self,
  object 
)
Find config objects that use this as input 

Definition at line 529 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._allObjects, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._usedByDict, python.readProv.filereader.Module.label, reco::tau::entry.label, core.AutoHandle.AutoHandle.label, L1TriggerKeyExtViewer.label, SubDetParams.label, reco::Centrality.label(), ElectronLikelihoodCategoryData.label, cond::BoostVersion.label(), entry< T >.label, classes.PlotData.label, SiPixelFedFillerWordEventNumber.label, GenericMVAComputerCache::IndividualComputer.label, l1t::L1GtBoardTypeStringToEnum.label, HcalLutSet.label, TtEvent::HypoClassKeyStringToEnum.label, L1GtBoardTypeStringToEnum.label, TrackCandidateTopBottomHitFilter.label, ConverterTester.label, l1t::L1TGtObjectStringToEnum.label, L1GtObjectStringToEnum.label, TaggingVariablePlotter::VariableConfig.label, SiPixelRawToDigi.label, HGCalValidator.label, muon::SelectionTypeStringToEnum.label, SiPixelQualityESProducer.label, HLTVertexPerformanceAnalyzer.label, hltPlot.label, FWPSetTableManager::PSetData.label, GlobalDigisHistogrammer.label, MillePedeVariables.label(), MultiTrackValidator.label, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.label, MuonSimHitsValidAnalyzer.label, PrimaryVertexProducer::algo.label, GlobalRecHitsHistogrammer.label, L1GtPsbQuadStringToEnum.label, PhysicsTools::MVAModuleHelper< Record, Object, Filler >.label, python.rootplot.utilities.Hist2D.label, TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscInfo.label, cond::DataProxyWrapperBase.label(), l1t::GtConditionTypeStringToEnum.label, GlobalHitsTester.label, pat::TriggerFilter.label(), DependencyGraph::node.label, GlobalHitsHistogrammer.label, MatrixInjector.MatrixInjector.label, ValidationMisalignedTracker.label, PrimaryVertexProducerAlgorithm::algo.label, GlobalHitsAnalyzer.label, TrackerHitProducer.label, HLTBTagPerformanceAnalyzer.label, l1t::GtConditionCategoryStringToEnum.label, DTDigiReader.label, GlobalHitsProducer.label, MatrixUtil.InputInfo.label, hitfit::FE_Obj.label, L1GtConditionTypeStringToEnum.label, python.rootplot.utilities.Hist.label, cond::payloadInspector::ModuleVersion.label, EcalSimHitsValidProducer.label, GlobalDigisProducer.label, FWColorSelect.label(), GlobalDigisAnalyzer.label, L1GtConditionCategoryStringToEnum.label, TkAlStyle.label(), GlobalRecHitsAnalyzer.label, GlobalRecHitsProducer.label, MuonTrackValidatorBase.label, Vispa.Gui.FindDialog.FindDialog.label(), FastTimerService::GroupOfModules.label, ScaleVarWeight.label, edm::TrieNodeIter< T >.label(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.label(), JsonOutputProducer::JsonVars.label, and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.uses().

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties().

529  def usedBy(self, object):
530  """ Find config objects that use this as input """
531  if not object in self._usedByDict.keys():
532  usedby = []
533  for entry in self._allObjects:
534  for uses in self.uses(entry):
535  if self.label(object) == uses and not self.label(entry) in usedby:
536  usedby += [self.label(entry)]
537  try:
538  self._usedByDict[object]=usedby
539  except TypeError:
540  return []
541  return self._usedByDict[object]
542 
def Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.uses (   self,
  object 
)
Get list of all config objects that are used as input 

Definition at line 500 of file ConfigDataAccessor.py.

References Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._usesDict, SiStripClusterizer.inputTags, ShallowDigisProducer.inputTags, SiStripProcessedRawDigiProducer.inputTags, Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.inputTags(), join(), split, and str.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.usedBy().

500  def uses(self, object):
501  """ Get list of all config objects that are used as input """
502  if not object in self._usesDict.keys():
503  uses = []
504  for key, value in self.inputTags(object):
505  module = str(value).split(":")[0]
506  product = ".".join(str(value).split(":")[1:])
507  if module not in uses:
508  uses += [module]
509  try:
510  self._usesDict[object]=uses
511  except TypeError:
512  return []
513  return self._usesDict[object]
514 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
#define str(s)
double split
Definition: MVATrainer.cc:139

Member Data Documentation

Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._cancelOperationsFlag
private
Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._daughterRelationsDict
private
Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._foundInDict
private
Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._history
private
Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._inputTagsDict
private
Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._motherRelationsDict
private
Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._usedByDict
private
Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._usesDict
private