CMS 3D CMS Logo

Classes | Functions
FWEveViewManager.cc File Reference
#include <functional>
#include "TEveManager.h"
#include "TEveSelection.h"
#include "TEveScene.h"
#include "TEveViewer.h"
#include "TEveCalo.h"
#include "TEveGedEditor.h"
#include "TGListTree.h"
#include "TGeoManager.h"
#include "TExMap.h"
#include "TEnv.h"
#include "Fireworks/Core/interface/FWEveViewManager.h"
#include "Fireworks/Core/interface/FWSelectionManager.h"
#include "Fireworks/Core/interface/FWColorManager.h"
#include "Fireworks/Core/interface/Context.h"
#include "Fireworks/Core/interface/FWInteractionList.h"
#include "Fireworks/Core/interface/CmsShowCommon.h"
#include "Fireworks/Core/interface/fwLog.h"
#include "Fireworks/Core/interface/FWViewEnergyScale.h"
#include "Fireworks/Core/interface/FWSimpleRepresentationChecker.h"
#include "Fireworks/Core/interface/FWEDProductRepresentationChecker.h"
#include "Fireworks/Core/interface/FWTypeToRepresentations.h"
#include "Fireworks/Core/interface/FWEventItem.h"
#include "Fireworks/Core/interface/FWProxyBuilderFactory.h"
#include "Fireworks/Core/interface/FWProxyBuilderBase.h"
#include "Fireworks/Core/interface/FWGUIManager.h"
#include "Fireworks/Core/interface/FWISpyView.h"
#include "Fireworks/Core/interface/FW3DView.h"
#include "Fireworks/Core/interface/FWGlimpseView.h"
#include "Fireworks/Core/interface/FWEveLegoView.h"
#include "Fireworks/Core/interface/FWHFView.h"
#include "Fireworks/Core/interface/FWRPZView.h"
#include "Fireworks/Core/interface/FWTGLViewer.h"
#include "TH2F.h"
#include "TAxis.h"
#include "TEveCaloData.h"

Go to the source code of this file.

Classes

class  EveSelectionSentry
 

Functions

void addElements (const FWEventItem *item, FWEveView *view, int viewType, TEveElementList *product)
 
FWFromEveSelectorBasegetSelector (TEveElement *iElement)
 

Function Documentation

◆ addElements()

void addElements ( const FWEventItem item,
FWEveView view,
int  viewType,
TEveElementList *  product 
)

Helper function to add products from a given builder to a given view. FWRPZView is a base class for all projected views (name derives from FWViewType::RPhi and FWViewType::RhoZ projection).

Definition at line 151 of file FWEveViewManager.cc.

151  {
152  if (FWViewType::isProjected(viewType)) {
153  FWRPZView* rpzView = dynamic_cast<FWRPZView*>(view);
154  assert(rpzView);
155  rpzView->importElements(product, item->layer(), rpzView->eventScene());
156  } else {
157  view->eventScene()->AddElement(product);
158  }
159 }

References cms::cuda::assert(), FWEveView::eventScene(), FWRPZView::importElements(), FWViewType::isProjected(), and B2GTnPMonitor_cfi::item.

Referenced by FWEveViewManager::newItem().

◆ getSelector()

FWFromEveSelectorBase* getSelector ( TEveElement *  iElement)

Helper function to extract the FWFromEveSelectorBase * from an TEveElement.

Definition at line 626 of file FWEveViewManager.cc.

626  {
627  if (!iElement)
628  return nullptr;
629 
630  //std::cout <<" non null"<<std::endl;
631  void* userData = iElement->GetUserData();
632  //std::cout <<" user data "<<userData<<std::endl;
633  if (!userData)
634  return nullptr;
635 
636  //std::cout <<" have userData"<<std::endl;
637  //std::cout <<" calo"<<std::endl;
639  return reinterpret_cast<FWFromEveSelectorBase*>(userData);
640 }

References electronProducer_cfi::userData.

Referenced by FWEveViewManager::selectionAdded(), and FWEveViewManager::selectionRemoved().

FWRPZView
Definition: FWRPZView.h:40
EveSelectionSentry
Definition: FWEveViewManager.cc:63
cms::cuda::assert
assert(be >=bs)
electronProducer_cfi.userData
userData
Definition: electronProducer_cfi.py:19
FWViewType::isProjected
static bool isProjected(int)
Definition: FWViewType.cc:100
FWEveView::eventScene
TEveScene * eventScene()
Definition: FWEveView.h:79
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
FWRPZView::importElements
void importElements(TEveElement *iProjectableChild, float layer, TEveElement *iProjectedParent=nullptr)
Definition: FWRPZView.cc:285