CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
EveDisplayPlugin Class Reference

#include <Reve/EveDisplayPlugin/src/EveDisplayPlugin.cc>

Inheritance diagram for EveDisplayPlugin:
fireworks::geometry::DisplayPlugin

Public Member Functions

 EveDisplayPlugin (edm::ConsumesCollector)
 
 ~EveDisplayPlugin () override
 
- Public Member Functions inherited from fireworks::geometry::DisplayPlugin
 DisplayPlugin ()
 
 DisplayPlugin (const DisplayPlugin &)=delete
 
const DisplayPluginoperator= (const DisplayPlugin &)=delete
 
virtual ~DisplayPlugin ()
 

Private Member Functions

void run (const edm::EventSetup &) override
 

Private Attributes

const edm::ESGetToken< TGeoManager, DisplayGeomRecordm_geomToken
 

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 48 of file EveDisplayPlugin.cc.

Constructor & Destructor Documentation

◆ EveDisplayPlugin()

EveDisplayPlugin::EveDisplayPlugin ( edm::ConsumesCollector  iCollector)
explicit

Definition at line 69 of file EveDisplayPlugin.cc.

69  : m_geomToken(iCollector.esConsumes()) {
70  //now do what ever initialization is needed
71 }
const edm::ESGetToken< TGeoManager, DisplayGeomRecord > m_geomToken

◆ ~EveDisplayPlugin()

EveDisplayPlugin::~EveDisplayPlugin ( )
override

Definition at line 73 of file EveDisplayPlugin.cc.

73  {
74  // do anything here that needs to be done at desctruction time
75  // (e.g. close files, deallocate resources etc.)
76 }

Member Function Documentation

◆ run()

void EveDisplayPlugin::run ( const edm::EventSetup iSetup)
overrideprivatevirtual

Implements fireworks::geometry::DisplayPlugin.

Definition at line 82 of file EveDisplayPlugin.cc.

References gather_cfg::cout, relativeConstraints::geom, edm::EventSetup::getData(), and m_geomToken.

Referenced by Types.EventID::cppID(), and Types.LuminosityBlockID::cppID().

82  {
83  std::cout << "In the EveDisplayPlugin::analyze method..." << std::endl;
84  using namespace edm;
85 
86  TGeoManager const& geom = iSetup.getData(m_geomToken);
87 
88  TEveManager::Create();
89 
90  TEveGeoTopNode* trk = new TEveGeoTopNode(const_cast<TGeoManager*>(&geom), geom.GetTopNode());
91  trk->SetVisLevel(2);
92  gEve->AddGlobalElement(trk);
93 }
const edm::ESGetToken< TGeoManager, DisplayGeomRecord > m_geomToken
bool getData(T &iHolder) const
Definition: EventSetup.h:122
HLT enums.

Member Data Documentation

◆ m_geomToken

const edm::ESGetToken<TGeoManager, DisplayGeomRecord> EveDisplayPlugin::m_geomToken
private

Definition at line 55 of file EveDisplayPlugin.cc.

Referenced by run().