test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
EveDisplayPlugin Class Reference

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

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

Public Member Functions

 EveDisplayPlugin ()
 
virtual void run (const edm::EventSetup &) override
 
 ~EveDisplayPlugin ()
 
- Public Member Functions inherited from fireworks::geometry::DisplayPlugin
 DisplayPlugin ()
 
virtual ~DisplayPlugin ()
 

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 ( )

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)
overridevirtual

Implements fireworks::geometry::DisplayPlugin.

Definition at line 92 of file EveDisplayPlugin.cc.

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

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 
101 
102 // AMT workaround for an agressive clenup in 5.43.18
103 #if ROOT_VERSION_CODE >= ROOT_VERSION(5,34,18)
104  if (!gStyle) {
105  TColor::fgInitDone=false;
106  TColor::InitializeColors();
107  TStyle::BuildStyles();
108  gROOT->SetStyle(gEnv->GetValue("Canvas.Style", "Modern"));
109  gStyle = gROOT->GetStyle("Classic");
110  }
111 #endif
112 
113  TEveManager::Create();
114 
115  TEveGeoTopNode* trk = new TEveGeoTopNode(const_cast<TGeoManager*>(geom.product()),
116  geom->GetTopNode());
117  trk->SetVisLevel(2);
118  gEve->AddGlobalElement(trk);
119 
120 }
const T & get() const
Definition: EventSetup.h:55
tuple cout
Definition: gather_cfg.py:121