CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ShallowTree::TypedBranchConnector< T > Class Template Reference
Inheritance diagram for ShallowTree::TypedBranchConnector< T >:
ShallowTree::BranchConnector

Public Member Functions

void connect (const edm::Event &)
 
 TypedBranchConnector (edm::BranchDescription const *, std::string, TTree *)
 
- Public Member Functions inherited from ShallowTree::BranchConnector
virtual ~BranchConnector ()
 

Private Attributes

std::string ml
 
T object_
 
Tobject_ptr_
 
std::string pin
 

Detailed Description

template<class T>
class ShallowTree::TypedBranchConnector< T >

Definition at line 47 of file ShallowTree.h.

Constructor & Destructor Documentation

template<class T >
ShallowTree::TypedBranchConnector< T >::TypedBranchConnector ( edm::BranchDescription const *  desc,
std::string  t,
TTree *  tree 
)

Definition at line 29 of file ShallowTree.cc.

References ShallowTree::TypedBranchConnector< T >::object_, ShallowTree::TypedBranchConnector< T >::object_ptr_, ShallowTree::TypedBranchConnector< T >::pin, alignCSCRings::s, and lumiQTWidget::t.

32  : ml( desc->moduleLabel() ),
33  pin( desc->productInstanceName() )
34 {
35  object_ptr_ = &object_;
36  std::string s=pin+t;
37  if(t!="") { tree->Branch(pin.c_str(), object_ptr_, s.c_str() );} //raw type
38  else { tree->Branch(pin.c_str(), &object_ptr_ );} //vector<type>
39 }
TTree * tree
Definition: ShallowTree.h:59

Member Function Documentation

template<class T >
void ShallowTree::TypedBranchConnector< T >::connect ( const edm::Event iEvent)
virtual

Implements ShallowTree::BranchConnector.

Definition at line 21 of file ShallowTree.cc.

References edm::Event::getByLabel().

Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea::__init__(), Vispa.Views.PropertyView.BooleanProperty::__init__(), Vispa.Gui.FindDialog.FindDialog::_addScript(), Vispa.Gui.FindDialog.FindDialog::_addStringProperty(), Vispa.Main.Application.Application::_connectSignals(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView::_createItem(), Vispa.Gui.BoxContentDialog.BoxContentDialog::addButton(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer::addWidget(), Vispa.Views.PropertyView.PropertyView::append(), Vispa.Views.PropertyView.PropertyView::appendAddRow(), Vispa.Main.Application.Application::createAction(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createButton(), Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createLineEdit(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createTextEdit(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Gui.PortWidget.PortWidget::mouseMoveEvent(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Main.SplitterTab.SplitterTab::setController(), Vispa.Plugins.Browser.BrowserTab.BrowserTab::setController(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setTab(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().

21  {
22  edm::Handle<T> handle_;
23  iEvent.getByLabel(ml, pin, handle_);
24  object_ = *handle_;
25 }
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356

Member Data Documentation

template<class T >
std::string ShallowTree::TypedBranchConnector< T >::ml
private

Definition at line 49 of file ShallowTree.h.

template<class T >
T ShallowTree::TypedBranchConnector< T >::object_
private
template<class T >
T* ShallowTree::TypedBranchConnector< T >::object_ptr_
private
template<class T >
std::string ShallowTree::TypedBranchConnector< T >::pin
private