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 68 of file EveDisplayPlugin.cc.

68  {
69  //now do what ever initialization is needed
70 }
EveDisplayPlugin::~EveDisplayPlugin ( )
override

Definition at line 72 of file EveDisplayPlugin.cc.

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

Member Function Documentation

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

Implements fireworks::geometry::DisplayPlugin.

Definition at line 81 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().

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