CMS 3D CMS Logo

FWTrackHitsDetailView.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Tracks
4 // Class : FWTrackHitsDetailView
5 
6 #include "Rtypes.h"
7 #include "TVector3.h"
10 
11 class TGLEmbeddedViewer;
12 class FWIntValueListener;
13 class TGSlider;
14 namespace reco {
15  class Track;
16 }
17 
18 class FWTrackHitsDetailView : public FWDetailViewGL<reco::Track>, public CSGActionSupervisor {
19 public:
21  ~FWTrackHitsDetailView() override;
22 
23  void pickCameraCenter();
24  void transparencyChanged(int);
25  void rnrLabels();
26 
27  void setBackgroundColor(Color_t) override;
28 
29 protected:
30  TEveElementList* m_modules;
31  TEveElementList* m_moduleLabels;
32  TEveElementList* m_hits;
33  TGSlider* m_slider;
35 
36 public:
37  FWTrackHitsDetailView(const FWTrackHitsDetailView&) = delete; // stop default
38  const FWTrackHitsDetailView& operator=(const FWTrackHitsDetailView&) = delete; // stop default
39 
40 private:
42  void build(const FWModelId& id, const reco::Track*) override;
44  void setTextInfo(const FWModelId& id, const reco::Track*) override;
45  void makeLegend(void);
46 
47  void addTrackerHits3D(std::vector<TVector3>& points, class TEveElementList* tList, Color_t color, int size);
48 
49  void addHits(const reco::Track& track, const FWEventItem* iItem, TEveElement* trkList, bool addNearbyHits);
50  void addModules(const reco::Track& track, const FWEventItem* iItem, TEveElement* trkList, bool addLostHits);
51 
52  TLegend* m_legend;
53 };
size
Write out results.
void setTextInfo(const FWModelId &id, const reco::Track *) override
TEveElementList * m_modules
const FWTrackHitsDetailView & operator=(const FWTrackHitsDetailView &)=delete
void addHits(const reco::Track &track, const FWEventItem *iItem, TEveElement *trkList, bool addNearbyHits)
void setBackgroundColor(Color_t) override
void addTrackerHits3D(std::vector< TVector3 > &points, class TEveElementList *tList, Color_t color, int size)
void build(const FWModelId &id, const reco::Track *) override
TEveElementList * m_moduleLabels
void addModules(const reco::Track &track, const FWEventItem *iItem, TEveElement *trkList, bool addLostHits)
fixed size matrix
FWIntValueListener * m_sliderListener