00001 #ifndef VIS_TRACKER_VIS_TRACKER_RECHIT2D_TWIG_H
00002 # define VIS_TRACKER_VIS_TRACKER_RECHIT2D_TWIG_H
00003
00004
00005
00006 # include "Iguana/Framework/interface/IgTwig.h"
00007 # include "VisFramework/VisFrameworkBase/interface/VisQueuedTwig.h"
00008 # include "VisFramework/VisFrameworkBase/interface/VisLegoScale.h"
00009 # include "FWCore/Framework/interface/ESHandle.h"
00010 # include "Geometry/CommonDetUnit/interface/TrackingGeometry.h"
00011 # include <DataFormats/TrackingRecHit/interface/RecHit2DLocalPos.h>
00012
00013 # include <vector>
00014
00015
00016
00017
00018
00019
00020 class TrackerGeometry;
00021
00022
00023
00024
00025
00026 class VisTrackerRechit2DTwig : public VisQueuedTwig
00027 {
00028 public:
00029 VisTrackerRechit2DTwig (IgState *state, IgTwig *parent,
00030 const std::string &name = "",
00031 const std::string &friendlyName = "",
00032 const std::string &moduleLabel = "",
00033 const std::string &instanceName = "",
00034 const std::string &processName = "");
00035
00036
00037
00038
00039 virtual void onNewEvent (const edm::Event &event,
00040 const edm::EventSetup &eventSetup);
00041 using VisQueuedTwig::update;
00042 virtual void update (Ig3DRep *rep);
00043 virtual void update (IgLegoRep *rep);
00044 virtual void update (IgTextRep *rep);
00045 virtual void update (IgRPhiRep *rep);
00046 virtual void update (IgRZRep *rep);
00047 virtual void twigChanged (void);
00048
00049 static void localPositions(const TrackingRecHit * rechit , const TrackingGeometry * geometry , std::vector<LocalPoint> & points);
00050 static LocalPoint localPosition(const TrackingRecHit * rechit , const TrackingGeometry * geometry);
00051
00052 private:
00053 std::string m_text;
00054 const std::string m_friendlyName;
00055 const std::string m_moduleLabel;
00056 const std::string m_instanceName;
00057 const std::string m_processName;
00058 VisLegoScale m_scale;
00059
00060 edm::ESHandle<TrackerGeometry> m_pDD;
00061
00062 std::vector<std::pair<std::pair<DetId, LocalPoint>, int> > rtemp;
00063 };
00064
00065
00066
00067
00068 #endif // VIS_TRACKER_VIS_TRACKER_RECHIT2D_TWIG_H