37 #include "TEveManager.h"
38 #include "TEveTrack.h"
39 #include "TEveTrackPropagator.h"
41 #include "TGeoManager.h"
42 #include "TGeoMatrix.h"
43 #include "TEveGeoNode.h"
44 #include "TEveTrans.h"
45 #include "TEveScene.h"
46 #include "TGLScenePad.h"
47 #include "TGLRnrCtx.h"
56 TEveGeoTopNode*
make_node(
const TString&
path, Int_t vis_level, Bool_t global_cs);
96 m_trackTags(iConfig.getUntrackedParameter<edm::InputTag>(
"tracks")),
112 if (! gGeoManager->cd(path))
114 Warning(
"make_node",
"Path '%s' not found.", path.Data());
118 TEveGeoTopNode* tn =
new TEveGeoTopNode(gGeoManager, gGeoManager->GetCurrentNode());
119 tn->SetVisLevel(vis_level);
122 tn->RefMainTrans().SetFrom(*gGeoManager->GetCurrentMatrix());
136 printf(
"DummyEvelyser::beginJob\n");
150 TEveTrackPropagator *prop =
m_trackList->GetPropagator();
151 prop->SetStepper(TEveTrackPropagator::kRungeKutta);
159 printf(
"DummyEvelyser::endJob\n");
172 printf(
"DummyEvelyser::beginRun\n");
176 m_geomList =
new TEveElementList(
"DummyEvelyzer Geom");
178 m_eve->
getManager()->GetGlobalScene()->GetGLScene()->SetStyle(TGLRnrCtx::kWireFrame);
184 printf(
"DummyEvelyser::endRun\n");
195 TEveGeoManagerHolder _tgeo(const_cast<TGeoManager*>(geom.
product()));
200 make_node(
"/cms:World_1/cms:CMSE_1/tracker:Tracker_1", 1, kTRUE);
201 make_node(
"/cms:World_1/cms:CMSE_1/caloBase:CALO_1", 1, kTRUE);
202 make_node(
"/cms:World_1/cms:CMSE_1/muonBase:MUON_1", 1, kTRUE);
207 printf(
"DummyEvelyser::analyze\n");
230 itTrack !=
tracks->end(); ++itTrack, ++cnt)
233 trk->SetElementName (TString::Format(
"Track %d", cnt));
234 trk->SetElementTitle(TString::Format(
"Track %d, pt=%.3f", cnt, itTrack->pt()));
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::Service< EveService > m_eve
TEveTrack * prepareTrack(const reco::Track &track, TEveTrackPropagator *propagator, const std::vector< TEveVector > &extraRefPoints=std::vector< TEveVector >())
#define DEFINE_FWK_MODULE(type)
DummyEvelyser(const edm::ParameterSet &)
edm::ESWatcher< DisplayGeomRecord > m_geomWatcher
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
void get(HolderT &iHolder) const
virtual void endRun(const edm::Run &, const edm::EventSetup &)
void display(const std::string &info="")
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
TEveGeoTopNode * make_node(const TString &path, Int_t vis_level, Bool_t global_cs)
TEveManager * getManager()
T const * product() const
void setupFieldForPropagator(TEveTrackPropagator *prop)
bool check(const edm::EventSetup &iSetup)
edm::InputTag m_trackTags
void AddElement(TEveElement *el)
TEveTrackList * m_trackList
void remakeGeometry(const DisplayGeomRecord &dgRec)
void AddGlobalElement(TEveElement *el)