CMS 3D CMS Logo

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

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

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

Public Member Functions

 EveDisplayPlugin ()
 
 ~EveDisplayPlugin () override
 
- Public Member Functions inherited from fireworks::geometry::DisplayPlugin
 DisplayPlugin ()
 
virtual ~DisplayPlugin ()
 

Private Member Functions

void run (const edm::EventSetup &) override
 

Detailed Description

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

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

Definition at line 48 of file EveDisplayPlugin.cc.

Constructor & Destructor Documentation

EveDisplayPlugin::EveDisplayPlugin ( )
explicit

Definition at line 71 of file EveDisplayPlugin.cc.

72 {
73  //now do what ever initialization is needed
74 
75 }
EveDisplayPlugin::~EveDisplayPlugin ( )
override

Definition at line 78 of file EveDisplayPlugin.cc.

79 {
80 
81  // do anything here that needs to be done at desctruction time
82  // (e.g. close files, deallocate resources etc.)
83 
84 }

Member Function Documentation

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

Implements fireworks::geometry::DisplayPlugin.

Definition at line 92 of file EveDisplayPlugin.cc.

References gather_cfg::cout, DEFINE_FIREWORKS_GEOM_DISPLAY, relativeConstraints::geom, edm::EventSetup::get(), and edm::ESHandle< T >::product().

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

93 {
94  std::cout << "In the EveDisplayPlugin::analyze method..." << std::endl;
95  using namespace edm;
96 
98  iSetup.get<DisplayGeomRecord>().get(geom);
99 
100  TEveManager::Create();
101 
102  TEveGeoTopNode* trk = new TEveGeoTopNode(const_cast<TGeoManager*>(geom.product()),
103  geom->GetTopNode());
104  trk->SetVisLevel(2);
105  gEve->AddGlobalElement(trk);
106 }
HLT enums.
T get() const
Definition: EventSetup.h:63
T const * product() const
Definition: ESHandle.h:86