00001 #ifndef VIS_SIM_TRACKER_VIS_TK_SIM_TRACK_TWIG_H 00002 # define VIS_SIM_TRACKER_VIS_TK_SIM_TRACK_TWIG_H 00003 00004 //<<<<<< INCLUDES >>>>>> 00005 00006 # include "Iguana/Framework/interface/IgTwig.h" 00007 # include "VisFramework/VisFrameworkBase/interface/VisQueuedTwig.h" 00008 # include "FWCore/Framework/interface/ESHandle.h" 00009 # include "Geometry/CommonDetUnit/interface/TrackingGeometry.h" 00010 # include "Geometry/TrackerGeometryBuilder/interface/PixelGeomDetUnit.h" 00011 # include "Geometry/TrackerTopology/interface/RectangularPixelTopology.h" 00012 # include "VisReco/VisRecoGeometry/interface/VisTrackingGeometry.h" 00013 # include <vector> 00014 00015 //<<<<<< PUBLIC DEFINES >>>>>> 00016 //<<<<<< PUBLIC CONSTANTS >>>>>> 00017 //<<<<<< PUBLIC TYPES >>>>>> 00018 00019 class PSimHit; 00020 class SoSeparator; 00021 class SoCube; 00022 class SoTransform; 00023 class TrackerGeometry; 00024 00025 //<<<<<< PUBLIC VARIABLES >>>>>> 00026 //<<<<<< PUBLIC FUNCTIONS >>>>>> 00027 //<<<<<< CLASS DECLARATIONS >>>>>> 00028 00029 class VisTkSimTrackTwig : public VisQueuedTwig, public VisTrackingGeometry 00030 { 00031 public: 00032 VisTkSimTrackTwig (IgState *state, IgTwig *parent, 00033 const std::string &name = "", 00034 const std::string &friendlyName = "", 00035 const std::string &moduleLabel = "", 00036 const std::string &instanceName = "", 00037 const std::string &processName = ""); 00038 // implicit copy constructor 00039 // implicit assignment operator 00040 // implicit destructor 00041 virtual void onNewEvent (const edm::Event &event, 00042 const edm::EventSetup &eventSetup); 00043 using VisQueuedTwig::update; 00044 virtual void update (Ig3DRep *rep); 00045 virtual void update (IgLegoRep *rep); 00046 virtual void update (IgTextRep *rep); 00047 virtual void update (IgRPhiRep *rep); 00048 virtual void update (IgRZRep *rep); 00049 00050 private: 00051 std::string m_text; 00052 const std::string m_friendlyName; 00053 const std::string m_moduleLabel; 00054 const std::string m_instanceName; 00055 const std::string m_processName; 00056 edm::ESHandle<TrackerGeometry> m_pDD; 00057 unsigned int m_detType; 00058 unsigned int m_subDetType; 00059 std::vector<PSimHit> m_trackerHits; 00060 std::vector<std::vector<PSimHit> > m_trackerHitsSorted; 00061 }; 00062 00063 //<<<<<< INLINE PUBLIC FUNCTIONS >>>>>> 00064 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>> 00065 00066 #endif // VIS_SIM_TRACKER_VIS_TK_SIM_TRACK_TWIG_H