|
|
Go to the documentation of this file.
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);
93 m_trackTags(iConfig.getUntrackedParameter<
edm::
InputTag>(
"tracks")),
107 if (!gGeoManager->cd(
path)) {
108 Warning(
"make_node",
"Path '%s' not found.",
path.Data());
112 TEveGeoTopNode* tn =
new TEveGeoTopNode(gGeoManager, gGeoManager->GetCurrentNode());
113 tn->SetVisLevel(vis_level);
115 tn->RefMainTrans().SetFrom(*gGeoManager->GetCurrentMatrix());
127 printf(
"DummyEvelyser::beginJob\n");
140 TEveTrackPropagator* prop =
m_trackList->GetPropagator();
141 prop->SetStepper(TEveTrackPropagator::kRungeKutta);
148 printf(
"DummyEvelyser::endJob\n");
159 printf(
"DummyEvelyser::beginRun\n");
162 m_geomList =
new TEveElementList(
"DummyEvelyzer Geom");
164 m_eve->
getManager()->GetGlobalScene()->GetGLScene()->SetStyle(TGLRnrCtx::kWireFrame);
177 TEveGeoManagerHolder _tgeo(const_cast<TGeoManager*>(
geom.product()));
182 make_node(
"/cms:World_1/cms:CMSE_1/tracker:Tracker_1", 1, kTRUE);
183 make_node(
"/cms:World_1/cms:CMSE_1/caloBase:CALO_1", 1, kTRUE);
184 make_node(
"/cms:World_1/cms:CMSE_1/muonBase:MUON_1", 1, kTRUE);
188 printf(
"DummyEvelyser::analyze\n");
194 edm::LogError(
"DummyEvelyser") <<
"Error! Can't get Track collection " << std::endl;
216 trk->SetElementName(TString::Format(
"Track %d", cnt));
217 trk->SetElementTitle(TString::Format(
"Track %d, pt=%.3f", cnt, itTrack->pt()));
bool check(const edm::EventSetup &iSetup)
TEveTrackList * m_trackList
edm::Service< EveService > m_eve
DummyEvelyser(const edm::ParameterSet &)
T const * product() const
void setupFieldForPropagator(TEveTrackPropagator *prop)
void AddElement(TEveElement *el)
TEveManager * getManager()
void AddGlobalElement(TEveElement *el)
void remakeGeometry(const DisplayGeomRecord &dgRec)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::TrackCollection > trackCollectionToken_
~DummyEvelyser() override
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
TEveTrack * prepareTrack(const reco::Track &track, TEveTrackPropagator *propagator, const std::vector< TEveVector > &extraRefPoints=std::vector< TEveVector >())
void beginRun(const edm::Run &, const edm::EventSetup &) override
edm::ESWatcher< DisplayGeomRecord > m_geomWatcher
Log< level::Error, false > LogError
void endRun(const edm::Run &, const edm::EventSetup &) override
edm::InputTag m_trackTags
void display(const std::string &info="")
std::vector< Track > TrackCollection
collection of Tracks
void analyze(const edm::Event &, const edm::EventSetup &) override
TEveGeoTopNode * make_node(const TString &path, Int_t vis_level, Bool_t global_cs)