1 #ifndef STAR_StuDraw3DEvent
2 #define STAR_StuDraw3DEvent
8 #include "StThreeVector.hh"
18 class StSPtrVecTrackNode;
23 enum EStuDraw3DEvent {kUnusedHitsOnly=-1
64 StuDraw3DEvent(
const char *detectorName=
"TPC",TVirtualPad *pad = 0);
67 virtual void Tracks(
const StEvent* event, StTrackType type=global);
68 virtual void Tracks(
const StSPtrVecTrackNode &tracks, StTrackType type=global);
71 , Style_t sty= Style_t(-1)
72 , Size_t siz = Size_t (-1));
73 virtual TObject *
Track(
const StTrack &track, EDraw3DStyle sty=kPrimaryTrack);
76 , Style_t sty= Style_t(-1)
77 , Size_t siz = Size_t (-1));
81 , Style_t sty= Style_t(-1)
82 , Size_t siz = Size_t (-1));
83 virtual void Hits(
const StEvent* event, EStuDraw3DEvent trackHitsOnly=kUsedHits, StTrackType type=global);
85 virtual void FtpcHits(
const StEvent* event, EStuDraw3DEvent trackHitsOnly=kUsedHits, StTrackType type=global);
86 virtual void Hits(
const StTrack &track, EDraw3DStyle sty);
87 virtual void Hits(
const StTrack &track);
88 virtual void Hits(
const StTrack &track
90 , Style_t sty= Style_t(-1)
91 , Size_t siz = Size_t (-1));
95 , Style_t sty= Style_t(-1)
96 , Size_t siz = Size_t (-1));
99 , Color_t col= Color_t(-1)
100 , Style_t sty= Style_t(-1)
101 , Size_t siz = Size_t (-1));
102 virtual TObject *
TrackInOut(
const StTrack &track, EDraw3DStyle sty=kUsedHit, Bool_t in=kTRUE);
105 , Style_t sty= Style_t(-1)
106 , Size_t siz = Size_t (-1));
107 virtual void EmcHits(
const StEvent* event,
const char *det=
"bemc");
108 virtual TObject *
EmcHit(Int_t emcHitsSoftId, Color_t col,Style_t sty,Size_t siz,
const char *det=
"bemc" );
109 virtual TObject *
EmcHit(
const StEmcRawHit &emcHit, Color_t col,Style_t sty,Size_t siz,
const char *det=
"bemc");
118 template<
class T> TObject *StuDraw3DEvent::Vector(
const StThreeVector<T> &vector
119 , Color_t col, Style_t sty, Size_t siz)
120 {
return Point(vector.x(),vector.y(),vector.z(),col,sty,siz); }
123 template <
class T> TObject *StuDraw3DEvent::Vector(
const StThreeVector<T> &vector, EDraw3DStyle sty)
126 return Vector(vector.x(),vector.y(),vector.z(),style.Col(),style.Sty(),style.Siz());
StEventHitIter is the top level hook, providing hits to the Stv tracking code.
virtual const StDraw3DStyle & Style(EDraw3DStyle type) const
Return the reference to the predefined StDraw3DStyle object.
StDraw3DStyle maps "STAR event" EDraw3DStyle onto ROOT (color,style,size) attributes.
virtual ~StuDraw3DEvent()
~StuDraw3DEvent( ) dtor
virtual void Tracks(const StEvent *event, StTrackType type=global)
Add all tracks of the given type from the event to the display list.
virtual TObject * EmcHit(Int_t emcHitsSoftId, Color_t col, Style_t sty, Size_t siz, const char *det="bemc")
Add EMC hit defined emcHitsSoftId to the display list with the col color sty and size if provided...
Class StDraw3D - to draw the 3D primitives like 3D points and 3D lines decorated with the STAR detect...
virtual TObject * Track(const StTrack &track, Color_t col, Style_t sty=Style_t(-1), Size_t siz=Size_t(-1))
Add track to the display list with the col color sty and size if provided.
virtual TObject * Hit(const StMeasuredPoint &hit, Color_t col, Style_t sty=Style_t(-1), Size_t siz=Size_t(-1))
Add one hit to the display list with the col color sty and siz size if provided.
virtual TObject * Vertex(const StMeasuredPoint &hit, Color_t col, Style_t sty=Style_t(-1), Size_t siz=Size_t(-1))
This is an overloaded member function, provided for convenience.
static StuDraw3DEvent * Display()
virtual void EmcHits(const StEvent *event, const char *det="bemc")
Add all emcHits those can pass the internal filter from the given detector detId type from the event ...
virtual TObject * TrackInOut(const StTrack &track, Bool_t in, Color_t col=Color_t(-1), Style_t sty=Style_t(-1), Size_t siz=Size_t(-1))
Add the in point of the given track to the display list with the col color sty and siz size if provid...
Class StuDraw3DEvent - to draw the 3D StEvent primitives like StTrack, StHit, StVertex decorated with...