CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
Vispa.Views.LineDecayView.LineDecayContainer Class Reference
Inheritance diagram for Vispa.Views.LineDecayView.LineDecayContainer:
Vispa.Gui.WidgetContainer.WidgetContainer Vispa.Share.ObjectHolder.ObjectHolder Vispa.Gui.ConnectableWidget.ConnectableWidget Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner Vispa.Gui.VispaWidget.VispaWidget Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner Vispa.Gui.ZoomableWidget.ZoomableWidget Vispa.Gui.Zoomable.Zoomable

Public Member Functions

def __init__ (self, parent)
 
def addDecayLine (self, object, pos=None)
 
def addDecayNode (self, pos)
 
def addParticleByType (self, particleType=None, pos=None)
 
def applyFilter (self, objects)
 
def autolayout (self)
 
def autolayoutPostprocess (self)
 
def autolayoutThreadFinished (self, result)
 
def childContainer (self, objectId)
 
def childFinishedAutolayouting (self)
 
def children (self)
 
def childrenRect (self)
 
def contentStartY (self)
 
def createChildContainer (self, object, pos=None)
 
def createDecayObjectsFromPxlObject (self, operationId)
 
def createObject (self, dropType, pos)
 
def dataAccessor (self)
 
def dataObjects (self)
 
def decayObject (self, pxlObject)
 
def delete (self)
 
def deselectAllObjects (self)
 
def deselectAllWidgets (self, exception=None)
 
def dragEnterEvent (self, event)
 
def dropEvent (self, event)
 
def editable (self)
 
def keyPressEvent (self, event)
 
def mouseMoveEvent (self, event)
 
def mousePressEvent (self, event)
 
def mouseReleaseEvent (self, event)
 
def noDecorationsMode (self)
 
def object (self)
 
def objectMoved (self, decayObject, oldBoundingRect=None)
 
def operationId (self)
 
def paint (self, painter)
 
def paintDecayObject (self, painter, decayObject, generalPaintMode)
 
def removeObject (self, decayObject)
 
def scheduleUpdateVisibleList (self, update=True)
 
def select (self, decayObject)
 
def setAcceptDrops (self, accept)
 
def setDataAccessor (self, accessor)
 
def setEditable (self, editable)
 
def setPxlObject (self, object)
 
def setZoom (self, zoom)
 
def showEvent (self, event)
 
def sizeHint (self)
 
def tabController (self)
 
def updateVisibleList (self, force=False)
 
- Public Member Functions inherited from Vispa.Gui.WidgetContainer.WidgetContainer
def __init__ (self, parent=None)
 
def adjustContainerPositionWhenAutosizingEnabled (self)
 
def autolayoutChildren (self)
 
def autolayoutChildrenEnabled (self)
 
def autosize (self)
 
def collapsed (self)
 
def contentStartX (self)
 
def contentStartY (self)
 
def defineBackgroundBrush (self)
 
def enableAdjustContainerPositionWhenAutosizing (self, adjust)
 
def enableAutolayoutChildren (self, autolayout)
 
def mouseDoubleClickEvent (self, event)
 
def mouseMoveEvent (self, event)
 
def mousePressEvent (self, event)
 
def setNotCollapsable (self)
 
def setShowCollapseMenu (self, show=True)
 
def showMenu (self)
 
def sizeHint (self)
 
def toggleCollapse (self)
 
def widgetDragged (self, widget)
 
- Public Member Functions inherited from Vispa.Gui.ConnectableWidget.ConnectableWidget
def __init__ (self, parent=None, name=None)
 
def addMenuEntry (self, name, slot=None)
 
def addSinkPort (self, name, description=None)
 
def addSourcePort (self, name, description=None)
 
def arrangePorts (self, filter=None)
 
def attachedConnections (self)
 
def centerSinglePortVertically (self, ports, portX)
 
def defineDistances (self, keepDefaultRatio=False)
 
def deleteLater (self)
 
def dragWidget (self, pPos)
 
def drawBody (self, painter)
 
def drawPortLines (self, painter)
 
def drawPortNames (self, painter)
 
def dropArea (self, port)
 
def dropAreaPort (self, position)
 
def getEffectivePortHeight (self, port)
 
def getPortsHeight (self, portType)
 
def leaveEvent (self, event)
 
def menu (self)
 
def mouseMoveEvent (self, event)
 
def mousePressEvent (self, event)
 
def mouseReleaseEvent (self, event)
 
def move (self, target)
 
def port (self, name, type)
 
def portExists (self, name, description=None)
 
def ports (self)
 
def positionizeMenuWidget (self)
 
def rearangeContent (self)
 
def removeMenu (self)
 
def removeMenuEntry (self, entry)
 
def removePort (self, port)
 
def removePorts (self, filter=None)
 
def select (self, sel=True, multiSelect=False)
 
def setPortNamesPosition (self, position)
 
def setShowPortLines (self, show)
 
def setShowPortNames (self, show)
 
def setZoom (self, zoom)
 
def showMenu (self)
 
def sinkPort (self, name)
 
def sinkPorts (self)
 
def sizeHint (self)
 
def sourcePort (self, name)
 
def sourcePorts (self)
 
def updateAttachedConnections (self)
 
- Public Member Functions inherited from Vispa.Gui.VispaWidget.VispaWidget
def __init__ (self, parent=None)
 
def autosize (self, skipSizeHint=False)
 
def autosizeEnabled (self)
 
def bodyWidget (self)
 
def boundingRect (self)
 
def colorHeaderBackgroundEnabled (self)
 
def contentRect (self)
 
def defineArrowBackgroundShape (self)
 
def defineCircleBackgroundShape (self, painter)
 
def defineDistances (self, keepDefaultRatio=False)
 
def defineRectBackgroundShape (self, painter)
 
def defineRoundRectBackgroundShape (self, painter)
 
def delete (self)
 
def distances (self)
 
def dragReferencePoint (self)
 
def dragWidget (self, pPos)
 
def drawBody (self, painter)
 
def drawHeaderBackground (self, painter)
 
def drawImage (self, painter)
 
def drawTextField (self, painter)
 
def drawTitle (self, painter)
 
def enableAutopositionizeWhenZooming (self, auto)
 
def enableAutosizing (self, auto, keepAspectRatio=True)
 
def enableBackgroundGradient (self, enable=True)
 
def enableColorHeaderBackground (self, enable=True)
 
def getDistance (self, name, scale=None, keepDefaultRatio=False)
 
def height (self)
 
def imageRectF (self, width=None, height=None)
 
def imageSizeF (self)
 
def isDeletable (self)
 
def isDragable (self)
 
def isSelectable (self)
 
def isSelected (self)
 
def isTitlePoint (self, point)
 
def isUseBackgroundGradientEnabled (self)
 
def keyPressEvent (self, event)
 
def mouseDoubleClickEvent (self, event)
 
def mouseMoveEvent (self, event)
 
def mousePressEvent (self, event)
 
def mouseReleaseEvent (self, event)
 
def move (self, target)
 
def noRearangeContent (self, no=True)
 
def paint (self, painter, event=None)
 
def paintEvent (self, event)
 
def penColor (self)
 
def previousDragPosition (self)
 
def rearangeContent (self)
 
def resetMouseDragOffset (self)
 
def resize (self, width, height)
 
def scale (self)
 
def scheduleCalculateDistances (self)
 
def scheduleRearangeContent (self)
 
def select (self, sel=True, multiSelect=False)
 
def setArrowShape (self, direction)
 
def setBodyWidget (self, widget)
 
def setColors (self, penColor, fillColor1, fillColor2)
 
def setDeletable (self, deleteable)
 
def setDragable (self, dragable, recursive=False)
 
def setDragReferencePoint (self, pos)
 
def setImage (self, image)
 
def setMaximumSize (self, attr)
 
def setMinimumSize (self, attr)
 
def setPreviousDragPosition (self, position)
 
def setSelectable (self, selectable)
 
def setShape (self, shape)
 
def setText (self, text)
 
def setTextFieldAutosizeFont (self, auto)
 
def setTextFieldAutotruncateText (self, auto)
 
def setTitle (self, title)
 
def setZoom (self, zoom)
 
def showEvent (self, event)
 
def sizeHint (self)
 
def text (self)
 
def textField (self)
 
def textFieldIsSet (self)
 
def title (self)
 
def titleField (self)
 
def titleIsSet (self)
 
def unzoomedX (self)
 
def unzoomedY (self)
 
def width (self)
 
- Public Member Functions inherited from Vispa.Gui.ZoomableWidget.ZoomableWidget
def __init__ (self, parent=None)
 
def exportImage (self, filename=None)
 
def setZoom (self, zoom)
 
- Public Member Functions inherited from Vispa.Gui.Zoomable.Zoomable
def __init__ (self)
 
def decrementZoom (self)
 
def incrementZoom (self)
 
def setZoom (self, zoom)
 
def zoom (self)
 
def zoomFactor (self)
 
- Public Member Functions inherited from Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner
def deselectAllWidgets (self, exception=None)
 
def enableMultiSelect (self, multiSelect=True)
 
def initWidgetMovement (self, widget)
 
def keyPressEvent (self, event)
 
def lastMovedWidgets (self)
 
def mouseMoveEvent (self, event)
 
def mousePressEvent (self, event)
 
def mouseReleaseEvent (self, event)
 
def multiSelectEnabled (self)
 
def selectedWidgets (self)
 
def widgetAboutToDelete (self, widget)
 
def widgetDoubleClicked (self, widget)
 
def widgetDragged (self, widget)
 
def widgetSelected (self, widget, multiSelect=False)
 
- Public Member Functions inherited from Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner
def deleteSelectedConnections (self)
 
def getWidgetByName (self, name)
 
def hideMenuWidgets (self)
 
def portConnection (self, port1, port2=None)
 
def propagateEventUnderConnectionWidget (self, connection, event)
 
def updateConnections (self)
 
- Public Member Functions inherited from Vispa.Share.ObjectHolder.ObjectHolder
def __init__ (self)
 
def allDataObjectChildren (self, objects=None)
 
def appendObject (self, object)
 
def applyFilter (self, objects)
 
def clearObjects (self)
 
def dataAccessor (self)
 
def dataObject (self)
 
def dataObjects (self)
 
def dataObjectsCount (self)
 
def numberDataObjectChildren (self, objects=None)
 
def removeObject (self, object)
 
def setDataAccessor (self, accessor)
 
def setDataObject (self, object)
 
def setDataObjects (self, objects)
 
def setExclusiveMode (self, exclusive=True)
 
def setFilter (self, filter)
 

Private Attributes

 _allNodes
 
 _autolayoutingChildren
 
 _editable
 
 _existingObjectIds
 
 _hoveredObject
 
 _nodeVector
 
 _particlesDict
 
 _pxlObject
 
 _selectedList
 
 _subWidgetStartY
 
 _threadChain
 
 _titleClicked
 
 _updateVisibleListFlag
 
 _visibleList
 

Additional Inherited Members

- Public Attributes inherited from Vispa.Gui.ConnectableWidget.ConnectableWidget
 PORT_LINES_TARGET_X
 
 PORT_LINES_TARGET_Y
 
- Public Attributes inherited from Vispa.Gui.VispaWidget.VispaWidget
 fillColor1
 
 fillColor2
 
 framePenColor
 
 HEIGHT
 
 WIDTH
 

Detailed Description

Represents an Event or  EventView

Definition at line 267 of file LineDecayView.py.

Constructor & Destructor Documentation

def Vispa.Views.LineDecayView.LineDecayContainer.__init__ (   self,
  parent 
)

Definition at line 278 of file LineDecayView.py.

278  def __init__(self, parent):
279  logging.debug(self.__class__.__name__ +": __init__()")
282  ObjectHolder.__init__(self)
283  WidgetContainer.__init__(self, parent)
284  self.setEditable(parent.editable())
285  self.setSelectable(True)
286 
287  self._selectedList = []
288  self._visibleList = []
289  self._hoveredObject = None
290  self.setMouseTracking(True) # receive mouse events even if no button is pressed
291  self._titleClicked = False
292 
293  self._pxlObject = None
295  self._particlesDict = {}
297  self.setTitle(" ") # calculate correct height
298  self.show()
299  self.connect(self._threadChain, SIGNAL("finishedThreadChain"), self.autolayoutThreadFinished)
300  if isinstance(parent, LineDecayContainer):
301  self.connect(self, SIGNAL("finishedAutolayouting"), parent.childFinishedAutolayouting)
302 
def setSelectable(self, selectable)
Definition: VispaWidget.py:589

Member Function Documentation

def Vispa.Views.LineDecayView.LineDecayContainer.addDecayLine (   self,
  object,
  pos = None 
)
This function accepts a data object (e.g. a pxl object), creates a DecayLine for it and adds the latter to this container's objects list. 

Definition at line 555 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer._existingObjectIds, Vispa.Views.LineDecayView.LineDecayContainer._particlesDict, Vispa.Share.ObjectHolder.ObjectHolder.appendObject(), create_public_lumi_plots.color, Vispa.Share.ObjectHolder.ObjectHolder.dataAccessor(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor(), triggerObjects_cff.id, label, RecoTauValidation_cfi.lineStyle, Vispa.Share.ObjectHolder.ObjectHolder.removeObject(), Vispa.Views.LineDecayView.LineDecayContainer.scheduleUpdateVisibleList(), and str.

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.addParticleByType(), and Vispa.Views.LineDecayView.LineDecayContainer.createDecayObjectsFromPxlObject().

555  def addDecayLine(self, object, pos=None):
556  """ This function accepts a data object (e.g. a pxl object), creates a DecayLine for it and adds the latter to this container's objects list.
557 
558  """
559  if not object:
560  return None
561 
562  if not pos:
563  pos = QPoint(10, 10)
564  else:
565  pos -= QPoint(0.5 * DecayLine.DEFAULT_LENGTH, 0)
566 
567  # id() is slow, so ids of existing objects are stored
568  if self.dataAccessor():
569  dataObjectId = self.dataAccessor().id(object)
570  if dataObjectId in self._existingObjectIds:
571  # maybe here should the existing object be returned
572  return None
573  self._existingObjectIds.append(str(dataObjectId))
574 
575  # map pxl relations to gui components
576  # find potentially, already existing DecayNodes to be used by the DecayLine that will be created below
577  motherNode = None
578  daughterNode = None
579  if self.dataAccessor():
580  for daughter in self.dataAccessor().daughterRelations(object):
581  if daughter in self._particlesDict.keys():
582  daughterDecayObject = self._particlesDict[daughter]
583  if not daughterNode:
584  daughterNode = daughterDecayObject.motherNode()
585  elif daughterDecayObject.motherNode() != daughterNode and \
586  daughterDecayObject.motherNode().unite(daughterNode):
587  # already found one daughter
588  # need to make sure all of the other relevant nodes are united
589  self.removeObject(daughterNode)
590  daughterNode = daughterDecayObject.motherNode()
591 
592  for mother in self.dataAccessor().motherRelations(object):
593  if mother in self._particlesDict.keys():
594  motherDecayObject = self._particlesDict[mother]
595  if not motherNode:
596  motherNode = motherDecayObject.daughterNode()
597  elif motherDecayObject.daughterNode() != motherNode and \
598  motherDecayObject.daughterNode().unite(motherNode):
599  # already found one mother
600  # need to make sure all of the other relevant nodes are united
601  self.removeObject(motherNode)
602  motherNode = motherDecayObject.daughterNode()
603  if not motherNode:
604  motherNode = QPoint(pos)
605  if not daughterNode:
606  daughterNode = QPoint(pos.x() + DecayLine.DEFAULT_LENGTH, pos.y())
607 
608  # create DecayLine
609  newDecayLine = DecayLine(self, motherNode, daughterNode)
610  newDecayLine.setObject(object)
611  if self.dataAccessor():
612  newDecayLine.setLabel(self.dataAccessor().label(object))
613  newDecayLine.setColor(self.dataAccessor().color(object))
614  newDecayLine.setLineStyle(self.dataAccessor().lineStyle(object))
615  self._particlesDict[object] = newDecayLine
616 
617  self.appendObject(newDecayLine)
619  return newDecayLine
620 
char const * label
def addDecayLine(self, object, pos=None)
def scheduleUpdateVisibleList(self, update=True)
#define str(s)
def Vispa.Views.LineDecayView.LineDecayContainer.addDecayNode (   self,
  pos 
)
def Vispa.Views.LineDecayView.LineDecayContainer.addParticleByType (   self,
  particleType = None,
  pos = None 
)
This function asks the data accessor to create a new particle and makes sure it gets the properties (name, pdg id, charge) of the desired type.

particleType may either be None or a string specifying the object type.
pos is in 100% coordinates.

Definition at line 524 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer.addDecayLine(), Vispa.Share.ObjectHolder.ObjectHolder.dataAccessor(), and Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor().

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.createObject().

524  def addParticleByType(self, particleType=None, pos=None):
525  """ This function asks the data accessor to create a new particle and makes sure it gets the properties (name, pdg id, charge) of the desired type.
526 
527  particleType may either be None or a string specifying the object type.
528  pos is in 100% coordinates.
529  """
530 
531  if not particleType:
532  # this is nothing
533  return None
534  dataAccessor = self.dataAccessor()
535 
536  newParticle = dataAccessor.createParticle()
537  #newParticle.setName(particleType) # use this name to find id
538  categoryName = "Object info"
539  dataAccessor.setProperty(newParticle, "Name", particleType, categoryName) # use this name to find id
540  particleId = self.dataAccessor().particleId(newParticle)
541  if particleId != None:
542  #newParticle.setPdgNumber(particleId)
543  dataAccessor.setProperty(newParticle, "PdgNumber", particleId, categoryName)
544  particleName = self.dataAccessor().defaultName(newParticle)
545  if particleName:
546  # normalize name using id
547  #newParticle.setName(particleName)
548  dataAccessor.setProperty(newParticle, "Name", particleName, categoryName)
549  #newParticle.setCharge(self.dataAccessor().charge(newParticle))
550  dataAccessor.setProperty(newParticle, "Charge", dataAccessor.charge(newParticle), categoryName) #TODO: check whether this is necessary
551  self._pxlObject.setObject(newParticle)
552 
553  return self.addDecayLine(newParticle, pos)
554 
def addDecayLine(self, object, pos=None)
def addParticleByType(self, particleType=None, pos=None)
def Vispa.Views.LineDecayView.LineDecayContainer.applyFilter (   self,
  objects 
)
def Vispa.Views.LineDecayView.LineDecayContainer.autolayout (   self)

Definition at line 899 of file LineDecayView.py.

References str, Formatter.SimpleAsciiFormatter.title, listHistos.plotInfo.title, classes.PlotData.title, EventStringOutputBranches::NamedBranchPtr.title, preexistingValidation.PreexistingValidation.title, TriggerOutputBranches::NamedBranchPtr.title, TableOutputBranches::NamedBranchPtr.title, DB_ME.title, reco::DiscretizedEnergyFlow.title(), cscdqm::HistoBookRequest.title, Book.title(), FWTriggerTableView::Column.title, DQMGenericClient::EfficOption.title, alignment.Alignment.title, SiStripHistoTitle.title(), DQMGenericClient::ProfileOption.title, egHLT::MonElemContainer< T >.title(), dqmoffline::l1t::HistDefinition.title, Formatter.SimpleHTMLFormatter.title, SiPixelGenErrorHeader.title, python.rootplot.utilities.Hist2D.title, ecaldqm::binning::AxisSpecs.title, TestHits.title, TestSmoothHits.title, big::bigHeader.title, HistogramManager.title, FWPSetTableManager.title(), SiPixelTemplateHeader2D.title, presentation.SubsectionBase.title, TestTrackHits.title, python.rootplot.utilities.Hist.title, FWGeometryTableManagerBase.title(), Geometry.title, DataAdderTableManager.title(), cuy.plotElement.title, cond::payloadInspector::PlotBase.title(), cuy.additionElement.title, cuy.superimposeElement.title, TkAlMap.TkAlMap.title, cuy.graphElement.title, TrackerMap.title, SiPixelTemplateHeader.title, TkAlStyle.title(), python.rootplot.utilities.HistStack.title, and Vispa.Gui.VispaWidget.VispaWidget.title().

899  def autolayout(self):
900  logging.debug(self.__class__.__name__ +": autolayout() - %s" % str(self.title()))
901  if self._threadChain.isRunning():
902  logging.info(self.__class__.__name__ +": autolayout() - Autolayout thread is already running. Aborting...")
903  return
904 
906  try:
907  self._nodeVector = NodeVector()
908  self._allNodes = {}
909  for object in self.dataObjects():
910  if isinstance(object, DecayLine):
911  # make sure both nodes of particle are stored in self._nodeVector
912  # and set relations between these nodes
913  if not object.motherNode() in self._allNodes.keys():
914  # create new node
915  motherNode = Node()
916  motherNode.position = Vector2(0, 0)
917  motherNode.isVertex = False
918  self._allNodes[object.motherNode()] = motherNode
919  newMother = True
920  else:
921  # use same node again, if it was already created for another particle
922  motherNode = self._allNodes[object.motherNode()]
923  newMother = False
924  if not object.daughterNode() in self._allNodes.keys():
925  daughterNode = Node()
926  daughterNode.position = Vector2(0, 0)
927  daughterNode.isVertex = False
928  self._allNodes[object.daughterNode()] = daughterNode
929  newDaughter = True
930  else:
931  daughterNode = self._allNodes[object.daughterNode()]
932  newDaughter = False
933 
934  # the important step: set mother and daughter relations
935  # between both nodes of _one_ particle
936  motherNode.children.append(daughterNode)
937  daughterNode.mothers.append(motherNode)
938 
939  # only append nodes if they were newly created
940  if newMother:
941  self._nodeVector.append(motherNode)
942  if newDaughter:
943  self._nodeVector.append(daughterNode)
944 
945  nodeVectorSize = self._nodeVector.size()
946  if nodeVectorSize > 1:
947  adhoc = nodeVectorSize > 40
948  autolayouter = AutoLayout()
949  #logging.debug(self.__class__.__name__ +": calling pxl::AutoLayout.init() with "+str(self._nodeVector.size())+" Particles")
950  autolayouter.init(self._nodeVector)
951  logging.debug(self.__class__.__name__ +": calling pxl::AutoLayout.layout(%s) with %d Particles" % (str(adhoc), nodeVectorSize))
952  if adhoc:
953  autolayouter.layout(False)
954  else:
955  autolayouter.layout(True)
956  self.autolayoutThreadFinished(None)
957  except Exception:
958  logging.error(__name__ + ": Pxl Autolayout not found: " + exception_traceback())
959  return
960 
961  for child in self.children():
962  if isinstance(child, LineDecayContainer):
963  self._autolayoutingChildren.append(child)
964  child.autolayout()
965 
TGeoNode Node
#define str(s)
def Vispa.Views.LineDecayView.LineDecayContainer.autolayoutPostprocess (   self)

Definition at line 1026 of file LineDecayView.py.

References Vispa.Gui.WidgetContainer.WidgetContainer.autolayoutChildren(), Vispa.Gui.WidgetContainer.WidgetContainer.autolayoutChildrenEnabled(), Vispa.Gui.VispaWidget.VispaWidget.autosize(), edm::signalslot::Signal< void(const std::string &, const std::string &)>.emit(), edm::signalslot::Signal< void(service::SystemBounds const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &)>.emit(), edm::signalslot::Signal< void(const std::string &, const edmplugin::PluginInfo &)>.emit(), edm::signalslot::Signal< void(TerminationOrigin)>.emit(), edm::signalslot::Signal< void(StreamContext const &, PathContext const &, HLTPathStatus const &)>.emit(), edm::signalslot::Signal< void(edm::StreamContext const &, edm::ModuleCallingContext const &)>.emit(), edm::signalslot::Signal< void()>.emit(), edm::signalslot::Signal< void(std::string const &, bool)>.emit(), edm::signalslot::Signal< void(RunIndex)>.emit(), edm::signalslot::Signal< void(GlobalContext const &, ModuleCallingContext const &)>.emit(), edm::signalslot::Signal< void(eventsetup::ComponentDescription const *, eventsetup::EventSetupRecordKey const &, eventsetup::DataKey const &)>.emit(), edm::signalslot::Signal< void(LuminosityBlockIndex)>.emit(), edm::signalslot::Signal< void(const edmplugin::SharedLibrary &)>.emit(), edm::signalslot::Signal< void(edm::BranchDescription const &)>.emit(), edm::signalslot::Signal< void(GlobalContext const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &, PathContext const &)>.emit(), edm::signalslot::Signal< void(GlobalContext const &, TerminationOrigin)>.emit(), edm::signalslot::Signal< void(const boost::filesystem::path &)>.emit(), edm::signalslot::Signal< void(const edmplugin::PluginFactoryBase *)>.emit(), edm::signalslot::Signal< void(PathsAndConsumesOfModulesBase const &, ProcessContext const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &, TerminationOrigin)>.emit(), edm::signalslot::Signal< void(ModuleDescription const &)>.emit(), edm::signalslot::Signal< T >.emit(), edm::signalslot::Signal< void(StreamID)>.emit(), and Signal< void(BranchDescription const &)>.emit().

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.autolayoutThreadFinished(), and Vispa.Views.LineDecayView.LineDecayContainer.childFinishedAutolayouting().

1027  if not self.autolayoutChildrenEnabled():
1028  # autosize() calls autolayoutChildren() anyway
1029  # but: even if in edit-mode and user shall be able to freely move event views
1030  # on manually calling autolayout children should be autolayouted as well
1031  # this function positionizes children, it does not call pxl autolayouter on children
1032  self.autolayoutChildren()
1033  self.autosize()
1034  self.emit(SIGNAL("finishedAutolayouting"))
1035 
1036 
def autosize(self, skipSizeHint=False)
Definition: VispaWidget.py:833
def Vispa.Views.LineDecayView.LineDecayContainer.autolayoutThreadFinished (   self,
  result 
)

Definition at line 966 of file LineDecayView.py.

References SeedingNode< DATA >._allNodes, Vispa.Views.LineDecayView.LineDecayView._allNodes, SeedingTree< DATA >._allNodes, Vispa.Views.LineDecayView.LineDecayContainer._allNodes, Vispa.Views.LineDecayView.LineDecayContainer._autolayoutingChildren, Vispa.Views.LineDecayView.LineDecayView._nodeVector, Vispa.Views.LineDecayView.LineDecayContainer._nodeVector, Vispa.Views.LineDecayView.LineDecayContainer._subWidgetStartY, Vispa.Views.LineDecayView.LineDecayContainer.autolayoutPostprocess(), Vispa.Share.ObjectHolder.ObjectHolder.dataObjects(), Vispa.Share.ObjectHolder.ObjectHolder.dataObjectsCount(), ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), str, Formatter.SimpleAsciiFormatter.title, listHistos.plotInfo.title, classes.PlotData.title, EventStringOutputBranches::NamedBranchPtr.title, preexistingValidation.PreexistingValidation.title, TriggerOutputBranches::NamedBranchPtr.title, TableOutputBranches::NamedBranchPtr.title, DB_ME.title, reco::DiscretizedEnergyFlow.title(), cscdqm::HistoBookRequest.title, Book.title(), FWTriggerTableView::Column.title, DQMGenericClient::EfficOption.title, alignment.Alignment.title, SiStripHistoTitle.title(), DQMGenericClient::ProfileOption.title, egHLT::MonElemContainer< T >.title(), dqmoffline::l1t::HistDefinition.title, Formatter.SimpleHTMLFormatter.title, SiPixelGenErrorHeader.title, python.rootplot.utilities.Hist2D.title, ecaldqm::binning::AxisSpecs.title, TestHits.title, TestSmoothHits.title, big::bigHeader.title, HistogramManager.title, FWPSetTableManager.title(), SiPixelTemplateHeader2D.title, presentation.SubsectionBase.title, TestTrackHits.title, python.rootplot.utilities.Hist.title, FWGeometryTableManagerBase.title(), Geometry.title, DataAdderTableManager.title(), cuy.plotElement.title, cond::payloadInspector::PlotBase.title(), cuy.additionElement.title, cuy.superimposeElement.title, TkAlMap.TkAlMap.title, cuy.graphElement.title, TrackerMap.title, SiPixelTemplateHeader.title, TkAlStyle.title(), python.rootplot.utilities.HistStack.title, Vispa.Gui.VispaWidget.VispaWidget.title(), and Vispa.Gui.Zoomable.Zoomable.zoomFactor().

966  def autolayoutThreadFinished(self, result):
967  logging.debug(self.__class__.__name__ +" autolayoutThreadFinished() - %s" % str(self.title()))
968  if self._threadChain.isRunning():
969  logging.info(self.__class__.__name__ +": autolayoutThreadFinished() - Thread is still running. Aborting...")
970  return
971  minOrphanY = 0
972  maxNonOrphanY = 0
973  firstMinOrphanY = True
974  firstMaxNonOrphanY = True
975  minY = 0
976  maxY = 0
977  for i in range(len(self._nodeVector)):
978  if i == 0 or self._nodeVector[i].position.y < minY:
979  minY = self._nodeVector[i].position.y
980  if i == 0 or self._nodeVector[i].position.y > maxY:
981  maxY = self._nodeVector[i].position.y
982 
983  if (len(self._nodeVector[i].mothers) == 1 and len(self._nodeVector[i].children) == 0) or (len(self._nodeVector[i].mothers) == 0 and len(self._nodeVector[i].children) == 1):
984  # orphan particles:
985  # nodes have exactly one relation
986  # eighter node is mother or daughter (left and right side of particle)
987  if firstMinOrphanY or self._nodeVector[i].position.y > minOrphanY:
988  minOrphanY = self._nodeVector[i].position.y
989  firstMinOrphanY = False
990  else:
991  # non orphans
992  if firstMaxNonOrphanY or self._nodeVector[i].position.y < maxNonOrphanY:
993  maxNonOrphanY = self._nodeVector[i].position.y
994  firstMaxNonOrphanY = False
995 
996  xOffset = -30
997  yOffset = -minY + (self.getDistance("titleFieldBottom") + 4* self.getDistance("topMargin")) / self.zoomFactor()
998 
999  for decayNode in self.dataObjects():
1000  if isinstance(decayNode, DecayNode) and decayNode in self._allNodes.keys():
1001  decayNode.setPosition(QPoint(self._allNodes[decayNode].position.x + xOffset, self._allNodes[decayNode].position.y + yOffset))
1002 
1003  # arrange potential sub-views under decay tree
1004  self._subWidgetStartY = (maxY - minY) + 1.0* (self.getDistance("titleFieldBottom") + self.getDistance("topMargin") + self.getDistance("topMargin")) / self.zoomFactor()
1005  if self.dataObjectsCount() > 0:
1006  # add some pixels for last particle
1007  self._subWidgetStartY += 20
1008 
1009  if len(self._autolayoutingChildren) == 0:
1010  self.autolayoutPostprocess()
1011 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
#define str(s)
def Vispa.Views.LineDecayView.LineDecayContainer.childContainer (   self,
  objectId 
)
Returns the widget component representing the given pxl object.

Definition at line 441 of file LineDecayView.py.

References Vispa.Share.BasicDataAccessor.BasicDataAccessor.children(), Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor.children(), data_sources.node.children(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.children(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.children(), geometry.Structure.children, Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), Vispa.Views.LineDecayView.LineDecayContainer.children(), Vispa.Share.ObjectHolder.ObjectHolder.dataAccessor(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor(), and triggerObjects_cff.id.

441  def childContainer(self, objectId):
442  """ Returns the widget component representing the given pxl object.
443  """
444  if not objectId:
445  return None
446 
447  for child in self.children():
448  if isinstance(child, LineDecayContainer):
449  if self.dataAccessor().id(child.object()) == objectId:
450  return child
451  subChild = child.childContainer(object)
452  if subChild:
453  return subChild
454  return None
455 
def Vispa.Views.LineDecayView.LineDecayContainer.childFinishedAutolayouting (   self)

Definition at line 1015 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer._autolayoutingChildren, Vispa.Views.LineDecayView.LineDecayContainer.autolayoutPostprocess(), str, Formatter.SimpleAsciiFormatter.title, listHistos.plotInfo.title, classes.PlotData.title, EventStringOutputBranches::NamedBranchPtr.title, preexistingValidation.PreexistingValidation.title, TriggerOutputBranches::NamedBranchPtr.title, TableOutputBranches::NamedBranchPtr.title, DB_ME.title, reco::DiscretizedEnergyFlow.title(), cscdqm::HistoBookRequest.title, Book.title(), FWTriggerTableView::Column.title, DQMGenericClient::EfficOption.title, alignment.Alignment.title, SiStripHistoTitle.title(), DQMGenericClient::ProfileOption.title, egHLT::MonElemContainer< T >.title(), dqmoffline::l1t::HistDefinition.title, Formatter.SimpleHTMLFormatter.title, SiPixelGenErrorHeader.title, python.rootplot.utilities.Hist2D.title, ecaldqm::binning::AxisSpecs.title, TestHits.title, TestSmoothHits.title, big::bigHeader.title, HistogramManager.title, FWPSetTableManager.title(), SiPixelTemplateHeader2D.title, presentation.SubsectionBase.title, TestTrackHits.title, python.rootplot.utilities.Hist.title, FWGeometryTableManagerBase.title(), Geometry.title, DataAdderTableManager.title(), cuy.plotElement.title, cond::payloadInspector::PlotBase.title(), cuy.additionElement.title, cuy.superimposeElement.title, TkAlMap.TkAlMap.title, cuy.graphElement.title, TrackerMap.title, SiPixelTemplateHeader.title, TkAlStyle.title(), python.rootplot.utilities.HistStack.title, and Vispa.Gui.VispaWidget.VispaWidget.title().

1016  logging.debug(self.__class__.__name__ +": childFinishedAutolayouting() - %s" % str(self.title()))
1017  if self.sender() and isinstance(self.sender(), LineDecayContainer):
1018  child = self.sender()
1019  if child in self._autolayoutingChildren:
1020  self._autolayoutingChildren.remove(child)
1021 
1022  if len(self._autolayoutingChildren) == 0 and not self._threadChain.isRunning():
1023  # wait until all children are done
1024  self.autolayoutPostprocess()
1025 
#define str(s)
def Vispa.Views.LineDecayView.LineDecayContainer.children (   self)

Definition at line 397 of file LineDecayView.py.

References Vispa.Share.ObjectHolder.ObjectHolder.dataObjects().

Referenced by 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.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.getWidgetByName(), Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.hideMenuWidgets(), Vispa.Views.LineDecayView.LineDecayView.lineDecayContainer(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.mouseReleaseEvent(), 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().

397  def children(self):
398  return WidgetContainer.children(self) + [node for node in self.dataObjects() if isinstance(node, DecayNode)]
399 
def Vispa.Views.LineDecayView.LineDecayContainer.childrenRect (   self)
Overwrites QWidget's method and includes DecayObjects in addition to QWidgets.

Definition at line 370 of file LineDecayView.py.

References Vispa.Gui.WidgetContainer.WidgetContainer.collapsed(), Vispa.Share.ObjectHolder.ObjectHolder.dataObjects(), ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), and Vispa.Gui.Zoomable.Zoomable.zoomFactor().

Referenced by Vispa.Gui.WidgetContainer.WidgetContainer.sizeHint().

370  def childrenRect(self):
371  """ Overwrites QWidget's method and includes DecayObjects in addition to QWidgets.
372  """
373  minX = 0
374  minY = 0
375  maxX = 0
376  maxY = 0
377  if not self.collapsed():
378  first = True
379  for object in self.dataObjects():
380  if not isinstance(object, DecayNode):
381  continue
382  if first or minX > object.x():
383  minX = object.x()
384  if first or minY > object.y():
385  minY = object.y()
386  if first or maxX < object.x():
387  maxX = object.x()
388  if first or maxY < object.y():
389  maxY = object.y()
390  first = False
391  minX *= self.zoomFactor()
392  minY *= self.zoomFactor()
393  maxX = (maxX * self.zoomFactor() + self.getDistance("rightMargin"))
394  maxY = (maxY * self.zoomFactor() + self.getDistance("bottomMargin"))
395  return QRect(minX, minY, maxX - minX, maxY - minY).united(WidgetContainer.childrenRect(self))
396 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
def Vispa.Views.LineDecayView.LineDecayContainer.contentStartY (   self)
def Vispa.Views.LineDecayView.LineDecayContainer.createChildContainer (   self,
  object,
  pos = None 
)

Definition at line 456 of file LineDecayView.py.

References Vispa.Gui.Zoomable.Zoomable.zoomFactor().

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.createDecayObjectsFromPxlObject(), and Vispa.Views.LineDecayView.LineDecayContainer.createObject().

456  def createChildContainer(self, object, pos=None):
457  lineDecayView = LineDecayContainer(self)
458  lineDecayView.setPxlObject(object)
459 
460  if not pos:
461  margin = 10 * self.zoomFactor()
462  pos = QPoint(margin, margin)
463  else:
464  pos -= QPoint(0.5* lineDecayView.width(), 0.5* lineDecayView.height())
465 
466  lineDecayView.move(pos)
467  return lineDecayView
468 
def createChildContainer(self, object, pos=None)
def Vispa.Views.LineDecayView.LineDecayContainer.createDecayObjectsFromPxlObject (   self,
  operationId 
)
Creates DecayObjects for all particles in the set pxl object.

In addition this function is called on all child LineDecayContainers.

Definition at line 629 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer._pxlObject, Vispa.Views.LineDecayView.LineDecayContainer.addDecayLine(), Vispa.Share.ObjectHolder.ObjectHolder.applyFilter(), Vispa.Share.BasicDataAccessor.BasicDataAccessor.children(), Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor.children(), data_sources.node.children(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.children(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.children(), geometry.Structure.children, Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), Vispa.Views.LineDecayView.LineDecayContainer.children(), Vispa.Views.LineDecayView.LineDecayContainer.createChildContainer(), Vispa.Share.ObjectHolder.ObjectHolder.dataAccessor(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor(), Vispa.Views.LineDecayView.LineDecayView.operationId(), and Vispa.Views.LineDecayView.LineDecayContainer.operationId().

629  def createDecayObjectsFromPxlObject(self, operationId):
630  """ Creates DecayObjects for all particles in the set pxl object.
631 
632  In addition this function is called on all child LineDecayContainers.
633  """
634  #logging.debug(self.__class__.__name__ +": createDecayObjectsFromPxlObject()")
635  if self._pxlObject and self.dataAccessor():
636  for childObject in self.applyFilter(self.dataAccessor().children(self._pxlObject)):
637  if operationId != self.operationId():
638  return False
639  if self.dataAccessor().isContainer(childObject):
640  self.createChildContainer(childObject)
641  else:
642  self.addDecayLine(childObject)
643 
644  for child in self.children():
645  #if not Application.NO_PROCESS_EVENTS:
646  # QCoreApplication.instance().processEvents()
647  if operationId != self.operationId():
648  return False
649  if isinstance(child, LineDecayContainer):
650  if not child.createDecayObjectsFromPxlObject(operationId):
651  return False
652  return True
653 
def addDecayLine(self, object, pos=None)
def createDecayObjectsFromPxlObject(self, operationId)
def createChildContainer(self, object, pos=None)
def Vispa.Views.LineDecayView.LineDecayContainer.createObject (   self,
  dropType,
  pos 
)

Definition at line 478 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayView._editable, Vispa.Views.LineDecayView.LineDecayContainer._editable, Vispa.Views.LineDecayView.LineDecayContainer.addDecayNode(), Vispa.Views.LineDecayView.LineDecayContainer.addParticleByType(), Vispa.Gui.VispaWidget.VispaWidget.autosize(), ConnectionManager.connect(), conditionUploadTest.DB.connect(), RPCDBCom.connect(), l1t::DataManager.connect(), TestBase.connect(), HCALConfigDB.connect(), ReadBase.connect(), ShallowTree::BranchConnector.connect(), dqmservices::DQMMonitoringService.connect(), SimActivityRegistry.connect(), sim_act::Signaler< EndOfEvent >.connect(), sim_act::Signaler< BeginOfRun >.connect(), sim_act::Signaler< BeginOfEvent >.connect(), sim_act::Signaler< G4Step >.connect(), sim_act::Signaler< BeginOfTrack >.connect(), sim_act::Signaler< DDDWorld >.connect(), sim_act::Signaler< EndOfRun >.connect(), sim_act::Signaler< BeginOfJob >.connect(), sim_act::Signaler< EndOfTrack >.connect(), sim_act::Signaler< T >.connect(), ShallowTree::TypedBranchConnector< T >.connect(), edm::ServiceToken.connect(), edm::signalslot::Signal< void(GlobalContext const &)>.connect(), edm::signalslot::Signal< void(edm::BranchDescription const &)>.connect(), edm::signalslot::Signal< void(const edmplugin::SharedLibrary &)>.connect(), edm::signalslot::Signal< void(LuminosityBlockIndex)>.connect(), edm::signalslot::Signal< void(eventsetup::ComponentDescription const *, eventsetup::EventSetupRecordKey const &, eventsetup::DataKey const &)>.connect(), edm::signalslot::Signal< void(GlobalContext const &, ModuleCallingContext const &)>.connect(), edm::signalslot::Signal< void(RunIndex)>.connect(), edm::signalslot::Signal< void(std::string const &, bool)>.connect(), edm::signalslot::Signal< void()>.connect(), edm::signalslot::Signal< void(edm::StreamContext const &, edm::ModuleCallingContext const &)>.connect(), edm::signalslot::Signal< void(StreamContext const &, PathContext const &, HLTPathStatus const &)>.connect(), edm::signalslot::Signal< void(TerminationOrigin)>.connect(), edm::signalslot::Signal< void(const std::string &, const edmplugin::PluginInfo &)>.connect(), edm::signalslot::Signal< void(StreamContext const &)>.connect(), edm::signalslot::Signal< void(const std::string &, const std::string &)>.connect(), edm::signalslot::Signal< void(StreamID)>.connect(), edm::signalslot::Signal< void(GlobalContext const &, TerminationOrigin)>.connect(), edm::signalslot::Signal< void(StreamContext const &, PathContext const &)>.connect(), edm::signalslot::Signal< void(service::SystemBounds const &)>.connect(), Signal< void(BranchDescription const &)>.connect(), edm::signalslot::Signal< T >.connect(), edm::signalslot::Signal< void(ModuleDescription const &)>.connect(), edm::signalslot::Signal< void(StreamContext const &, TerminationOrigin)>.connect(), edm::signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)>.connect(), edm::signalslot::Signal< void(PathsAndConsumesOfModulesBase const &, ProcessContext const &)>.connect(), edm::signalslot::Signal< void(const edmplugin::PluginFactoryBase *)>.connect(), edm::signalslot::Signal< void(const boost::filesystem::path &)>.connect(), o2o_db_manager.DbManager.connect(), PFCandConnector.connect(), confdbOfflineConverter.OfflineConverter.connect, L1TOMDSHelper.connect(), DDTOBRodAlgo.connect, GlobalTag.GlobalTag.connect(), edm::signalslot::ObsoleteSignal< void(ModuleDescription const &)>.connect(), edm::signalslot::ObsoleteSignal< void(EventID const &, Timestamp const &)>.connect(), edm::signalslot::ObsoleteSignal< void(LuminosityBlock const &, EventSetup const &)>.connect(), edm::signalslot::ObsoleteSignal< void(LuminosityBlockID const &, Timestamp const &)>.connect(), edm::signalslot::ObsoleteSignal< void(RunID const &, Timestamp const &)>.connect(), edm::signalslot::ObsoleteSignal< void(std::string const &, HLTPathStatus const &)>.connect(), edm::signalslot::ObsoleteSignal< void(std::string const &)>.connect(), edm::signalslot::ObsoleteSignal< void(Event const &, EventSetup const &)>.connect(), edm::signalslot::ObsoleteSignal< void(Run const &, EventSetup const &)>.connect(), edm::signalslot::ObsoleteSignal< T >.connect(), SiStripGainFromCalibTree.connect(), edm::serviceregistry::ServicesManager.connect(), conddb_version_mgr.conddb_tool.connect(), o2olib.O2OJobMgr.connect(), cond::service::PoolDBOutputService.connect(), l1t::OMDSReader.connect(), edm::ActivityRegistry.connect(), Vispa.Views.LineDecayView.LineDecayContainer.createChildContainer(), PileUpSummaryInfo.PileUpSummaryInfo.object, HLTTauDQMPath::Object.object, SingleObjectCondition.object, SingleObjectTrigger.object, MEtoEDM< T >::MEtoEDMObject.object, PhysicsTools::TrainerMonitoring::RootObject< T >.object, querying.connection.object(), querying.factory.object(), Vispa.Views.LineDecayView.LineDecayContainer.object(), python.Events.object(), FWViewContextMenuHandlerGL.select(), SeedConfigSelector.select(), pf2pat::PtMinPFCandidateSelectorDefinition.select(), pf2pat::PdgIdPFCandidateSelectorDefinition.select(), cond::persistency::ITagTable.select(), pf2pat::GenericPFJetSelectorDefinition.select(), RecoTrackViewRefSelector.select(), AlignmentSeedSelector.select(), ipf2pat::ObjectSelector< Selector, CollectionType >.select(), RecoTrackRefSelector.select(), CSCOverlapConfigSelector.select(), AlignmentCSCOverlapSelector.select(), RecoTrackSelector.select(), AlignmentCSCTrackSelector.select(), CSCBeamHaloConfigSelector.select(), CalibrationTrackSelector.select(), AlignmentCSCBeamHaloSelector.select(), pf2pat::GenericPFCandidateSelectorDefinition.select(), CSCTrackConfigSelector.select(), cond::persistency::GLOBAL_TAG::Table.select(), EventSelector.select(), SiStripCalTrackConfigSelector.select(), cond::persistency::TAG::Table.select(), RawDataFEDSelector.select(), AlignmentTwoBodyDecayTrackSelector.select(), pf2pat::IsolatedPFCandidateSelectorDefinition.select(), pf2pat::MuonIDPFCandidateSelectorDefinition.select(), pf2pat::IPCutPFCandidateSelectorDefinition.select(), RPCMonitorLinkSynchro.select(), AlignmentGlobalTrackSelector.select(), AlignmentTrackSelector.select(), StringCutEventSelector< Object, any >.select(), SingleEleCalibSelector.select(), reco::modules::MatcherBase< C1, C2, M >.select(), MuonConfigSelector.select(), AlignmentMuonSelector.select(), SingleElementCollectionSelectorPlusEvent< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >.select(), reco::modulesNew::Matcher< C1, C2, S, D >.select(), TrackConfigSelector.select(), FWModelExpressionSelector.select(), cond::persistency::IPayloadTable.select(), AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >.select(), ObjectPairCollectionSelector< InputCollection, Selector, StoreContainer, RefAdder >.select(), SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >.select(), SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >.select(), SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >.select(), reco::SelectInCollection< Object >.select(), AlCaDiJetsProducer.select(), AlCaGammaJetProducer.select(), cond::persistency::RUN_INFO::Table.select(), cond::persistency::IIOVTable.select(), FWModelId.select(), pf2pat::ElectronIDPFCandidateSelectorDefinition.select(), FWSelectionManager.select(), reco::modules::Matcher< C1, C2, S, D, M >.select(), cond::persistency::GLOBAL_TAG_MAP::Table.select(), FWViewContextMenuHandlerBase.select(), reco::SelectIndecesInCollection< Object >.select(), AlCaHBHEMuonProducer.select(), cond::persistency::PAYLOAD::Table.select(), AlCaGammaJetSelector.select(), CosmicTrackingParticleSelector.select(), CandCombinerBase< OutputCollection, CandPtr >.select(), cond::persistency::ITagMigrationTable.select(), NamedCandCombinerBase.select(), reco::PhysObjectMatcher< C1, C2, S, D, Q >.select(), cond::persistency::IPayloadMigrationTable.select(), AlCaIsoTracksProducer.select(), StringCutsEventSelector< Object, existenceMatter >.select(), cond::persistency::IGTTable.select(), NamedCandCombiner< Selector, PairSelector, Cloner, Setup >.select(), MuonResidualsFitter::MuonAlignmentTreeRow.select, cond::persistency::IGTMapTable.select(), CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.select(), cond::persistency::IOV::Table.select(), cond::persistency::IRunInfoTable.select(), SelectionStepHLTBase.select(), FWEventItem.select(), SelectionStepHLT< Object >.select(), SelectionStep< Object >.select(), Vispa.Gui.ConnectableWidget.ConnectableWidget.select(), Vispa.Views.LineDecayView.LineDecayView.tabController(), Vispa.Views.LineDecayView.LineDecayContainer.tabController(), DDDWorldObserver< Event >.update(), ECALPFSeedCleaner.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), SaveSimTrack.update(), PTStatistics.update(), PrintTrackNumberAction.update(), Basic2DGenericPFlowClusterizer.update(), PFMultiDepthClusterizer.update(), reco::KalmanGhostTrackUpdater.update(), GenericMVAComputerCache.update(), DDG4ProductionCuts.update(), RecHitTopologicalCleanerBase.update(), PFlow2DClusterizerWithTime.update(), LagrangeChildUpdator.update(), DummyVertexTrackUpdator< N >.update(), VertexTrackUpdator< N >.update(), TrajectoryStateUpdator.update(), FastFedCablingTask.update(), MSLayersAtAngle.update(), ApvTimingTask.update(), FedTimingTask.update(), ErrorCorrelation.update(), VpspScanTask.update(), AlignableDet.update(), PrintSensitive.update(), PedsFullNoiseHistosUsingDb.update(), GsfMultiStateUpdator.update(), ApvTimingHistosUsingDb.update(), DaqScopeModeHistosUsingDb.update(), NoiseHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), VpspScanHistosUsingDb.update(), OptoScanTask.update(), PedestalsTask.update(), PedestalsHistosUsingDb.update(), MonopoleSteppingAction.update(), CalibrationScanTask.update(), FineDelayTask.update(), LatencyTask.update(), SCRegressionCalculator< VarCalc >.update(), edm::SubProcessParentageHelper.update(), FastFedCablingHistosUsingDb.update(), CalibrationTask.update(), PFClusterEnergyCorrectorBase.update(), PFCPositionCalculatorBase.update(), RHStopTracer.update(), AlignableDetUnit.update(), FedCablingTask.update(), KFStrip1DUpdator.update(), TkPhase2OTMeasurementDet.update(), CheckOverlap.update(), cond::persistency::ITagTable.update(), LatencyHistosUsingDb.update(), TkPixelMeasurementDet.update(), NoiseTask.update(), PedsOnlyTask.update(), CountProcessesAction.update(), PrintGeomSummary.update(), PrintGeomInfoAction.update(), CalibrationHistosUsingDb.update(), ChildUpdator.update(), FineDelayHistosUsingDb.update(), PrintMaterialBudgetInfo.update(), progressbar.Widget.update(), PedsFullNoiseTask.update(), BaselinePFSCRegression.update(), KinematicConstrainedVertexUpdator.update(), KFSwitching1DUpdator.update(), AlignableCSCChamber.update(), PhysicsTools::MVAComputerCache.update(), MaterialBudgetHcal.update(), HGCScintSD.update(), StoreSecondary.update(), cond::persistency::GLOBAL_TAG::Table.update(), HFNoseSD.update(), HGCalSD.update(), FastTimerSD.update(), DaqScopeModeTask.update(), edm::RunningAverage.update(), HGCalTBMB.update(), Observer< const G4Step * >.update(), Observer< const BeginOfJob * >.update(), Observer< const EndOfEvent * >.update(), Observer< const EndOfJob * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const BeginOfRun * >.update(), Observer< const EndOfTrack * >.update(), Observer< T >.update(), Observer< const DDDWorld * >.update(), Observer< const EndOfRun * >.update(), AlignableTracker.update(), BinomialProbability.update(), Observer< const Event * >.update(), Observer< const BeginOfTrack * >.update(), Observer< const T * >.update(), GflashG4Watcher.update(), MuonServiceProxy.update(), pathelpers::Record.update(), PFClusterBuilderBase.update(), cond::persistency::TAG::Table.update(), HGCSD.update(), edm::storage::StatisticsSenderService::FileStatistics.update(), RealisticSimClusterMapper.update(), MaterialBudgetForward.update(), MaterialBudget.update(), KFUpdator.update(), funct::Master< F >.update(), CaloTrkProcessing.update(), AlignableComposite.update(), CheckSecondary.update(), KalmanVertexTrackUpdator< N >.update(), EcalSimHitsValidProducer.update(), SimG4FluxProducer.update(), KalmanVertexTrackUpdator< 5 >.update(), ECAL2DPositionCalcWithDepthCorr.update(), TrackingMaterialProducer.update(), TrackingVerboseAction.update(), HcalTestAnalysis.update(), FWJobMetadataManager.update(), SiTrackerMultiRecHitUpdator.update(), L1TMuonBarrelKalmanAlgo.update(), PhysicsTools::TreeReader.update(), MaterialBudgetAction.update(), BasicMultiTrajectoryState.update(), KalmanVertexUpdator< 5 >.update(), KalmanVertexUpdator< N >.update(), reco::GhostTrackFitter::PredictionUpdater.update(), pos::PixelConfig.update(), SingleParticleEvent.update(), SiStripConfObject.update(), MuonTrajectoryUpdator.update(), fwlite::RecordWriter.update(), AlignableMuon.update(), edm::service::CondorStatusService.update(), SiStripPartition.update(), TimingSD.update(), FWParameterSetterBase.update(), fastsim::Geometry.update(), FiberSD.update(), HCalSD.update(), HGCPassive.update(), TotemTestGem.update(), SimG4HcalValidation.update(), progressbar.Timer.update(), MuonSensitiveDetector.update(), HcaluLUTTPGCoder.update(), simwatcher::BeginOfTrackCounter.update(), Alignable.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), TkAccumulatingSensitiveDetector.update(), MuonUpdatorAtVertex.update(), DQMOldReceiver.update(), HcalTB02Analysis.update(), LaserAlignmentSimulation.update(), TotemSD.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< BeginOfTrack >.update(), CaloSteppingAction.update(), sim_act::Signaler< DDDWorld >.update(), ApvAnalysisFactory.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< G4Step >.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< T >.update(), SimTracer.update(), progressbar.WidgetHFill.update(), HcalForwardAnalysis.update(), FP420SD.update(), DTSegmentUpdator.update(), DTVDriftCalibration::cellInfo.update(), DAClusterizerInZ.update(), sistrip::RawToDigiUnpacker.update(), HcalTB04Analysis.update(), SimG4HGCalValidation.update(), DoCastorAnalysis.update(), ZdcTestAnalysis.update(), CastorTestAnalysis.update(), PhysicsTools::TreeReader::Value.update(), EcalTBH4Trigger.update(), BetafuncEvtVtxGenerator.update(), CaloSD.update(), InitialClusteringStepBase.update(), cond::persistency::IPayloadMigrationTable.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), HLTScalersClient::CountLSFifo_t.update(), progressbar.Bar.update(), DynamicTruncation.update(), jsoncollector::IntJ.update(), edm::service::SimpleMemoryCheck.update(), PFECALSuperClusterAlgo.update(), evf::FastMonitoringService::Encoding.update(), edm::BMixingModule.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), CastorShowerLibraryMaker.update(), cond::persistency::IGTTable.update(), DTRecSegment2D.update(), MonitorElement.update(), StandAloneMuonFilter.update(), jsoncollector::DoubleJ.update(), FWPSetTableManager.update(), DQMNet::Peer.update, G4StepStatistics.update(), progressbar.FormatLabel.update(), TrajectoryStateOnSurface.update(), DQMNet::AutoPeer.update, FWLiteESRecordWriterAnalyzer.update(), CommissioningTask.update(), FP420Test.update(), StMeasurementDetSet.update(), Folder.update(), DAClusterizerInZ_vect.update(), BscTest.update(), jsoncollector::StringJ.update(), dqm-mbProfile.Profile.update(), DAClusterizerInZT_vect.update(), jsoncollector::HistoJ< unsigned int >.update(), jsoncollector::HistoJ< T >.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), PxMeasurementDetSet.update(), Phase2OTMeasurementDetSet.update(), edmStreamStallGrapher.Stack.update(), crabFunctions.CrabTask.update(), DetSetVector< ClusterType >.update(), DetSetVector< SiStripCluster >.update(), const_iterator.update(), DetSetVector< SiPixelCluster >.update(), DetSetVector< T >.update(), and edmNew::DetSetVector< T >.update().

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.dropEvent().

478  def createObject(self,dropType,pos):
479  newObject = None
480  if dropType == "Node":
481  newObject = self.addDecayNode(pos)
482  self.select(newObject)
483  self.setFocus()
484  elif dropType == "EventView":
485  newObject = self.createChildContainer(self.object().createEventView(), pos)
486  newObject.select(True)
487  newObject.setFocus()
488  # connect selected signal to parent
489  parent=self
490  while hasattr(parent,"parent"):
491  if hasattr(parent,"onSelected"):
492  self.connect(newObject, SIGNAL("selected"), parent.onSelected)
493  break
494  parent=parent.parent()
495  else:
496  # assume dropType is the generic name or type of a particle
497  newObject = self.addParticleByType(dropType, pos)
498  self.select(newObject)
499  self.setFocus()
500 
501  if newObject:
502  self.update(newObject.boundingRect())
503  if self._editable:
504  self.autosize() # instead of full autolayout
505  if self.tabController():
506  self.tabController().setModified()
507  if hasattr(self.tabController(),"updateTreeView"):
508  self.tabController().updateTreeView()
509  return newObject
510 
def autosize(self, skipSizeHint=False)
Definition: VispaWidget.py:833
def select(self, sel=True, multiSelect=False)
def addParticleByType(self, particleType=None, pos=None)
def createChildContainer(self, object, pos=None)
def Vispa.Views.LineDecayView.LineDecayContainer.dataAccessor (   self)
def Vispa.Views.LineDecayView.LineDecayContainer.dataObjects (   self)
Do not filter widget but rather the pxl objects

Definition at line 311 of file LineDecayView.py.

References Vispa.Share.ObjectHolder.ObjectHolder._dataObjects, and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor._dataObjects.

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.mouseReleaseEvent().

311  def dataObjects(self):
312  """ Do not filter widget but rather the pxl objects
313  """
314  return self._dataObjects
315 
def Vispa.Views.LineDecayView.LineDecayContainer.decayObject (   self,
  pxlObject 
)
Returns the DecayObject which represents the given pxlObject or None if there is no such one.

This function is to slow for massive usage with many dataObjects as it loops over all dataObjects.

Definition at line 654 of file LineDecayView.py.

References Vispa.Share.ObjectHolder.ObjectHolder.dataObjects().

654  def decayObject(self, pxlObject):
655  """ Returns the DecayObject which represents the given pxlObject or None if there is no such one.
656 
657  This function is to slow for massive usage with many dataObjects as it loops over all dataObjects.
658  """
659  for decayObject in self.dataObjects():
660  if decayObject.object() == pxlObject:
661  return decayObject
662  return None
663 
def Vispa.Views.LineDecayView.LineDecayContainer.delete (   self)

Definition at line 875 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer._pxlObject, PileUpSummaryInfo.PileUpSummaryInfo.object, HLTTauDQMPath::Object.object, SingleObjectCondition.object, SingleObjectTrigger.object, MEtoEDM< T >::MEtoEDMObject.object, PhysicsTools::TrainerMonitoring::RootObject< T >.object, querying.connection.object(), querying.factory.object(), Vispa.Views.LineDecayView.LineDecayContainer.object(), python.Events.object(), edmIntegrityCheck.PublishToFileSystem.parent, edm::ThinnedAssociationBranches.parent(), confdb.HLTProcess.parent, reco::PattRecoNode< Cluster >.parent(), FSimVertex.parent(), DDI::Division.parent(), math::GraphWalker< N, E >.parent(), math::GraphWalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), math::GraphWalker< DDLogicalPart, DDPosData * >.parent(), GraphWalker< N, E >.parent(), edm::ModuleCallingContext.parent(), DDLSAX2FileHandler.parent(), OpticalObject.parent(), FWPSetTableManager::PSetData.parent, edm::DocFormatHelper.parent(), emtf::Node.parent, EmDQMReco::FourVectorMonitorElements.parent, DDFilteredView.parent(), cms::DDFilteredView.parent(), DDExpandedView.parent(), DDDivision.parent(), options.HLTProcessOptions.parent, dqmservices::TriggerSelector::TreeElement.parent(), BeautifulSoup.PageElement.parent, DDXMLElement.parent(), globcontrol.parent, Vispa.Views.LineDecayView.DecayObject.parent(), and Vispa.Views.LineDecayView.LineDecayContainer.removeObject().

875  def delete(self):
876  parent = self.parent()
877  if WidgetContainer.delete(self) and hasattr(parent, "object"):
878  parent.object().removeObject(self.object())
879  self._pxlObject = None
880 
def Vispa.Views.LineDecayView.LineDecayContainer.deselectAllObjects (   self)

Definition at line 687 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer._selectedList, DDDWorldObserver< Event >.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), ECALPFSeedCleaner.update(), SaveSimTrack.update(), PTStatistics.update(), PrintTrackNumberAction.update(), GenericMVAComputerCache.update(), Basic2DGenericPFlowClusterizer.update(), PFMultiDepthClusterizer.update(), reco::KalmanGhostTrackUpdater.update(), DDG4ProductionCuts.update(), DummyVertexTrackUpdator< N >.update(), FastFedCablingTask.update(), TrajectoryStateUpdator.update(), RecHitTopologicalCleanerBase.update(), PFlow2DClusterizerWithTime.update(), LagrangeChildUpdator.update(), VertexTrackUpdator< N >.update(), ErrorCorrelation.update(), ApvTimingTask.update(), FedTimingTask.update(), VpspScanTask.update(), MSLayersAtAngle.update(), NoiseHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), PedestalsHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), VpspScanHistosUsingDb.update(), PrintSensitive.update(), GsfMultiStateUpdator.update(), AlignableDet.update(), OptoScanTask.update(), PedestalsTask.update(), ApvTimingHistosUsingDb.update(), DaqScopeModeHistosUsingDb.update(), MonopoleSteppingAction.update(), CalibrationScanTask.update(), FineDelayTask.update(), LatencyTask.update(), CalibrationTask.update(), SCRegressionCalculator< VarCalc >.update(), edm::SubProcessParentageHelper.update(), FastFedCablingHistosUsingDb.update(), PFClusterEnergyCorrectorBase.update(), PFCPositionCalculatorBase.update(), AlignableDetUnit.update(), RHStopTracer.update(), FedCablingTask.update(), KFStrip1DUpdator.update(), LatencyHistosUsingDb.update(), cond::persistency::ITagTable.update(), CheckOverlap.update(), TkPhase2OTMeasurementDet.update(), NoiseTask.update(), PedsOnlyTask.update(), TkPixelMeasurementDet.update(), CountProcessesAction.update(), PrintGeomInfoAction.update(), PrintGeomSummary.update(), CalibrationHistosUsingDb.update(), FineDelayHistosUsingDb.update(), ChildUpdator.update(), PrintMaterialBudgetInfo.update(), BaselinePFSCRegression.update(), progressbar.Widget.update(), PedsFullNoiseTask.update(), AlignableCSCChamber.update(), PhysicsTools::MVAComputerCache.update(), KFSwitching1DUpdator.update(), KinematicConstrainedVertexUpdator.update(), HGCScintSD.update(), cond::persistency::GLOBAL_TAG::Table.update(), StoreSecondary.update(), MaterialBudgetHcal.update(), HFNoseSD.update(), HGCalSD.update(), FastTimerSD.update(), edm::RunningAverage.update(), DaqScopeModeTask.update(), HGCalTBMB.update(), Observer< const EndOfTrack * >.update(), BinomialProbability.update(), Observer< T >.update(), Observer< const BeginOfJob * >.update(), Observer< const Event * >.update(), Observer< const BeginOfTrack * >.update(), AlignableTracker.update(), Observer< const G4Step * >.update(), Observer< const EndOfRun * >.update(), Observer< const EndOfJob * >.update(), Observer< const T * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const DDDWorld * >.update(), Observer< const EndOfEvent * >.update(), Observer< const BeginOfRun * >.update(), GflashG4Watcher.update(), pathelpers::Record.update(), MuonServiceProxy.update(), PFClusterBuilderBase.update(), HGCSD.update(), cond::persistency::TAG::Table.update(), edm::storage::StatisticsSenderService::FileStatistics.update(), funct::Master< F >.update(), KFUpdator.update(), MaterialBudget.update(), MaterialBudgetForward.update(), RealisticSimClusterMapper.update(), CaloTrkProcessing.update(), CheckSecondary.update(), AlignableComposite.update(), SimG4FluxProducer.update(), KalmanVertexTrackUpdator< 5 >.update(), ECAL2DPositionCalcWithDepthCorr.update(), KalmanVertexTrackUpdator< N >.update(), EcalSimHitsValidProducer.update(), TrackingMaterialProducer.update(), HcalTestAnalysis.update(), FWJobMetadataManager.update(), TrackingVerboseAction.update(), L1TMuonBarrelKalmanAlgo.update(), PhysicsTools::TreeReader.update(), SiTrackerMultiRecHitUpdator.update(), BasicMultiTrajectoryState.update(), MaterialBudgetAction.update(), SingleParticleEvent.update(), KalmanVertexUpdator< 5 >.update(), pos::PixelConfig.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), edm::service::CondorStatusService.update(), SiStripPartition.update(), fwlite::RecordWriter.update(), SiStripConfObject.update(), AlignableMuon.update(), MuonTrajectoryUpdator.update(), fastsim::Geometry.update(), FWParameterSetterBase.update(), TimingSD.update(), HCalSD.update(), HGCPassive.update(), FiberSD.update(), TotemTestGem.update(), SimG4HcalValidation.update(), progressbar.Timer.update(), MuonSensitiveDetector.update(), simwatcher::BeginOfTrackCounter.update(), HcaluLUTTPGCoder.update(), Alignable.update(), TkAccumulatingSensitiveDetector.update(), MuonUpdatorAtVertex.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), DQMOldReceiver.update(), HcalTB02Analysis.update(), LaserAlignmentSimulation.update(), TotemSD.update(), CaloSteppingAction.update(), ApvAnalysisFactory.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< T >.update(), sim_act::Signaler< G4Step >.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< BeginOfTrack >.update(), SimTracer.update(), progressbar.WidgetHFill.update(), HcalForwardAnalysis.update(), DTSegmentUpdator.update(), FP420SD.update(), DTVDriftCalibration::cellInfo.update(), sistrip::RawToDigiUnpacker.update(), DAClusterizerInZ.update(), HcalTB04Analysis.update(), SimG4HGCalValidation.update(), DoCastorAnalysis.update(), ZdcTestAnalysis.update(), EcalTBH4Trigger.update(), CastorTestAnalysis.update(), PhysicsTools::TreeReader::Value.update(), BetafuncEvtVtxGenerator.update(), CaloSD.update(), InitialClusteringStepBase.update(), cond::persistency::IPayloadMigrationTable.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), HLTScalersClient::CountLSFifo_t.update(), progressbar.Bar.update(), DynamicTruncation.update(), jsoncollector::IntJ.update(), edm::service::SimpleMemoryCheck.update(), PFECALSuperClusterAlgo.update(), evf::FastMonitoringService::Encoding.update(), edm::BMixingModule.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), CastorShowerLibraryMaker.update(), cond::persistency::IGTTable.update(), DTRecSegment2D.update(), MonitorElement.update(), StandAloneMuonFilter.update(), jsoncollector::DoubleJ.update(), FWPSetTableManager.update(), DQMNet::Peer.update, G4StepStatistics.update(), progressbar.FormatLabel.update(), TrajectoryStateOnSurface.update(), DQMNet::AutoPeer.update, FWLiteESRecordWriterAnalyzer.update(), CommissioningTask.update(), FP420Test.update(), StMeasurementDetSet.update(), Folder.update(), DAClusterizerInZ_vect.update(), BscTest.update(), jsoncollector::StringJ.update(), dqm-mbProfile.Profile.update(), DAClusterizerInZT_vect.update(), jsoncollector::HistoJ< unsigned int >.update(), jsoncollector::HistoJ< T >.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), PxMeasurementDetSet.update(), Phase2OTMeasurementDetSet.update(), edmStreamStallGrapher.Stack.update(), crabFunctions.CrabTask.update(), edmNew::DetSetVector< T >.update(), DetSetVector< T >.update(), DetSetVector< SiStripCluster >.update(), DetSetVector< SiPixelCluster >.update(), const_iterator.update(), and DetSetVector< ClusterType >.update().

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.deselectAllWidgets().

688  for object in self._selectedList:
689  self.update(object.boundingRect())
690  self._selectedList = []
691 
def Vispa.Views.LineDecayView.LineDecayContainer.deselectAllWidgets (   self,
  exception = None 
)
Overwrite VispaWidgetOwner's method so in addition deselectAllObjects() is called.

Definition at line 400 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer.deselectAllObjects().

400  def deselectAllWidgets(self, exception=None):
401  """ Overwrite VispaWidgetOwner's method so in addition deselectAllObjects() is called.
402  """
403  self.deselectAllObjects()
404  WidgetContainer.deselectAllWidgets(self, exception)
405 
def deselectAllWidgets(self, exception=None)
def Vispa.Views.LineDecayView.LineDecayContainer.dragEnterEvent (   self,
  event 
)
Accepts drag enter event if module is dragged.

Definition at line 469 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayView.tabController(), and Vispa.Views.LineDecayView.LineDecayContainer.tabController().

469  def dragEnterEvent(self, event):
470  """ Accepts drag enter event if module is dragged.
471  """
472  #logging.debug(self.__class__.__name__ + ": dragEnterEvent()")
473  if not self.tabController():
474  return
475  if event.mimeData().hasFormat(LineDecayView.DECAY_OBJECT_MIME_TYPE):
476  event.acceptProposedAction()
477 
def Vispa.Views.LineDecayView.LineDecayContainer.dropEvent (   self,
  event 
)
Handle drop of module.

Definition at line 511 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer.createObject(), data, str, Vispa.Views.LineDecayView.LineDecayView.tabController(), Vispa.Views.LineDecayView.LineDecayContainer.tabController(), and Vispa.Gui.Zoomable.Zoomable.zoomFactor().

511  def dropEvent(self, event):
512  """ Handle drop of module.
513  """
514  logging.debug(self.__class__.__name__ + ": dropEvent()")
515  if not self.tabController():
516  return
517 
518  if event.mimeData().hasFormat(LineDecayView.DECAY_OBJECT_MIME_TYPE):
519  dropType = str(event.mimeData().data(LineDecayView.DECAY_OBJECT_MIME_TYPE))
520  pos = event.pos() / self.zoomFactor()
521  if self.createObject(dropType, pos):
522  event.acceptProposedAction()
523 
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
#define str(s)
def Vispa.Views.LineDecayView.LineDecayContainer.editable (   self)
def Vispa.Views.LineDecayView.LineDecayContainer.keyPressEvent (   self,
  event 
)
Calls delete() method if backspace or delete key is pressed when widget has focus.

Definition at line 856 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayView._editable, Vispa.Views.LineDecayView.LineDecayContainer._editable, Vispa.Views.LineDecayView.LineDecayContainer._selectedList, hitfit.clear(), Vispa.Gui.PortConnection.PointToPointConnection.delete(), Vispa.Gui.PortConnection.PortConnection.delete(), Vispa.Gui.VispaWidget.VispaWidget.delete(), DetIdSelector.isSelected(), FWGUISubviewArea.isSelected(), FWEventItem::ModelInfo.isSelected(), SeedMultiplicityAnalyzer::FromTrackRefSeedFilter.isSelected(), Vispa.Gui.PortConnection.PointToPointConnection.isSelected(), Vispa.Gui.VispaWidget.VispaWidget.isSelected(), Vispa.Share.ObjectHolder.ObjectHolder.removeObject(), Vispa.Views.LineDecayView.LineDecayView.tabController(), and Vispa.Views.LineDecayView.LineDecayContainer.tabController().

856  def keyPressEvent(self, event):
857  """ Calls delete() method if backspace or delete key is pressed when widget has focus.
858  """
859  if (event.key() == Qt.Key_Backspace or event.key() == Qt.Key_Delete) and self._editable:
860  controller=self.tabController()
861  if controller:
862  controller.tab().propertyView().clear()
863 
864  if self.isSelected():
865  self.delete()
866  elif len(self._selectedList) > 0:
867  self.removeObject(self._selectedList[0])
868 
869  if controller:
870  controller.setModified()
871  if hasattr(controller,"updateTreeView"):
872  controller.updateTreeView()
873  #controller.autolayout()
874 
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:167
def Vispa.Views.LineDecayView.LineDecayContainer.mouseMoveEvent (   self,
  event 
)

Definition at line 792 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayView._editable, Vispa.Views.LineDecayView.LineDecayContainer._editable, Vispa.Views.LineDecayView.LineDecayContainer._hoveredObject, Vispa.Views.LineDecayView.LineDecayContainer._selectedList, Vispa.Views.LineDecayView.LineDecayContainer._titleClicked, Vispa.Views.LineDecayView.LineDecayContainer._visibleList, electrons_cff.bool, Vispa.Share.ObjectHolder.ObjectHolder.dataObjects(), Vispa.Gui.VispaWidget.VispaWidget.isTitlePoint(), evf::ExceptionGenerator.menu, options.HLTProcessOptions.menu, Vispa.Gui.ConnectableWidget.ConnectableWidget.menu(), Vispa.Gui.ConnectableWidget.ConnectableWidget.move(), Vispa.Gui.ConnectableWidget.ConnectableWidget.positionizeMenuWidget(), Vispa.Gui.ConnectableWidget.ConnectableWidget.showMenu(), DDDWorldObserver< Event >.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), ECALPFSeedCleaner.update(), SaveSimTrack.update(), PTStatistics.update(), PrintTrackNumberAction.update(), reco::KalmanGhostTrackUpdater.update(), GenericMVAComputerCache.update(), Basic2DGenericPFlowClusterizer.update(), PFMultiDepthClusterizer.update(), DDG4ProductionCuts.update(), LagrangeChildUpdator.update(), VertexTrackUpdator< N >.update(), DummyVertexTrackUpdator< N >.update(), TrajectoryStateUpdator.update(), FastFedCablingTask.update(), RecHitTopologicalCleanerBase.update(), PFlow2DClusterizerWithTime.update(), ErrorCorrelation.update(), VpspScanTask.update(), ApvTimingTask.update(), FedTimingTask.update(), MSLayersAtAngle.update(), PedestalsTask.update(), AlignableDet.update(), ApvTimingHistosUsingDb.update(), DaqScopeModeHistosUsingDb.update(), NoiseHistosUsingDb.update(), PrintSensitive.update(), OptoScanHistosUsingDb.update(), PedestalsHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), GsfMultiStateUpdator.update(), PedsOnlyHistosUsingDb.update(), VpspScanHistosUsingDb.update(), OptoScanTask.update(), MonopoleSteppingAction.update(), CalibrationScanTask.update(), LatencyTask.update(), FineDelayTask.update(), edm::SubProcessParentageHelper.update(), FastFedCablingHistosUsingDb.update(), SCRegressionCalculator< VarCalc >.update(), CalibrationTask.update(), PFCPositionCalculatorBase.update(), PFClusterEnergyCorrectorBase.update(), AlignableDetUnit.update(), RHStopTracer.update(), FedCablingTask.update(), KFStrip1DUpdator.update(), cond::persistency::ITagTable.update(), LatencyHistosUsingDb.update(), CheckOverlap.update(), TkPhase2OTMeasurementDet.update(), PedsOnlyTask.update(), TkPixelMeasurementDet.update(), NoiseTask.update(), CalibrationHistosUsingDb.update(), CountProcessesAction.update(), PrintGeomInfoAction.update(), PrintGeomSummary.update(), ChildUpdator.update(), FineDelayHistosUsingDb.update(), PedsFullNoiseTask.update(), PrintMaterialBudgetInfo.update(), progressbar.Widget.update(), BaselinePFSCRegression.update(), KinematicConstrainedVertexUpdator.update(), AlignableCSCChamber.update(), PhysicsTools::MVAComputerCache.update(), KFSwitching1DUpdator.update(), HGCScintSD.update(), StoreSecondary.update(), MaterialBudgetHcal.update(), cond::persistency::GLOBAL_TAG::Table.update(), HGCalSD.update(), HFNoseSD.update(), FastTimerSD.update(), edm::RunningAverage.update(), DaqScopeModeTask.update(), HGCalTBMB.update(), Observer< const EndOfJob * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const BeginOfJob * >.update(), Observer< T >.update(), AlignableTracker.update(), Observer< const EndOfEvent * >.update(), Observer< const Event * >.update(), Observer< const EndOfRun * >.update(), Observer< const BeginOfTrack * >.update(), Observer< const G4Step * >.update(), Observer< const EndOfTrack * >.update(), Observer< const T * >.update(), Observer< const BeginOfRun * >.update(), Observer< const DDDWorld * >.update(), BinomialProbability.update(), GflashG4Watcher.update(), pathelpers::Record.update(), MuonServiceProxy.update(), PFClusterBuilderBase.update(), cond::persistency::TAG::Table.update(), HGCSD.update(), edm::storage::StatisticsSenderService::FileStatistics.update(), KFUpdator.update(), funct::Master< F >.update(), MaterialBudget.update(), MaterialBudgetForward.update(), RealisticSimClusterMapper.update(), CaloTrkProcessing.update(), AlignableComposite.update(), CheckSecondary.update(), KalmanVertexTrackUpdator< N >.update(), SimG4FluxProducer.update(), ECAL2DPositionCalcWithDepthCorr.update(), KalmanVertexTrackUpdator< 5 >.update(), EcalSimHitsValidProducer.update(), TrackingMaterialProducer.update(), HcalTestAnalysis.update(), FWJobMetadataManager.update(), TrackingVerboseAction.update(), L1TMuonBarrelKalmanAlgo.update(), PhysicsTools::TreeReader.update(), SiTrackerMultiRecHitUpdator.update(), BasicMultiTrajectoryState.update(), MaterialBudgetAction.update(), KalmanVertexUpdator< 5 >.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), pos::PixelConfig.update(), SingleParticleEvent.update(), SiStripConfObject.update(), edm::service::CondorStatusService.update(), SiStripPartition.update(), fwlite::RecordWriter.update(), AlignableMuon.update(), MuonTrajectoryUpdator.update(), TimingSD.update(), fastsim::Geometry.update(), FWParameterSetterBase.update(), HGCPassive.update(), FiberSD.update(), HCalSD.update(), SimG4HcalValidation.update(), TotemTestGem.update(), progressbar.Timer.update(), MuonSensitiveDetector.update(), simwatcher::BeginOfTrackCounter.update(), HcaluLUTTPGCoder.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), Alignable.update(), TkAccumulatingSensitiveDetector.update(), MuonUpdatorAtVertex.update(), DQMOldReceiver.update(), HcalTB02Analysis.update(), LaserAlignmentSimulation.update(), TotemSD.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< G4Step >.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< T >.update(), ApvAnalysisFactory.update(), sim_act::Signaler< BeginOfTrack >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< DDDWorld >.update(), CaloSteppingAction.update(), sim_act::Signaler< EndOfTrack >.update(), SimTracer.update(), progressbar.WidgetHFill.update(), HcalForwardAnalysis.update(), FP420SD.update(), DTSegmentUpdator.update(), DTVDriftCalibration::cellInfo.update(), DAClusterizerInZ.update(), sistrip::RawToDigiUnpacker.update(), HcalTB04Analysis.update(), SimG4HGCalValidation.update(), DoCastorAnalysis.update(), ZdcTestAnalysis.update(), EcalTBH4Trigger.update(), CastorTestAnalysis.update(), PhysicsTools::TreeReader::Value.update(), BetafuncEvtVtxGenerator.update(), CaloSD.update(), InitialClusteringStepBase.update(), cond::persistency::IPayloadMigrationTable.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), HLTScalersClient::CountLSFifo_t.update(), progressbar.Bar.update(), DynamicTruncation.update(), jsoncollector::IntJ.update(), edm::service::SimpleMemoryCheck.update(), PFECALSuperClusterAlgo.update(), evf::FastMonitoringService::Encoding.update(), edm::BMixingModule.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), CastorShowerLibraryMaker.update(), cond::persistency::IGTTable.update(), DTRecSegment2D.update(), MonitorElement.update(), StandAloneMuonFilter.update(), jsoncollector::DoubleJ.update(), FWPSetTableManager.update(), DQMNet::Peer.update, G4StepStatistics.update(), TrajectoryStateOnSurface.update(), progressbar.FormatLabel.update(), DQMNet::AutoPeer.update, FWLiteESRecordWriterAnalyzer.update(), CommissioningTask.update(), FP420Test.update(), StMeasurementDetSet.update(), Folder.update(), DAClusterizerInZ_vect.update(), BscTest.update(), jsoncollector::StringJ.update(), dqm-mbProfile.Profile.update(), DAClusterizerInZT_vect.update(), jsoncollector::HistoJ< unsigned int >.update(), jsoncollector::HistoJ< T >.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), PxMeasurementDetSet.update(), Phase2OTMeasurementDetSet.update(), edmStreamStallGrapher.Stack.update(), crabFunctions.CrabTask.update(), DetSetVector< SiStripCluster >.update(), edmNew::DetSetVector< T >.update(), DetSetVector< T >.update(), DetSetVector< SiPixelCluster >.update(), const_iterator.update(), and DetSetVector< ClusterType >.update().

792  def mouseMoveEvent(self, event):
793  if self._titleClicked:
794  if self._editable:
795  WidgetContainer.mouseMoveEvent(self, event)
796  return
797  elif self.menu():
798  if self.isTitlePoint(event.pos()):
799  self.positionizeMenuWidget()
800  self.showMenu()
801  else:
802  self.menu().hide()
803 
804  if not bool(event.buttons()):
805  # no button pressed -> hovering
806  to_hover_object = None
807  if not self._visibleList:
808  self._visibleList = self.dataObjects()
809 
810  for object in self._visibleList:
811  if object.containsPoint(event.pos()):
812  if isinstance(object, DecayNode):
813  # prefere nodes over other DecayObjects (especially DecayLines)
814  to_hover_object = object
815  break
816  elif not to_hover_object:
817  to_hover_object = object
818  if to_hover_object:
819  if to_hover_object != self._hoveredObject:
820  previously_hovered_object = self._hoveredObject
821  self._hoveredObject = to_hover_object
822  self.update(self._hoveredObject.boundingRect())
823  if previously_hovered_object:
824  # make sure hovered mode is removed if hovered object changed
825  self.update(previously_hovered_object.boundingRect())
826  elif self._hoveredObject:
827  self.update(self._hoveredObject.boundingRect())
828  self._hoveredObject = None
829 
830  elif len(self._selectedList) > 0 and event.buttons() & Qt.LeftButton and self._editable:
831  # selection
832  self._selectedList[0].move(event.pos())
833 
def Vispa.Views.LineDecayView.LineDecayContainer.mousePressEvent (   self,
  event 
)

Definition at line 768 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer._titleClicked, Vispa.Share.ObjectHolder.ObjectHolder.dataObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget.isTitlePoint(), FWViewContextMenuHandlerGL.select(), SeedConfigSelector.select(), pf2pat::GenericPFJetSelectorDefinition.select(), pf2pat::PdgIdPFCandidateSelectorDefinition.select(), pf2pat::PtMinPFCandidateSelectorDefinition.select(), cond::persistency::ITagTable.select(), RecoTrackViewRefSelector.select(), AlignmentSeedSelector.select(), ipf2pat::ObjectSelector< Selector, CollectionType >.select(), RecoTrackRefSelector.select(), CSCOverlapConfigSelector.select(), RecoTrackSelector.select(), AlignmentCSCOverlapSelector.select(), AlignmentCSCBeamHaloSelector.select(), CalibrationTrackSelector.select(), AlignmentCSCTrackSelector.select(), CSCBeamHaloConfigSelector.select(), pf2pat::GenericPFCandidateSelectorDefinition.select(), cond::persistency::GLOBAL_TAG::Table.select(), CSCTrackConfigSelector.select(), EventSelector.select(), SiStripCalTrackConfigSelector.select(), cond::persistency::TAG::Table.select(), RawDataFEDSelector.select(), AlignmentTwoBodyDecayTrackSelector.select(), pf2pat::IsolatedPFCandidateSelectorDefinition.select(), pf2pat::MuonIDPFCandidateSelectorDefinition.select(), pf2pat::IPCutPFCandidateSelectorDefinition.select(), RPCMonitorLinkSynchro.select(), AlignmentGlobalTrackSelector.select(), AlignmentTrackSelector.select(), StringCutEventSelector< Object, any >.select(), SingleEleCalibSelector.select(), AlignmentMuonSelector.select(), reco::modules::MatcherBase< C1, C2, M >.select(), MuonConfigSelector.select(), SingleElementCollectionSelectorPlusEvent< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >.select(), reco::modulesNew::Matcher< C1, C2, S, D >.select(), TrackConfigSelector.select(), FWModelExpressionSelector.select(), cond::persistency::IPayloadTable.select(), AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >.select(), ObjectPairCollectionSelector< InputCollection, Selector, StoreContainer, RefAdder >.select(), SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >.select(), SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >.select(), SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >.select(), reco::SelectInCollection< Object >.select(), AlCaDiJetsProducer.select(), AlCaGammaJetProducer.select(), cond::persistency::RUN_INFO::Table.select(), cond::persistency::IIOVTable.select(), FWModelId.select(), pf2pat::ElectronIDPFCandidateSelectorDefinition.select(), FWSelectionManager.select(), reco::modules::Matcher< C1, C2, S, D, M >.select(), cond::persistency::GLOBAL_TAG_MAP::Table.select(), FWViewContextMenuHandlerBase.select(), reco::SelectIndecesInCollection< Object >.select(), AlCaHBHEMuonProducer.select(), AlCaGammaJetSelector.select(), cond::persistency::PAYLOAD::Table.select(), CosmicTrackingParticleSelector.select(), CandCombinerBase< OutputCollection, CandPtr >.select(), cond::persistency::ITagMigrationTable.select(), NamedCandCombinerBase.select(), reco::PhysObjectMatcher< C1, C2, S, D, Q >.select(), cond::persistency::IPayloadMigrationTable.select(), AlCaIsoTracksProducer.select(), StringCutsEventSelector< Object, existenceMatter >.select(), cond::persistency::IGTTable.select(), NamedCandCombiner< Selector, PairSelector, Cloner, Setup >.select(), MuonResidualsFitter::MuonAlignmentTreeRow.select, cond::persistency::IGTMapTable.select(), CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.select(), cond::persistency::IOV::Table.select(), cond::persistency::IRunInfoTable.select(), SelectionStepHLTBase.select(), FWEventItem.select(), SelectionStepHLT< Object >.select(), SelectionStep< Object >.select(), and Vispa.Gui.ConnectableWidget.ConnectableWidget.select().

768  def mousePressEvent(self, event):
769  if self.isTitlePoint(event.pos()):
770  WidgetContainer.mousePressEvent(self, event)
771  self._titleClicked = True
772  return
773  self.select(False)
774  self._titleClicked = False
775  self.deselectAllWidgets()
776 
777  toSelectObject = None
778  for object in self.dataObjects():
779  if object.containsPoint(event.pos()):
780  if isinstance(object, DecayNode):
781  # prefere nodes over other DecayObjects (especially DecayLines)
782  toSelectObject = object
783  break
784  elif not toSelectObject:
785  toSelectObject = object
786  if toSelectObject:
787  toSelectObject.select(event.pos())
788  self.select(toSelectObject)
789  return # select 1 object at most
790  WidgetContainer.mousePressEvent(self, event)
791 
def select(self, sel=True, multiSelect=False)
def Vispa.Views.LineDecayView.LineDecayContainer.mouseReleaseEvent (   self,
  event 
)
Join nodes if they belong to objects with relations.

Definition at line 834 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer._selectedList, Vispa.Share.ObjectHolder.ObjectHolder.dataAccessor(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor(), Vispa.Share.ObjectHolder.ObjectHolder.dataObjects(), Vispa.Views.LineDecayView.LineDecayContainer.dataObjects(), PileUpSummaryInfo.PileUpSummaryInfo.object, HLTTauDQMPath::Object.object, SingleObjectCondition.object, SingleObjectTrigger.object, MEtoEDM< T >::MEtoEDMObject.object, PhysicsTools::TrainerMonitoring::RootObject< T >.object, querying.connection.object(), querying.factory.object(), Vispa.Views.LineDecayView.LineDecayContainer.object(), python.Events.object(), Vispa.Share.ObjectHolder.ObjectHolder.removeObject(), Vispa.Views.LineDecayView.LineDecayView.tabController(), and Vispa.Views.LineDecayView.LineDecayContainer.tabController().

834  def mouseReleaseEvent(self, event):
835  """ Join nodes if they belong to objects with relations.
836  """
837  if len(self._selectedList) > 0 and isinstance(self._selectedList[0], DecayNode):
838  # unite DecayNodes
839  selectedObject = self._selectedList[0]
840  dataObjects = self.dataObjects()[:]
841  for obj in dataObjects:
842  if obj != self._selectedList[0] and isinstance(obj, DecayNode) and obj.containsPoint(event.pos()):
843  hasRelations=self.dataAccessor().hasRelations(self.object())
844  for decayLine in self._selectedList[0].dataObjects()+obj.dataObjects():
845  hasRelations=hasRelations and self.dataAccessor().hasRelations(decayLine.object())
846  if not hasRelations:
847  continue
848  # selectedObject.unite(obj) # this may lead to image errors, so do it the other way
849  obj.unite(self._selectedList[0])
850  self.removeObject(selectedObject)
851  self._selectedList.append(obj)
852  if self.tabController():
853  self.tabController().setModified()
854 
855 
def Vispa.Views.LineDecayView.LineDecayContainer.noDecorationsMode (   self)
def Vispa.Views.LineDecayView.LineDecayContainer.object (   self)
def Vispa.Views.LineDecayView.LineDecayContainer.objectMoved (   self,
  decayObject,
  oldBoundingRect = None 
)

Definition at line 692 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer._visibleList, DDDWorldObserver< Event >.update(), ECALPFSeedCleaner.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), SaveSimTrack.update(), PTStatistics.update(), PrintTrackNumberAction.update(), GenericMVAComputerCache.update(), Basic2DGenericPFlowClusterizer.update(), PFMultiDepthClusterizer.update(), reco::KalmanGhostTrackUpdater.update(), DDG4ProductionCuts.update(), FastFedCablingTask.update(), TrajectoryStateUpdator.update(), RecHitTopologicalCleanerBase.update(), PFlow2DClusterizerWithTime.update(), LagrangeChildUpdator.update(), VertexTrackUpdator< N >.update(), DummyVertexTrackUpdator< N >.update(), ApvTimingTask.update(), ErrorCorrelation.update(), FedTimingTask.update(), VpspScanTask.update(), MSLayersAtAngle.update(), PedestalsHistosUsingDb.update(), NoiseHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), VpspScanHistosUsingDb.update(), PrintSensitive.update(), GsfMultiStateUpdator.update(), PedestalsTask.update(), AlignableDet.update(), OptoScanTask.update(), ApvTimingHistosUsingDb.update(), DaqScopeModeHistosUsingDb.update(), MonopoleSteppingAction.update(), CalibrationScanTask.update(), FineDelayTask.update(), LatencyTask.update(), CalibrationTask.update(), SCRegressionCalculator< VarCalc >.update(), edm::SubProcessParentageHelper.update(), FastFedCablingHistosUsingDb.update(), PFClusterEnergyCorrectorBase.update(), PFCPositionCalculatorBase.update(), RHStopTracer.update(), FedCablingTask.update(), AlignableDetUnit.update(), KFStrip1DUpdator.update(), cond::persistency::ITagTable.update(), LatencyHistosUsingDb.update(), CheckOverlap.update(), TkPhase2OTMeasurementDet.update(), NoiseTask.update(), PedsOnlyTask.update(), TkPixelMeasurementDet.update(), CountProcessesAction.update(), PrintGeomInfoAction.update(), PrintGeomSummary.update(), CalibrationHistosUsingDb.update(), ChildUpdator.update(), FineDelayHistosUsingDb.update(), PrintMaterialBudgetInfo.update(), BaselinePFSCRegression.update(), progressbar.Widget.update(), PedsFullNoiseTask.update(), AlignableCSCChamber.update(), PhysicsTools::MVAComputerCache.update(), KFSwitching1DUpdator.update(), KinematicConstrainedVertexUpdator.update(), HGCScintSD.update(), cond::persistency::GLOBAL_TAG::Table.update(), StoreSecondary.update(), MaterialBudgetHcal.update(), HFNoseSD.update(), HGCalSD.update(), FastTimerSD.update(), edm::RunningAverage.update(), DaqScopeModeTask.update(), HGCalTBMB.update(), Observer< const T * >.update(), BinomialProbability.update(), AlignableTracker.update(), Observer< T >.update(), Observer< const BeginOfEvent * >.update(), Observer< const EndOfRun * >.update(), Observer< const EndOfEvent * >.update(), Observer< const BeginOfTrack * >.update(), Observer< const G4Step * >.update(), Observer< const EndOfJob * >.update(), Observer< const EndOfTrack * >.update(), Observer< const BeginOfJob * >.update(), Observer< const Event * >.update(), Observer< const DDDWorld * >.update(), Observer< const BeginOfRun * >.update(), GflashG4Watcher.update(), pathelpers::Record.update(), MuonServiceProxy.update(), PFClusterBuilderBase.update(), HGCSD.update(), cond::persistency::TAG::Table.update(), edm::storage::StatisticsSenderService::FileStatistics.update(), funct::Master< F >.update(), KFUpdator.update(), MaterialBudget.update(), MaterialBudgetForward.update(), RealisticSimClusterMapper.update(), CaloTrkProcessing.update(), AlignableComposite.update(), CheckSecondary.update(), SimG4FluxProducer.update(), EcalSimHitsValidProducer.update(), ECAL2DPositionCalcWithDepthCorr.update(), KalmanVertexTrackUpdator< 5 >.update(), KalmanVertexTrackUpdator< N >.update(), TrackingMaterialProducer.update(), HcalTestAnalysis.update(), FWJobMetadataManager.update(), TrackingVerboseAction.update(), L1TMuonBarrelKalmanAlgo.update(), PhysicsTools::TreeReader.update(), SiTrackerMultiRecHitUpdator.update(), BasicMultiTrajectoryState.update(), MaterialBudgetAction.update(), KalmanVertexUpdator< 5 >.update(), SingleParticleEvent.update(), pos::PixelConfig.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), edm::service::CondorStatusService.update(), SiStripPartition.update(), fwlite::RecordWriter.update(), AlignableMuon.update(), SiStripConfObject.update(), MuonTrajectoryUpdator.update(), fastsim::Geometry.update(), FWParameterSetterBase.update(), TimingSD.update(), HCalSD.update(), HGCPassive.update(), FiberSD.update(), TotemTestGem.update(), SimG4HcalValidation.update(), progressbar.Timer.update(), HcaluLUTTPGCoder.update(), MuonSensitiveDetector.update(), simwatcher::BeginOfTrackCounter.update(), Alignable.update(), TkAccumulatingSensitiveDetector.update(), MuonUpdatorAtVertex.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), DQMOldReceiver.update(), HcalTB02Analysis.update(), LaserAlignmentSimulation.update(), TotemSD.update(), CaloSteppingAction.update(), ApvAnalysisFactory.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< T >.update(), sim_act::Signaler< BeginOfTrack >.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< G4Step >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< DDDWorld >.update(), SimTracer.update(), progressbar.WidgetHFill.update(), HcalForwardAnalysis.update(), DTSegmentUpdator.update(), FP420SD.update(), DTVDriftCalibration::cellInfo.update(), sistrip::RawToDigiUnpacker.update(), DAClusterizerInZ.update(), HcalTB04Analysis.update(), SimG4HGCalValidation.update(), DoCastorAnalysis.update(), ZdcTestAnalysis.update(), CastorTestAnalysis.update(), EcalTBH4Trigger.update(), PhysicsTools::TreeReader::Value.update(), BetafuncEvtVtxGenerator.update(), CaloSD.update(), InitialClusteringStepBase.update(), cond::persistency::IPayloadMigrationTable.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), HLTScalersClient::CountLSFifo_t.update(), progressbar.Bar.update(), DynamicTruncation.update(), jsoncollector::IntJ.update(), edm::service::SimpleMemoryCheck.update(), PFECALSuperClusterAlgo.update(), edm::BMixingModule.update(), evf::FastMonitoringService::Encoding.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), CastorShowerLibraryMaker.update(), cond::persistency::IGTTable.update(), DTRecSegment2D.update(), MonitorElement.update(), StandAloneMuonFilter.update(), jsoncollector::DoubleJ.update(), FWPSetTableManager.update(), DQMNet::Peer.update, G4StepStatistics.update(), TrajectoryStateOnSurface.update(), progressbar.FormatLabel.update(), DQMNet::AutoPeer.update, FWLiteESRecordWriterAnalyzer.update(), CommissioningTask.update(), FP420Test.update(), StMeasurementDetSet.update(), Folder.update(), DAClusterizerInZ_vect.update(), BscTest.update(), jsoncollector::StringJ.update(), dqm-mbProfile.Profile.update(), DAClusterizerInZT_vect.update(), jsoncollector::HistoJ< T >.update(), jsoncollector::HistoJ< unsigned int >.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), PxMeasurementDetSet.update(), Phase2OTMeasurementDetSet.update(), edmStreamStallGrapher.Stack.update(), crabFunctions.CrabTask.update(), edmNew::DetSetVector< T >.update(), DetSetVector< T >.update(), DetSetVector< SiPixelCluster >.update(), const_iterator.update(), DetSetVector< SiStripCluster >.update(), and DetSetVector< ClusterType >.update().

692  def objectMoved(self, decayObject, oldBoundingRect=None):
693  boundingRect = decayObject.boundingRect()
694  if oldBoundingRect:
695  self.update(boundingRect.unite(oldBoundingRect))
696  else:
697  self.update(boundingRect)
698 
699  # update visiblity list
700  objectIsVisible = False
701  if self.visibleRegion().intersects(boundingRect):
702  objectIsVisible = True
703  if decayObject in self._visibleList:
704  if not objectIsVisible:
705  self._visibleList.remove(decayObject)
706  elif objectIsVisible:
707  self._visibleList.append(decayObject)
708 
def objectMoved(self, decayObject, oldBoundingRect=None)
def Vispa.Views.LineDecayView.LineDecayContainer.operationId (   self)
def Vispa.Views.LineDecayView.LineDecayContainer.paint (   self,
  painter 
)

Definition at line 733 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer._visibleList, Vispa.Gui.WidgetContainer.WidgetContainer.collapsed(), Vispa.Views.LineDecayView.LineDecayView.noDecorationsMode(), Vispa.Views.LineDecayView.LineDecayContainer.noDecorationsMode(), Vispa.Views.LineDecayView.LineDecayContainer.paintDecayObject(), and Vispa.Views.LineDecayView.LineDecayContainer.updateVisibleList().

733  def paint(self, painter):
734  WidgetContainer.paint(self, painter)
735 
736  if self.collapsed():
737  # don't paint if container is collapsed
738  return
739 
740  generalPaintMode = 0x0
741  if self.noDecorationsMode():
742  generalPaintMode = DecayObject.PAINT_MODE_NO_DECORATIONS
743 
744  #if self.dataObjectsCount() > 50:
745  # painter.setRenderHint(QPainter.Antialiasing, False)
746 
747  self.updateVisibleList()
748  decayNodes = []
749  painterClipRegion = self.visibleRegion()
750  for decayObject in reversed(self._visibleList):
751  if isinstance(decayObject, DecayLine):
752  self.paintDecayObject(painter, decayObject, generalPaintMode)
753  if isinstance(decayObject, DecayNode):
754  # paint nodes after lines, so that they appear above the lines
755  decayNodes.append(decayObject)
756 
757  for decayObject in decayNodes:
758  self.paintDecayObject(painter, decayObject, generalPaintMode)
759 
def paintDecayObject(self, painter, decayObject, generalPaintMode)
def Vispa.Views.LineDecayView.LineDecayContainer.paintDecayObject (   self,
  painter,
  decayObject,
  generalPaintMode 
)

Definition at line 760 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer._hoveredObject, and Vispa.Views.LineDecayView.LineDecayContainer._selectedList.

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.paint().

760  def paintDecayObject(self, painter, decayObject, generalPaintMode):
761  paintMode = generalPaintMode
762  if decayObject in self._selectedList:
763  paintMode |= DecayObject.PAINT_MODE_SELECTED
764  if decayObject == self._hoveredObject:
765  paintMode |= DecayObject.PAINT_MODE_HOVERED
766  decayObject.paint(painter, paintMode)
767 
def paintDecayObject(self, painter, decayObject, generalPaintMode)
def Vispa.Views.LineDecayView.LineDecayContainer.removeObject (   self,
  decayObject 
)

Definition at line 881 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer._existingObjectIds, Vispa.Views.LineDecayView.LineDecayContainer._selectedList, Vispa.Share.ObjectHolder.ObjectHolder.dataAccessor(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor(), Vispa.Share.ObjectHolder.ObjectHolder.dataObjects(), triggerObjects_cff.id, Vispa.Views.LineDecayView.LineDecayContainer.scheduleUpdateVisibleList(), DDDWorldObserver< Event >.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), ECALPFSeedCleaner.update(), SaveSimTrack.update(), PTStatistics.update(), PrintTrackNumberAction.update(), GenericMVAComputerCache.update(), Basic2DGenericPFlowClusterizer.update(), PFMultiDepthClusterizer.update(), reco::KalmanGhostTrackUpdater.update(), DDG4ProductionCuts.update(), DummyVertexTrackUpdator< N >.update(), FastFedCablingTask.update(), TrajectoryStateUpdator.update(), RecHitTopologicalCleanerBase.update(), PFlow2DClusterizerWithTime.update(), LagrangeChildUpdator.update(), VertexTrackUpdator< N >.update(), ErrorCorrelation.update(), ApvTimingTask.update(), FedTimingTask.update(), VpspScanTask.update(), MSLayersAtAngle.update(), NoiseHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), PedestalsHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), VpspScanHistosUsingDb.update(), PrintSensitive.update(), GsfMultiStateUpdator.update(), AlignableDet.update(), OptoScanTask.update(), PedestalsTask.update(), ApvTimingHistosUsingDb.update(), DaqScopeModeHistosUsingDb.update(), MonopoleSteppingAction.update(), CalibrationScanTask.update(), FineDelayTask.update(), LatencyTask.update(), CalibrationTask.update(), SCRegressionCalculator< VarCalc >.update(), edm::SubProcessParentageHelper.update(), FastFedCablingHistosUsingDb.update(), PFClusterEnergyCorrectorBase.update(), PFCPositionCalculatorBase.update(), AlignableDetUnit.update(), RHStopTracer.update(), FedCablingTask.update(), KFStrip1DUpdator.update(), LatencyHistosUsingDb.update(), cond::persistency::ITagTable.update(), CheckOverlap.update(), TkPhase2OTMeasurementDet.update(), NoiseTask.update(), PedsOnlyTask.update(), TkPixelMeasurementDet.update(), CountProcessesAction.update(), PrintGeomInfoAction.update(), PrintGeomSummary.update(), CalibrationHistosUsingDb.update(), FineDelayHistosUsingDb.update(), ChildUpdator.update(), PrintMaterialBudgetInfo.update(), BaselinePFSCRegression.update(), progressbar.Widget.update(), PedsFullNoiseTask.update(), AlignableCSCChamber.update(), PhysicsTools::MVAComputerCache.update(), KFSwitching1DUpdator.update(), KinematicConstrainedVertexUpdator.update(), HGCScintSD.update(), cond::persistency::GLOBAL_TAG::Table.update(), StoreSecondary.update(), MaterialBudgetHcal.update(), HFNoseSD.update(), HGCalSD.update(), FastTimerSD.update(), edm::RunningAverage.update(), DaqScopeModeTask.update(), HGCalTBMB.update(), Observer< const EndOfTrack * >.update(), BinomialProbability.update(), Observer< T >.update(), Observer< const BeginOfJob * >.update(), Observer< const Event * >.update(), Observer< const BeginOfTrack * >.update(), AlignableTracker.update(), Observer< const G4Step * >.update(), Observer< const EndOfRun * >.update(), Observer< const EndOfJob * >.update(), Observer< const T * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const DDDWorld * >.update(), Observer< const EndOfEvent * >.update(), Observer< const BeginOfRun * >.update(), GflashG4Watcher.update(), pathelpers::Record.update(), MuonServiceProxy.update(), PFClusterBuilderBase.update(), HGCSD.update(), cond::persistency::TAG::Table.update(), edm::storage::StatisticsSenderService::FileStatistics.update(), funct::Master< F >.update(), KFUpdator.update(), MaterialBudget.update(), MaterialBudgetForward.update(), RealisticSimClusterMapper.update(), CaloTrkProcessing.update(), CheckSecondary.update(), AlignableComposite.update(), SimG4FluxProducer.update(), KalmanVertexTrackUpdator< 5 >.update(), ECAL2DPositionCalcWithDepthCorr.update(), KalmanVertexTrackUpdator< N >.update(), EcalSimHitsValidProducer.update(), TrackingMaterialProducer.update(), HcalTestAnalysis.update(), FWJobMetadataManager.update(), TrackingVerboseAction.update(), L1TMuonBarrelKalmanAlgo.update(), PhysicsTools::TreeReader.update(), SiTrackerMultiRecHitUpdator.update(), BasicMultiTrajectoryState.update(), MaterialBudgetAction.update(), SingleParticleEvent.update(), KalmanVertexUpdator< 5 >.update(), pos::PixelConfig.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), edm::service::CondorStatusService.update(), SiStripPartition.update(), fwlite::RecordWriter.update(), SiStripConfObject.update(), AlignableMuon.update(), MuonTrajectoryUpdator.update(), fastsim::Geometry.update(), FWParameterSetterBase.update(), TimingSD.update(), HCalSD.update(), HGCPassive.update(), FiberSD.update(), TotemTestGem.update(), SimG4HcalValidation.update(), progressbar.Timer.update(), MuonSensitiveDetector.update(), simwatcher::BeginOfTrackCounter.update(), HcaluLUTTPGCoder.update(), Alignable.update(), TkAccumulatingSensitiveDetector.update(), MuonUpdatorAtVertex.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), DQMOldReceiver.update(), HcalTB02Analysis.update(), LaserAlignmentSimulation.update(), TotemSD.update(), CaloSteppingAction.update(), ApvAnalysisFactory.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< T >.update(), sim_act::Signaler< G4Step >.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< BeginOfTrack >.update(), SimTracer.update(), progressbar.WidgetHFill.update(), HcalForwardAnalysis.update(), DTSegmentUpdator.update(), FP420SD.update(), DTVDriftCalibration::cellInfo.update(), sistrip::RawToDigiUnpacker.update(), DAClusterizerInZ.update(), HcalTB04Analysis.update(), SimG4HGCalValidation.update(), DoCastorAnalysis.update(), ZdcTestAnalysis.update(), EcalTBH4Trigger.update(), CastorTestAnalysis.update(), PhysicsTools::TreeReader::Value.update(), BetafuncEvtVtxGenerator.update(), CaloSD.update(), InitialClusteringStepBase.update(), cond::persistency::IPayloadMigrationTable.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), HLTScalersClient::CountLSFifo_t.update(), progressbar.Bar.update(), DynamicTruncation.update(), jsoncollector::IntJ.update(), edm::service::SimpleMemoryCheck.update(), PFECALSuperClusterAlgo.update(), evf::FastMonitoringService::Encoding.update(), edm::BMixingModule.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), CastorShowerLibraryMaker.update(), cond::persistency::IGTTable.update(), DTRecSegment2D.update(), MonitorElement.update(), StandAloneMuonFilter.update(), jsoncollector::DoubleJ.update(), FWPSetTableManager.update(), DQMNet::Peer.update, G4StepStatistics.update(), progressbar.FormatLabel.update(), TrajectoryStateOnSurface.update(), DQMNet::AutoPeer.update, FWLiteESRecordWriterAnalyzer.update(), CommissioningTask.update(), FP420Test.update(), StMeasurementDetSet.update(), Folder.update(), DAClusterizerInZ_vect.update(), BscTest.update(), jsoncollector::StringJ.update(), dqm-mbProfile.Profile.update(), DAClusterizerInZT_vect.update(), jsoncollector::HistoJ< unsigned int >.update(), jsoncollector::HistoJ< T >.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), PxMeasurementDetSet.update(), Phase2OTMeasurementDetSet.update(), edmStreamStallGrapher.Stack.update(), crabFunctions.CrabTask.update(), edmNew::DetSetVector< T >.update(), DetSetVector< T >.update(), DetSetVector< SiStripCluster >.update(), DetSetVector< SiPixelCluster >.update(), const_iterator.update(), and DetSetVector< ClusterType >.update().

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.delete().

881  def removeObject(self, decayObject):
882  if not decayObject in self.dataObjects():
883  return
884  self.update(decayObject.boundingRect())
885  if decayObject.delete():
886  if decayObject in self._selectedList:
887  self._selectedList.remove(decayObject)
888  if decayObject.object():
889  if self.dataAccessor():
890  id = self.dataAccessor().id(decayObject.object())
891  if id in self._existingObjectIds:
892  self._existingObjectIds.remove(id)
893  self._particlesDict.pop(decayObject.object(), None)
894  self._pxlObject.removeObject(decayObject.object())
895  ObjectHolder.removeObject(self, decayObject)
897  #self.tabController().updateContent() # not here, can create infinite loop
898 
def scheduleUpdateVisibleList(self, update=True)
def Vispa.Views.LineDecayView.LineDecayContainer.scheduleUpdateVisibleList (   self,
  update = True 
)

Definition at line 709 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer._updateVisibleListFlag, Vispa.Share.BasicDataAccessor.BasicDataAccessor.children(), Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor.children(), data_sources.node.children(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.children(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.children(), geometry.Structure.children, Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), and Vispa.Views.LineDecayView.LineDecayContainer.children().

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.addDecayLine(), Vispa.Views.LineDecayView.LineDecayContainer.addDecayNode(), Vispa.Views.LineDecayView.LineDecayContainer.removeObject(), Vispa.Views.LineDecayView.LineDecayContainer.setZoom(), and Vispa.Views.LineDecayView.LineDecayContainer.showEvent().

709  def scheduleUpdateVisibleList(self, update=True):
710  self._updateVisibleListFlag = update
711  for child in self.children():
712  if isinstance(child, LineDecayContainer):
713  child.scheduleUpdateVisibleList(update)
714 
def scheduleUpdateVisibleList(self, update=True)
def Vispa.Views.LineDecayView.LineDecayContainer.select (   self,
  decayObject 
)

Definition at line 664 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer._selectedList, Vispa.Share.ObjectHolder.ObjectHolder.dataObjects(), edm::eventsetup::heterocontainer.insert(), edmIntegrityCheck.PublishToFileSystem.parent, edm::ThinnedAssociationBranches.parent(), confdb.HLTProcess.parent, reco::PattRecoNode< Cluster >.parent(), FSimVertex.parent(), DDI::Division.parent(), math::GraphWalker< N, E >.parent(), math::GraphWalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), math::GraphWalker< DDLogicalPart, DDPosData * >.parent(), GraphWalker< N, E >.parent(), edm::ModuleCallingContext.parent(), DDLSAX2FileHandler.parent(), OpticalObject.parent(), emtf::Node.parent, edm::DocFormatHelper.parent(), FWPSetTableManager::PSetData.parent, EmDQMReco::FourVectorMonitorElements.parent, DDFilteredView.parent(), cms::DDFilteredView.parent(), DDExpandedView.parent(), DDDivision.parent(), options.HLTProcessOptions.parent, dqmservices::TriggerSelector::TreeElement.parent(), BeautifulSoup.PageElement.parent, DDXMLElement.parent(), globcontrol.parent, Vispa.Views.LineDecayView.DecayObject.parent(), MatrixUtil.remove(), DDDWorldObserver< Event >.update(), ECALPFSeedCleaner.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), SaveSimTrack.update(), PTStatistics.update(), PrintTrackNumberAction.update(), Basic2DGenericPFlowClusterizer.update(), PFMultiDepthClusterizer.update(), reco::KalmanGhostTrackUpdater.update(), GenericMVAComputerCache.update(), DDG4ProductionCuts.update(), RecHitTopologicalCleanerBase.update(), PFlow2DClusterizerWithTime.update(), FastFedCablingTask.update(), LagrangeChildUpdator.update(), VertexTrackUpdator< N >.update(), DummyVertexTrackUpdator< N >.update(), TrajectoryStateUpdator.update(), ErrorCorrelation.update(), ApvTimingTask.update(), MSLayersAtAngle.update(), FedTimingTask.update(), VpspScanTask.update(), NoiseHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedestalsHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), VpspScanHistosUsingDb.update(), AlignableDet.update(), OptoScanTask.update(), PedestalsTask.update(), PrintSensitive.update(), GsfMultiStateUpdator.update(), ApvTimingHistosUsingDb.update(), DaqScopeModeHistosUsingDb.update(), CalibrationScanTask.update(), FineDelayTask.update(), LatencyTask.update(), MonopoleSteppingAction.update(), CalibrationTask.update(), edm::SubProcessParentageHelper.update(), SCRegressionCalculator< VarCalc >.update(), FastFedCablingHistosUsingDb.update(), PFClusterEnergyCorrectorBase.update(), PFCPositionCalculatorBase.update(), FedCablingTask.update(), AlignableDetUnit.update(), RHStopTracer.update(), KFStrip1DUpdator.update(), LatencyHistosUsingDb.update(), TkPhase2OTMeasurementDet.update(), cond::persistency::ITagTable.update(), CheckOverlap.update(), TkPixelMeasurementDet.update(), NoiseTask.update(), PedsOnlyTask.update(), CountProcessesAction.update(), PrintGeomInfoAction.update(), PrintGeomSummary.update(), CalibrationHistosUsingDb.update(), ChildUpdator.update(), FineDelayHistosUsingDb.update(), PrintMaterialBudgetInfo.update(), PedsFullNoiseTask.update(), progressbar.Widget.update(), BaselinePFSCRegression.update(), KinematicConstrainedVertexUpdator.update(), AlignableCSCChamber.update(), KFSwitching1DUpdator.update(), PhysicsTools::MVAComputerCache.update(), HGCScintSD.update(), StoreSecondary.update(), cond::persistency::GLOBAL_TAG::Table.update(), MaterialBudgetHcal.update(), DaqScopeModeTask.update(), HFNoseSD.update(), HGCalSD.update(), FastTimerSD.update(), edm::RunningAverage.update(), HGCalTBMB.update(), Observer< const G4Step * >.update(), Observer< const DDDWorld * >.update(), Observer< const T * >.update(), AlignableTracker.update(), Observer< const BeginOfTrack * >.update(), BinomialProbability.update(), Observer< const BeginOfRun * >.update(), Observer< T >.update(), Observer< const EndOfRun * >.update(), Observer< const EndOfJob * >.update(), Observer< const EndOfTrack * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const BeginOfJob * >.update(), Observer< const EndOfEvent * >.update(), Observer< const Event * >.update(), PFClusterBuilderBase.update(), MuonServiceProxy.update(), GflashG4Watcher.update(), pathelpers::Record.update(), HGCSD.update(), cond::persistency::TAG::Table.update(), edm::storage::StatisticsSenderService::FileStatistics.update(), RealisticSimClusterMapper.update(), MaterialBudgetForward.update(), KFUpdator.update(), MaterialBudget.update(), funct::Master< F >.update(), AlignableComposite.update(), CaloTrkProcessing.update(), CheckSecondary.update(), ECAL2DPositionCalcWithDepthCorr.update(), KalmanVertexTrackUpdator< N >.update(), SimG4FluxProducer.update(), EcalSimHitsValidProducer.update(), KalmanVertexTrackUpdator< 5 >.update(), TrackingMaterialProducer.update(), HcalTestAnalysis.update(), FWJobMetadataManager.update(), TrackingVerboseAction.update(), L1TMuonBarrelKalmanAlgo.update(), SiTrackerMultiRecHitUpdator.update(), PhysicsTools::TreeReader.update(), BasicMultiTrajectoryState.update(), MaterialBudgetAction.update(), SingleParticleEvent.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), KalmanVertexUpdator< 5 >.update(), pos::PixelConfig.update(), edm::service::CondorStatusService.update(), AlignableMuon.update(), SiStripPartition.update(), SiStripConfObject.update(), fwlite::RecordWriter.update(), MuonTrajectoryUpdator.update(), FWParameterSetterBase.update(), TimingSD.update(), fastsim::Geometry.update(), HGCPassive.update(), FiberSD.update(), HCalSD.update(), SimG4HcalValidation.update(), progressbar.Timer.update(), TotemTestGem.update(), HcaluLUTTPGCoder.update(), MuonSensitiveDetector.update(), simwatcher::BeginOfTrackCounter.update(), MuonUpdatorAtVertex.update(), Alignable.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), TkAccumulatingSensitiveDetector.update(), DQMOldReceiver.update(), HcalTB02Analysis.update(), LaserAlignmentSimulation.update(), TotemSD.update(), sim_act::Signaler< BeginOfTrack >.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< G4Step >.update(), CaloSteppingAction.update(), ApvAnalysisFactory.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< T >.update(), SimTracer.update(), progressbar.WidgetHFill.update(), HcalForwardAnalysis.update(), FP420SD.update(), DTSegmentUpdator.update(), DTVDriftCalibration::cellInfo.update(), DAClusterizerInZ.update(), sistrip::RawToDigiUnpacker.update(), HcalTB04Analysis.update(), SimG4HGCalValidation.update(), DoCastorAnalysis.update(), ZdcTestAnalysis.update(), PhysicsTools::TreeReader::Value.update(), CastorTestAnalysis.update(), EcalTBH4Trigger.update(), BetafuncEvtVtxGenerator.update(), CaloSD.update(), InitialClusteringStepBase.update(), cond::persistency::IPayloadMigrationTable.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), HLTScalersClient::CountLSFifo_t.update(), progressbar.Bar.update(), DynamicTruncation.update(), jsoncollector::IntJ.update(), edm::service::SimpleMemoryCheck.update(), PFECALSuperClusterAlgo.update(), edm::BMixingModule.update(), evf::FastMonitoringService::Encoding.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), CastorShowerLibraryMaker.update(), cond::persistency::IGTTable.update(), DTRecSegment2D.update(), MonitorElement.update(), StandAloneMuonFilter.update(), jsoncollector::DoubleJ.update(), FWPSetTableManager.update(), DQMNet::Peer.update, G4StepStatistics.update(), TrajectoryStateOnSurface.update(), progressbar.FormatLabel.update(), DQMNet::AutoPeer.update, FWLiteESRecordWriterAnalyzer.update(), CommissioningTask.update(), FP420Test.update(), StMeasurementDetSet.update(), Folder.update(), DAClusterizerInZ_vect.update(), BscTest.update(), jsoncollector::StringJ.update(), dqm-mbProfile.Profile.update(), DAClusterizerInZT_vect.update(), jsoncollector::HistoJ< unsigned int >.update(), jsoncollector::HistoJ< T >.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), PxMeasurementDetSet.update(), Phase2OTMeasurementDetSet.update(), edmStreamStallGrapher.Stack.update(), crabFunctions.CrabTask.update(), DetSetVector< T >.update(), DetSetVector< ClusterType >.update(), const_iterator.update(), DetSetVector< SiStripCluster >.update(), DetSetVector< SiPixelCluster >.update(), edmNew::DetSetVector< T >.update(), and Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.widgetSelected().

664  def select(self, decayObject):
665  if isinstance(decayObject, type(True)):
666  WidgetContainer.select(self, decayObject)
667  elif not decayObject in self._selectedList:
668  #if type(decayObject) != type(True) and not decayObject in self._selectedList:
669  try:
670  # widgetSelected() usually expects VispaWidget as argument
671  # needed to prevent multiple selects in different containers
672  # in case of problems, replace decayObect by None and emit selected signal (see below)
673  self.parent().widgetSelected(decayObject)
674 
675  if decayObject in self.dataObjects():
676  self.dataObjects().remove(decayObject)
677  self.dataObjects().insert(0, decayObject)
678  self._selectedList.append(decayObject)
679  self.update(decayObject.boundingRect())
680  except ValueError:
681  logging.error(self.__class__.__name__ +": select() - Tried to remove non data object from data objects list. This is not supposed to happen. Check it.")
682 
683  # no need to emit selected signal as long as
684  # widgetSelected(decayObject) works (see above)
685  #self.emit(SIGNAL("selected"), decayObject.object())
686 
def widgetSelected(self, widget, multiSelect=False)
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
Definition: HCMethods.h:50
def remove(d, key, TELL=False)
Definition: MatrixUtil.py:212
def Vispa.Views.LineDecayView.LineDecayContainer.setAcceptDrops (   self,
  accept 
)
Sets whether this view accepts drops and forwards the information to sub LineDecayContainers.

Definition at line 328 of file LineDecayView.py.

References Vispa.Share.BasicDataAccessor.BasicDataAccessor.children(), Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor.children(), data_sources.node.children(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.children(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.children(), geometry.Structure.children, Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), and Vispa.Views.LineDecayView.LineDecayContainer.children().

Referenced by Vispa.Views.LineDecayView.LineDecayView.__init__().

328  def setAcceptDrops(self, accept):
329  """ Sets whether this view accepts drops and forwards the information to sub LineDecayContainers.
330  """
331  WidgetContainer.setAcceptDrops(self, accept)
332  for child in self.children():
333  if isinstance(child, LineDecayContainer):
334  child.setAcceptDrops(accept)
335 
def Vispa.Views.LineDecayView.LineDecayContainer.setDataAccessor (   self,
  accessor 
)
Sets the DataAccessor from which the lines are created.

You need to call updateContent() in order to make the changes visible.   

Definition at line 336 of file LineDecayView.py.

336  def setDataAccessor(self, accessor):
337  """ Sets the DataAccessor from which the lines are created.
338 
339  You need to call updateContent() in order to make the changes visible.
340  """
341  if not isinstance(accessor, BasicDataAccessor):
342  raise TypeError(__name__ + " requires data accessor of type BasicDataAccessor.")
343  if not isinstance(accessor, RelativeDataAccessor):
344  raise TypeError(__name__ + " requires data accessor of type RelativeDataAccessor.")
345  if not isinstance(accessor, ParticleDataAccessor):
346  raise TypeError(__name__ + " requires data accessor of type ParticleDataAccessor.")
347  AbstractView.setDataAccessor(self, accessor)
348 
def Vispa.Views.LineDecayView.LineDecayContainer.setEditable (   self,
  editable 
)

Definition at line 316 of file LineDecayView.py.

316  def setEditable(self, editable):
317  self._editable = editable
318  self.setAcceptDrops(editable)
319  # make event views freely moveable
320  self.enableAutolayoutChildren(not editable)
321  for child in self.children():
322  if isinstance(child, LineDecayContainer):
323  child.setEditable(editable)
324 
def enableAutolayoutChildren(self, autolayout)
def Vispa.Views.LineDecayView.LineDecayContainer.setPxlObject (   self,
  object 
)
def Vispa.Views.LineDecayView.LineDecayContainer.setZoom (   self,
  zoom 
)
Sets zoom of this widget and of it's children.

Definition at line 406 of file LineDecayView.py.

References Vispa.Share.ObjectHolder.ObjectHolder.dataObjects(), Vispa.Views.LineDecayView.LineDecayContainer.scheduleUpdateVisibleList(), DDDWorldObserver< Event >.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), ECALPFSeedCleaner.update(), SaveSimTrack.update(), PTStatistics.update(), PrintTrackNumberAction.update(), GenericMVAComputerCache.update(), Basic2DGenericPFlowClusterizer.update(), PFMultiDepthClusterizer.update(), reco::KalmanGhostTrackUpdater.update(), DDG4ProductionCuts.update(), VertexTrackUpdator< N >.update(), DummyVertexTrackUpdator< N >.update(), FastFedCablingTask.update(), TrajectoryStateUpdator.update(), PFlow2DClusterizerWithTime.update(), RecHitTopologicalCleanerBase.update(), LagrangeChildUpdator.update(), ApvTimingTask.update(), ErrorCorrelation.update(), FedTimingTask.update(), VpspScanTask.update(), MSLayersAtAngle.update(), AlignableDet.update(), NoiseHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedestalsHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), VpspScanHistosUsingDb.update(), PrintSensitive.update(), GsfMultiStateUpdator.update(), ApvTimingHistosUsingDb.update(), PedestalsTask.update(), OptoScanTask.update(), DaqScopeModeHistosUsingDb.update(), MonopoleSteppingAction.update(), CalibrationScanTask.update(), FineDelayTask.update(), LatencyTask.update(), FastFedCablingHistosUsingDb.update(), CalibrationTask.update(), SCRegressionCalculator< VarCalc >.update(), edm::SubProcessParentageHelper.update(), PFClusterEnergyCorrectorBase.update(), PFCPositionCalculatorBase.update(), AlignableDetUnit.update(), RHStopTracer.update(), FedCablingTask.update(), KFStrip1DUpdator.update(), LatencyHistosUsingDb.update(), cond::persistency::ITagTable.update(), CheckOverlap.update(), TkPhase2OTMeasurementDet.update(), NoiseTask.update(), PedsOnlyTask.update(), TkPixelMeasurementDet.update(), CountProcessesAction.update(), PrintGeomInfoAction.update(), PrintGeomSummary.update(), CalibrationHistosUsingDb.update(), FineDelayHistosUsingDb.update(), ChildUpdator.update(), PrintMaterialBudgetInfo.update(), BaselinePFSCRegression.update(), progressbar.Widget.update(), PedsFullNoiseTask.update(), PhysicsTools::MVAComputerCache.update(), KFSwitching1DUpdator.update(), AlignableCSCChamber.update(), KinematicConstrainedVertexUpdator.update(), HGCScintSD.update(), StoreSecondary.update(), cond::persistency::GLOBAL_TAG::Table.update(), MaterialBudgetHcal.update(), HFNoseSD.update(), HGCalSD.update(), FastTimerSD.update(), edm::RunningAverage.update(), DaqScopeModeTask.update(), HGCalTBMB.update(), BinomialProbability.update(), Observer< const T * >.update(), Observer< T >.update(), Observer< const BeginOfRun * >.update(), Observer< const DDDWorld * >.update(), Observer< const G4Step * >.update(), Observer< const EndOfEvent * >.update(), Observer< const BeginOfTrack * >.update(), Observer< const EndOfJob * >.update(), Observer< const EndOfTrack * >.update(), Observer< const BeginOfJob * >.update(), Observer< const Event * >.update(), AlignableTracker.update(), Observer< const EndOfRun * >.update(), Observer< const BeginOfEvent * >.update(), GflashG4Watcher.update(), pathelpers::Record.update(), MuonServiceProxy.update(), PFClusterBuilderBase.update(), HGCSD.update(), cond::persistency::TAG::Table.update(), edm::storage::StatisticsSenderService::FileStatistics.update(), funct::Master< F >.update(), MaterialBudgetForward.update(), KFUpdator.update(), MaterialBudget.update(), RealisticSimClusterMapper.update(), CaloTrkProcessing.update(), CheckSecondary.update(), AlignableComposite.update(), SimG4FluxProducer.update(), ECAL2DPositionCalcWithDepthCorr.update(), KalmanVertexTrackUpdator< 5 >.update(), KalmanVertexTrackUpdator< N >.update(), EcalSimHitsValidProducer.update(), TrackingMaterialProducer.update(), HcalTestAnalysis.update(), FWJobMetadataManager.update(), TrackingVerboseAction.update(), L1TMuonBarrelKalmanAlgo.update(), PhysicsTools::TreeReader.update(), SiTrackerMultiRecHitUpdator.update(), BasicMultiTrajectoryState.update(), MaterialBudgetAction.update(), SingleParticleEvent.update(), KalmanVertexUpdator< 5 >.update(), pos::PixelConfig.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), edm::service::CondorStatusService.update(), AlignableMuon.update(), SiStripPartition.update(), fwlite::RecordWriter.update(), MuonTrajectoryUpdator.update(), SiStripConfObject.update(), fastsim::Geometry.update(), FWParameterSetterBase.update(), TimingSD.update(), HCalSD.update(), HGCPassive.update(), FiberSD.update(), progressbar.Timer.update(), TotemTestGem.update(), SimG4HcalValidation.update(), MuonSensitiveDetector.update(), simwatcher::BeginOfTrackCounter.update(), HcaluLUTTPGCoder.update(), TkAccumulatingSensitiveDetector.update(), MuonUpdatorAtVertex.update(), Alignable.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), DQMOldReceiver.update(), HcalTB02Analysis.update(), LaserAlignmentSimulation.update(), TotemSD.update(), sim_act::Signaler< EndOfEvent >.update(), CaloSteppingAction.update(), sim_act::Signaler< BeginOfTrack >.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< T >.update(), ApvAnalysisFactory.update(), sim_act::Signaler< G4Step >.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< BeginOfEvent >.update(), SimTracer.update(), progressbar.WidgetHFill.update(), HcalForwardAnalysis.update(), DTSegmentUpdator.update(), FP420SD.update(), DTVDriftCalibration::cellInfo.update(), DAClusterizerInZ.update(), sistrip::RawToDigiUnpacker.update(), HcalTB04Analysis.update(), SimG4HGCalValidation.update(), DoCastorAnalysis.update(), ZdcTestAnalysis.update(), CastorTestAnalysis.update(), PhysicsTools::TreeReader::Value.update(), EcalTBH4Trigger.update(), BetafuncEvtVtxGenerator.update(), CaloSD.update(), InitialClusteringStepBase.update(), cond::persistency::IPayloadMigrationTable.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), HLTScalersClient::CountLSFifo_t.update(), progressbar.Bar.update(), DynamicTruncation.update(), jsoncollector::IntJ.update(), edm::service::SimpleMemoryCheck.update(), PFECALSuperClusterAlgo.update(), edm::BMixingModule.update(), evf::FastMonitoringService::Encoding.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), CastorShowerLibraryMaker.update(), cond::persistency::IGTTable.update(), DTRecSegment2D.update(), MonitorElement.update(), StandAloneMuonFilter.update(), jsoncollector::DoubleJ.update(), FWPSetTableManager.update(), DQMNet::Peer.update, G4StepStatistics.update(), TrajectoryStateOnSurface.update(), progressbar.FormatLabel.update(), DQMNet::AutoPeer.update, FWLiteESRecordWriterAnalyzer.update(), CommissioningTask.update(), FP420Test.update(), StMeasurementDetSet.update(), DAClusterizerInZ_vect.update(), Folder.update(), BscTest.update(), jsoncollector::StringJ.update(), dqm-mbProfile.Profile.update(), DAClusterizerInZT_vect.update(), jsoncollector::HistoJ< unsigned int >.update(), jsoncollector::HistoJ< T >.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), PxMeasurementDetSet.update(), Phase2OTMeasurementDetSet.update(), edmStreamStallGrapher.Stack.update(), crabFunctions.CrabTask.update(), edmNew::DetSetVector< T >.update(), DetSetVector< SiStripCluster >.update(), const_iterator.update(), DetSetVector< T >.update(), DetSetVector< ClusterType >.update(), and DetSetVector< SiPixelCluster >.update().

406  def setZoom(self, zoom):
407  """ Sets zoom of this widget and of it's children.
408  """
409  WidgetContainer.setZoom(self, zoom)
410 
411  for child in self.dataObjects():
412  if isinstance(child, Zoomable):
413  child.setZoom(zoom)
414 
416  self.update()
417 
418 # def dataObjectsNodePriority(self):
419 # return [obj for obj in self.dataObjects() if isinstance(obj, DecayNode)] + [obj for obj in self.dataObjects() if not isinstance(obj, DecayNode)]
420 
def scheduleUpdateVisibleList(self, update=True)
def Vispa.Views.LineDecayView.LineDecayContainer.showEvent (   self,
  event 
)
def Vispa.Views.LineDecayView.LineDecayContainer.sizeHint (   self)
If there is only one container in parent increase it so it fills whole space.

Definition at line 349 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayView._editable, Vispa.Views.LineDecayView.LineDecayContainer._editable, Vispa.Gui.WidgetContainer.WidgetContainer.collapsed(), Vispa.Share.ObjectHolder.ObjectHolder.dataObjectsCount(), Vispa.Gui.VispaWidget.VispaWidget.height(), SiStripPI.max, edmIntegrityCheck.PublishToFileSystem.parent, edm::ThinnedAssociationBranches.parent(), confdb.HLTProcess.parent, FSimVertex.parent(), reco::PattRecoNode< Cluster >.parent(), DDI::Division.parent(), math::GraphWalker< N, E >.parent(), math::GraphWalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), math::GraphWalker< DDLogicalPart, DDPosData * >.parent(), GraphWalker< N, E >.parent(), edm::ModuleCallingContext.parent(), DDLSAX2FileHandler.parent(), OpticalObject.parent(), emtf::Node.parent, FWPSetTableManager::PSetData.parent, edm::DocFormatHelper.parent(), EmDQMReco::FourVectorMonitorElements.parent, DDFilteredView.parent(), cms::DDFilteredView.parent(), DDExpandedView.parent(), DDDivision.parent(), options.HLTProcessOptions.parent, dqmservices::TriggerSelector::TreeElement.parent(), DDXMLElement.parent(), BeautifulSoup.PageElement.parent, globcontrol.parent, Vispa.Views.LineDecayView.DecayObject.parent(), Vispa.Gui.VispaWidget.VispaWidget.width(), and Vispa.Gui.Zoomable.Zoomable.zoomFactor().

349  def sizeHint(self):
350  """ If there is only one container in parent increase it so it fills whole space.
351  """
352  if not self._editable:
353  return WidgetContainer.sizeHint(self)
354 
355  minWidth = 0
356  minHeight = 0
357  if not self.collapsed() and self.parent().dataObjectsCount() == 1:
358  margin = 10
359  minWidth = (self.parent().width() - 2 * margin) / self.zoomFactor()
360  minHeight = (self.parent().height() - 2 * margin) / self.zoomFactor()
361 
362  increaseSize = 0
363  if not self.collapsed():
364  # make it easier to drop particles into container
365  increaseSize = 30
366 
367  sizeHint = WidgetContainer.sizeHint(self)
368  return QSize(max(sizeHint.width() + increaseSize, minWidth), max(sizeHint.height() + increaseSize, minHeight))
369 
def Vispa.Views.LineDecayView.LineDecayContainer.tabController (   self)
Return tab controller.

See setTabController()

Definition at line 431 of file LineDecayView.py.

References edmIntegrityCheck.PublishToFileSystem.parent, edm::ThinnedAssociationBranches.parent(), confdb.HLTProcess.parent, reco::PattRecoNode< Cluster >.parent(), FSimVertex.parent(), DDI::Division.parent(), math::GraphWalker< N, E >.parent(), GraphWalker< N, E >.parent(), math::GraphWalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), math::GraphWalker< DDLogicalPart, DDPosData * >.parent(), edm::ModuleCallingContext.parent(), DDLSAX2FileHandler.parent(), OpticalObject.parent(), edm::DocFormatHelper.parent(), FWPSetTableManager::PSetData.parent, emtf::Node.parent, EmDQMReco::FourVectorMonitorElements.parent, DDFilteredView.parent(), cms::DDFilteredView.parent(), DDExpandedView.parent(), DDDivision.parent(), options.HLTProcessOptions.parent, dqmservices::TriggerSelector::TreeElement.parent(), BeautifulSoup.PageElement.parent, DDXMLElement.parent(), globcontrol.parent, and Vispa.Views.LineDecayView.DecayObject.parent().

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.createObject(), Vispa.Views.LineDecayView.LineDecayContainer.dragEnterEvent(), Vispa.Views.LineDecayView.LineDecayContainer.dropEvent(), Vispa.Views.LineDecayView.LineDecayContainer.keyPressEvent(), and Vispa.Views.LineDecayView.LineDecayContainer.mouseReleaseEvent().

431  def tabController(self):
432  """ Return tab controller.
433 
434  See setTabController()
435  """
436  return self.parent().tabController()
437 
def Vispa.Views.LineDecayView.LineDecayContainer.updateVisibleList (   self,
  force = False 
)

Definition at line 715 of file LineDecayView.py.

References Vispa.Views.LineDecayView.LineDecayContainer._updateVisibleListFlag, Vispa.Views.LineDecayView.LineDecayContainer._visibleList, and Vispa.Share.ObjectHolder.ObjectHolder.dataObjects().

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.paint().

715  def updateVisibleList(self, force=False):
716  if not self._updateVisibleListFlag and not force:
717  return
718 
719  #logging.debug("%s: updateVisibleList()" % self.__class__.__name__)
720 
721  region = self.visibleRegion()
722  self._visibleList = []
723  for decayObject in reversed(self.dataObjects()):
724  #for decayObject in oldVisibleList + self.dataObjects():
725  if region.intersects(decayObject.boundingRect()):
726  self._visibleList.append(decayObject)
727 
728  self._updateVisibleListFlag = False
729 

Member Data Documentation

Vispa.Views.LineDecayView.LineDecayContainer._allNodes
private
Vispa.Views.LineDecayView.LineDecayContainer._autolayoutingChildren
private
Vispa.Views.LineDecayView.LineDecayContainer._editable
private
Vispa.Views.LineDecayView.LineDecayContainer._existingObjectIds
private
Vispa.Views.LineDecayView.LineDecayContainer._hoveredObject
private
Vispa.Views.LineDecayView.LineDecayContainer._nodeVector
private
Vispa.Views.LineDecayView.LineDecayContainer._particlesDict
private
Vispa.Views.LineDecayView.LineDecayContainer._pxlObject
private
Vispa.Views.LineDecayView.LineDecayContainer._selectedList
private
Vispa.Views.LineDecayView.LineDecayContainer._subWidgetStartY
private
Vispa.Views.LineDecayView.LineDecayContainer._threadChain
private

Definition at line 296 of file LineDecayView.py.

Vispa.Views.LineDecayView.LineDecayContainer._titleClicked
private
Vispa.Views.LineDecayView.LineDecayContainer._updateVisibleListFlag
private
Vispa.Views.LineDecayView.LineDecayContainer._visibleList
private