CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes | Private Attributes
Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController Class Reference
Inheritance diagram for Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController:
Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController Vispa.Plugins.Browser.BrowserTabController.BrowserTabController Vispa.Main.TabController.TabController

Public Member Functions

def __init__
 
def centerViewMenuButtonClicked
 
def eventContent
 
def expandToDepthDialog
 
def loadIni
 
def onSelected
 
def onTreeViewSelected
 
def saveIni
 
def staticSupportedFileTypes
 
def toggleCollapsed
 
def toggleFilterBranches
 
def toggleUnderscoreProperties
 
def updateCenterView
 
def updateViewMenu
 
- Public Member Functions inherited from Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController
def __init__
 
def activated
 
def close
 
def first
 
def goto
 
def isBusy
 
def last
 
def navigate
 
def next
 
def previous
 
def readFile
 
def refresh
 
def setDataAccessor
 
def updateEventNumberDisplay
 
- Public Member Functions inherited from Vispa.Plugins.Browser.BrowserTabController.BrowserTabController
def __init__
 
def activated
 
def boxContentDialog
 
def cancel
 
def centerView
 
def centerViewMenuButtonClicked
 
def close
 
def currentCenterViewClassId
 
def dataAccessor
 
def enableCenterViewSelectionMenu
 
def filter
 
def filterDialog
 
def filtered
 
def find
 
def isBusy
 
def loadIni
 
def onSelected
 
def onTreeViewSelected
 
def saveImage
 
def saveIni
 
def scriptChanged
 
def select
 
def setDataAccessor
 
def setEditable
 
def setTab
 
def setZoom
 
def showBoxContentDialog
 
def switchCenterView
 
def treeViewMenuButtonClicked
 
def updateCenterView
 
def updateContent
 
def updateTreeView
 
def updateViewMenu
 
def zoom
 
- Public Member Functions inherited from Vispa.Main.TabController.TabController
def __init__
 
def activated
 
def addUndoEvent
 
def allowClose
 
def allowSelectAll
 
def cancel
 
def checkModificationTimestamp
 
def close
 
def copy
 
def cut
 
def dumpUndoEvents
 
def enableUndo
 
def filename
 
def find
 
def getFileBasename
 
def isCopyPasteEnabled
 
def isEditable
 
def isFindEnabled
 
def isModified
 
def open
 
def paste
 
def plugin
 
def readFile
 
def redo
 
def redoEvents
 
def refresh
 
def resetZoomButtonPressedBefore
 
def save
 
def selectAll
 
def setAllowSelectAll
 
def setCopyPasteEnabled
 
def setEditable
 
def setFilename
 
def setFindEnabled
 
def setLastSavedStateEvent
 
def setModified
 
def setTab
 
def setZoom
 
def staticSupportedFileTypes
 
def supportedFileFilters
 
def supportedFileTypes
 
def supportsUndo
 
def tab
 
def undo
 
def undoEvents
 
def updateContent
 
def updateLabel
 
def writeFile
 
def zoom
 
def zoomAll
 
def zoomChanged
 
def zoomDialog
 
def zoomHundred
 
def zoomUser
 

Static Public Attributes

tuple staticSupportedFileTypes = staticmethod(staticSupportedFileTypes)
 
- Static Public Attributes inherited from Vispa.Main.TabController.TabController
tuple staticSupportedFileTypes = staticmethod(staticSupportedFileTypes)
 
int TAB_LABEL_MAX_LENGTH = 20
 

Private Attributes

 _treeDepth
 

Detailed Description

Definition at line 10 of file EdmBrowserTabController.py.

Constructor & Destructor Documentation

def Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.__init__ (   self,
  plugin 
)

Member Function Documentation

def Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.centerViewMenuButtonClicked (   self,
  point = None 
)

Definition at line 61 of file EdmBrowserTabController.py.

References actions, PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.plugin, lhef::FastJetAlgorithmWrapper.plugin, Vispa.Main.TabController.TabController.plugin(), Vispa.Main.Application.Application.plugin(), Vispa.Main.TabController.TabController.tab(), RawParticle.tab, toString(), and tablePrinter.width.

61 
62  def centerViewMenuButtonClicked(self, point=None):
63  popup=QMenu(self.tab().centerViewMenuButton())
64  popup.addAction(self.plugin()._expandToDepthAction)
65  popup.addAction(self.plugin()._saveImageAction)
66  popup.addAction(self.plugin()._zoomAction)
67  popup.addAction(self.plugin()._filterAction)
68  popup.addSeparator()
69  for action in self.plugin().viewMenu().actions():
70  if action.data().toString()!="":
71  popup.addAction(action)
72  if not isinstance(point,QPoint):
73  point=self.tab().centerViewMenuButton().mapToGlobal(QPoint(self.tab().centerViewMenuButton().width(),0))
74  popup.exec_(point)
roAction_t actions[nactions]
Definition: GenABIO.cc:200
std::string toString(const std::pair< T, T > &aT)
Definition: CaloEllipse.h:72
def Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.eventContent (   self)
Open event content dialog 

Definition at line 106 of file EdmBrowserTabController.py.

References Vispa.Main.TabController.TabController._filename, MuonGeometryArrange._filename, TrackerGeometryCompare._filename, Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor(), split, Vispa.Main.TabController.TabController.tab(), and RawParticle.tab.

107  def eventContent(self):
108  """ Open event content dialog """
109  logging.debug(__name__ + ": eventContent")
110  dialog=EventContentDialog(self.tab(),"This dialog let's you compare the contents of your edm root file with another dataformat / edm root file. You can compare either to a dataformat definition from a txt file (e.g. RECO_3_3_0) or any edm root file by selecting an input file.")
111  branches=[branch[0].split("_") for branch in self.dataAccessor().filteredBranches()]
112  name = os.path.splitext(os.path.basename(self._filename))[0]
113  dialog.setEventContent(name,branches)
114  dialog.exec_()
double split
Definition: MVATrainer.cc:139
def Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.expandToDepthDialog (   self)
Show dialog and expand center view to depth.

Definition at line 47 of file EdmBrowserTabController.py.

References Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController._treeDepth, Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.onTreeViewSelected(), corrVsCorr.selection, Vispa.Main.TabController.TabController.tab(), and RawParticle.tab.

47 
48  def expandToDepthDialog(self):
49  """ Show dialog and expand center view to depth.
50  """
51  if hasattr(QInputDialog, "getInteger"):
52  # Qt 4.3
53  (depth, ok) = QInputDialog.getInteger(self.tab(), "Expand to depth...", "Input depth:", self._treeDepth, 0)
54  else:
55  # Qt 4.5
56  (depth, ok) = QInputDialog.getInt(self.tab(), "Expand to depth...", "Input depth:", self._treeDepth, 0)
57  if ok:
58  self._treeDepth=depth
59  if self.tab().treeView().selection():
60  self.onTreeViewSelected(self.tab().treeView().selection())
selection
main part
Definition: corrVsCorr.py:98
def Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.loadIni (   self)
read options from ini 

Definition at line 86 of file EdmBrowserTabController.py.

References Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.plugin, lhef::FastJetAlgorithmWrapper.plugin, Vispa.Main.TabController.TabController.plugin(), and Vispa.Main.Application.Application.plugin().

86 
87  def loadIni(self):
88  """ read options from ini """
89  EventBrowserTabController.loadIni(self)
90  ini = self.plugin().application().ini()
91  if ini.has_option("edm", "filter branches"):
92  self.dataAccessor().setFilterBranches(ini.get("edm", "filter branches")=="True")
93  if ini.has_option("edm", "underscore properties"):
94  self.dataAccessor().setUnderscoreProperties(ini.get("edm", "underscore properties")=="True")
95  self.plugin().hideUnderscorePropertiesAction().setChecked(not self.dataAccessor().underscoreProperties())
def Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.onSelected (   self,
  select 
)

Definition at line 39 of file EdmBrowserTabController.py.

References Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor(), and SiPixelLorentzAngle_cfi.read.

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

39 
40  def onSelected(self,select):
41  EventBrowserTabController.onSelected(self,self.dataAccessor().read(select))
def Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.onTreeViewSelected (   self,
  select 
)

Definition at line 36 of file EdmBrowserTabController.py.

References Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController._treeDepth, Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor(), and SiPixelLorentzAngle_cfi.read.

36 
37  def onTreeViewSelected(self,select):
38  EventBrowserTabController.onTreeViewSelected(self,self.dataAccessor().read(select,self._treeDepth))
def Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.saveIni (   self)
write options to ini 

Definition at line 96 of file EdmBrowserTabController.py.

References Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.plugin, lhef::FastJetAlgorithmWrapper.plugin, Vispa.Main.TabController.TabController.plugin(), and Vispa.Main.Application.Application.plugin().

96 
97  def saveIni(self):
98  """ write options to ini """
99  EventBrowserTabController.saveIni(self)
100  ini = self.plugin().application().ini()
101  if not ini.has_section("edm"):
102  ini.add_section("edm")
103  ini.set("edm", "filter branches", self.dataAccessor().filterBranches())
104  ini.set("edm", "underscore properties", self.dataAccessor().underscoreProperties())
105  self.plugin().application().writeIni()
def Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.staticSupportedFileTypes ( )
Returns supported file type: root.

Definition at line 17 of file EdmBrowserTabController.py.

17 
19  """ Returns supported file type: root.
20  """
return [('root', 'EDM root file')]
def Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.toggleCollapsed (   self,
  object 
)

Definition at line 30 of file EdmBrowserTabController.py.

References Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.centerView(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor(), SiPixelLorentzAngle_cfi.read, Vispa.Main.TabController.TabController.tab(), RawParticle.tab, and Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.updateCenterView().

Referenced by Vispa.Views.BoxDecayView.BoxDecayContainer.toggleCollapse(), and Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.updateViewMenu().

30 
31  def toggleCollapsed(self,object):
32  logging.debug(__name__ + ": toggleCollapsed()")
33  if not self.tab().centerView().isUpdated(object):
34  self.dataAccessor().read(object)
35  self.updateCenterView()
def Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.toggleFilterBranches (   self)

Definition at line 75 of file EdmBrowserTabController.py.

References Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.saveIni(), and Vispa.Main.TabController.TabController.updateContent().

75 
76  def toggleFilterBranches(self):
77  self.dataAccessor().setFilterBranches(not self.dataAccessor().filterBranches())
78  self.updateContent()
79  self.saveIni()
def Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.toggleUnderscoreProperties (   self)

Definition at line 80 of file EdmBrowserTabController.py.

References Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.saveIni(), Vispa.Main.TabController.TabController.tab(), RawParticle.tab, and Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.updateCenterView().

80 
82  self.dataAccessor().setUnderscoreProperties(not self.dataAccessor().underscoreProperties())
83  self.tab().propertyView().setDataObject(None)
84  self.updateCenterView()
85  self.saveIni()
def Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.updateCenterView (   self,
  propertyView = True 
)

Definition at line 42 of file EdmBrowserTabController.py.

References Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController._treeDepth, Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.dataAccessor(), SiPixelLorentzAngle_cfi.read, corrVsCorr.selection, Vispa.Main.TabController.TabController.tab(), and RawParticle.tab.

42 
43  def updateCenterView(self,propertyView=True):
44  if self.tab().treeView().selection():
45  self.dataAccessor().read(self.tab().treeView().selection(),self._treeDepth)
46  EventBrowserTabController.updateCenterView(self,propertyView)
selection
main part
Definition: corrVsCorr.py:98
def Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.updateViewMenu (   self)

Definition at line 23 of file EdmBrowserTabController.py.

References Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.centerView(), options.ConnectionL1TMenu.connect, ConnectionManager.connect(), RPCDBCom.connect(), TestBase.connect(), HCALConfigDB.connect(), ReadBase.connect(), l1t::DataManager.connect(), cond::Logger.connect(), DTNoiseCalibration.DTNoiseCalibration.connect, DTTTrigProd.DTTTrigProd.connect, DTTTrigValid.DTTTrigValid.connect, DTResidualCalibration.DTResidualCalibration.connect, DTTTrigResidualCorr.DTTTrigResidualCorr.connect, DTDQMHarvesting.DTDQMHarvesting.connect, ora::ConnectionPool.connect(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.connect, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.connect, ShallowTree::BranchConnector.connect(), DTDQMValidation.DTDQMValidation.connect, ora::DatabaseSession.connect(), edm::ServiceToken.connect(), ShallowTree::TypedBranchConnector< T >.connect(), ora::Database.connect(), SimActivityRegistry.connect(), sim_act::Signaler< EndOfEvent >.connect(), sim_act::Signaler< BeginOfEvent >.connect(), sim_act::Signaler< T >.connect(), sim_act::Signaler< EndOfRun >.connect(), sim_act::Signaler< G4Step >.connect(), sim_act::Signaler< BeginOfRun >.connect(), sim_act::Signaler< BeginOfTrack >.connect(), sim_act::Signaler< DDDWorld >.connect(), sim_act::Signaler< BeginOfJob >.connect(), sim_act::Signaler< EndOfTrack >.connect(), L1TOMDSHelper.connect(), PFCandConnector.connect(), DDTOBRodAlgo.connect, KalmanAlignmentMetricsCalculator.connect(), smproxy::EventRetriever< RegInfo, QueueCollectionPtr >.connect(), edm::serviceregistry::ServicesManager.connect(), l1t::OMDSReader.connect(), PFRootEventManager.connect(), cond::service::PoolDBOutputService.connect(), edm::ActivityRegistry.connect(), ConnectionManager.disconnect(), lumi::service::DBService.disconnect(), HCALConfigDB.disconnect(), evf::MasterQueue.disconnect(), ora::DatabaseSession.disconnect(), ora::Database.disconnect(), evf::SubProcess.disconnect(), cond::service::PoolDBOutputService.disconnect(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.plugin, lhef::FastJetAlgorithmWrapper.plugin, Vispa.Main.TabController.TabController.plugin(), Vispa.Main.Application.Application.plugin(), Vispa.Main.TabController.TabController.tab(), RawParticle.tab, and Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.toggleCollapsed().

23 
24  def updateViewMenu(self):
25  EventBrowserTabController.updateViewMenu(self)
26  self.plugin().expandToDepthAction().setVisible(True)
27  self.plugin().boxContentAction().setVisible(False)
28  self.disconnect(self.tab().centerView(), SIGNAL("toggleCollapsed"), self.toggleCollapsed)
29  self.connect(self.tab().centerView(), SIGNAL("toggleCollapsed"), self.toggleCollapsed)

Member Data Documentation

Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController._treeDepth
private

Definition at line 14 of file EdmBrowserTabController.py.

Referenced by Vispa.Views.TreeView.TreeView.collapseAll(), Vispa.Views.TreeView.TreeView.expandAll(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.expandToDepthDialog(), Vispa.Views.TreeView.TreeView.expandToDepthDialog(), Vispa.Views.TreeView.TreeView.itemExpanded(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.onTreeViewSelected(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.updateCenterView(), and Vispa.Views.TreeView.TreeView.updateContent().

tuple Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.staticSupportedFileTypes = staticmethod(staticSupportedFileTypes)
static

Definition at line 21 of file EdmBrowserTabController.py.