CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/Fireworks/Electrons/plugins/FWConvTrackHitsDetailView.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     Tracks
00004 // Class  :     FWConvTrackHitsDetailView
00005 
00006 #include "Rtypes.h"
00007 
00008 #include "Fireworks/Core/interface/FWDetailViewGL.h"
00009 #include "Fireworks/Core/interface/CSGActionSupervisor.h"
00010 
00011 class TGLEmbeddedViewer;
00012 class FWIntValueListener;
00013 namespace reco {
00014    class Conversion;
00015 }
00016 
00017 class FWConvTrackHitsDetailView: public FWDetailViewGL<reco::Conversion>,
00018                              public CSGActionSupervisor
00019 {
00020 public:
00021    FWConvTrackHitsDetailView();
00022    virtual ~FWConvTrackHitsDetailView();
00023 
00024    void pickCameraCenter();
00025    void transparencyChanged(int);
00026    void rnrLabels();
00027 
00028    virtual void setBackgroundColor(Color_t);
00029 
00030 protected:
00031    TEveElementList*    m_modules;
00032    TEveElementList*    m_moduleLabels;
00033    TEveElementList*    m_hits;
00034    TGSlider*           m_slider;
00035    FWIntValueListener* m_sliderListener;
00036   
00037 private:
00038    FWConvTrackHitsDetailView(const FWConvTrackHitsDetailView&); // stop default
00039    const FWConvTrackHitsDetailView& operator=(const FWConvTrackHitsDetailView&); // stop default
00040 
00041    void build (const FWModelId &id, const reco::Conversion*);
00042    void setTextInfo (const FWModelId &id, const reco::Conversion*);
00043    void makeLegend( void );
00044 
00045    void
00046    addTrackerHits3D( std::vector<TVector3> &points,
00047                      class TEveElementList *tList,
00048                      Color_t color, int size );
00049 
00050    void
00051    addHits( const reco::Track& track,
00052             const FWEventItem* iItem,
00053             TEveElement* trkList,
00054             bool addNearbyHits );
00055    void
00056    addModules( const reco::Track& track,
00057                const FWEventItem* iItem,
00058                TEveElement* trkList,
00059                bool addLostHits );
00060   
00061    TLegend             *m_legend;
00062 };