22 #include "TEveManager.h"
23 #include "TEveTrack.h"
24 #include "TEveTrackPropagator.h"
26 #include "TGeoManager.h"
27 #include "TGeoMatrix.h"
28 #include "TEveGeoNode.h"
29 #include "TEveTrans.h"
30 #include "TEveScene.h"
31 #include "TGLScenePad.h"
32 #include "TGLRnrCtx.h"
33 #include "TEvePointSet.h"
47 TEveGeoTopNode*
make_node(
const TString&
path, Int_t vis_level, Bool_t global_cs);
93 if (! gGeoManager->cd(path))
95 Warning(
"make_node",
"Path '%s' not found.", path.Data());
99 TEveGeoTopNode* tn =
new TEveGeoTopNode(gGeoManager, gGeoManager->GetCurrentNode());
100 tn->SetVisLevel(vis_level);
103 tn->RefMainTrans().SetFrom(*gGeoManager->GetCurrentMatrix());
126 gRandom =
new TRandom(0);
127 TRandom&
r= *gRandom;
131 TEvePointSet* ps =
new TEvePointSet();
132 ps->SetOwnIds(kTRUE);
133 for(Int_t
i = 0;
i< 100;
i++)
135 ps->SetNextPoint(r.Uniform(-s,s), r.Uniform(-s,s), r.Uniform(-s,s));
136 ps->SetPointId(
new TNamed(Form(
"Point %d",
i),
""));
139 ps->SetMarkerColor(TMath::Nint(r.Uniform(2, 9)));
140 ps->SetMarkerSize(r.Uniform(1, 2));
141 ps->SetMarkerStyle(4);
152 m_geomList =
new TEveElementList(
"Display Geom");
154 m_eve->
getManager()->GetGlobalScene()->GetGLScene()->SetStyle(TGLRnrCtx::kWireFrame);
170 TEveGeoManagerHolder _tgeo(const_cast<TGeoManager*>(geom.
product()));
T getUntrackedParameter(std::string const &, T const &) const
void remakeGeometry(const DisplayGeomRecord &dgRec)
DisplayGeom(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
edm::Service< EveService > m_eve
TEveGeoTopNode * make_node(const TString &path, Int_t vis_level, Bool_t global_cs)
void get(HolderT &iHolder) const
TEveManager * getManager()
T const * product() const
bool check(const edm::EventSetup &iSetup)
void AddElement(TEveElement *el)
edm::ESWatcher< DisplayGeomRecord > m_geomWatcher
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void AddGlobalElement(TEveElement *el)