#include <StuDraw3DEvent.h>

Public Member Functions | |
| StuDraw3DEvent (const char *detectorName="TPC", TVirtualPad *pad=0) | |
| 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 void | Tracks (const StSPtrVecTrackNode &tracks, StTrackType type=global) |
| This is an overloaded member function, provided for convenience. | |
| 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 * | Track (const StTrack &track, EDraw3DStyle sty=kPrimaryTrack) |
| This is an overloaded member function, provided for convenience. | |
| 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 void | Hits (const StEvent *event, EStuDraw3DEvent trackHitsOnly=kUsedHits, StTrackType type=global) |
| virtual void | Hits (StEventHitIter &iter) |
| virtual void | FtpcHits (const StEvent *event, EStuDraw3DEvent trackHitsOnly=kUsedHits, StTrackType type=global) |
| virtual void | Hits (const StTrack &track, EDraw3DStyle sty) |
| This is an overloaded member function, provided for convenience. | |
| virtual void | Hits (const StTrack &track) |
| Add all good hits for the given track to the display. | |
| virtual void | Hits (const StTrack &track, Color_t col, Style_t sty=Style_t(-1), Size_t siz=Size_t(-1)) |
| Add all hits of the given track to the display list with the col color sty and siz size if provided. | |
| virtual TObject * | Hit (const StMeasuredPoint &hit, EDraw3DStyle sty=kUsedHit) |
| This is an overloaded member function, provided for convenience. | |
| 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. | |
| virtual TObject * | Vertex (const StMeasuredPoint &hit, EDraw3DStyle sty=kVtx) |
| This is an overloaded member function, provided for convenience. | |
| 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 provided. | |
| virtual TObject * | TrackInOut (const StTrack &track, EDraw3DStyle sty=kUsedHit, Bool_t in=kTRUE) |
| This is an overloaded member function, provided for convenience. | |
| template<class T > | |
| TObject * | Vector (const StThreeVector< T > &vector, Color_t col, Style_t sty=Style_t(-1), Size_t siz=Size_t(-1)) |
| 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 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. | |
| virtual TObject * | EmcHit (const StEmcRawHit &emcHit, Color_t col, Style_t sty, Size_t siz, const char *det="bemc") |
| Add emcHit to the display list with the col color sty and size if provided. | |
| template<class T > | |
| TObject * | Vector (const StThreeVector< T > &vector, EDraw3DStyle sty=kVtx) |
| ClassDef (StuDraw3DEvent, 0) | |
Static Public Member Functions | |
| static StuDraw3DEvent * | Display () |
| static void | Wait () |
> ln -s $STAR/StRoot/macros/.rootrc > root.exe Draw3D.C
Example of the STAR reconstructed event rendering
Definition at line 56 of file StuDraw3DEvent.h.
| StuDraw3DEvent::~StuDraw3DEvent | ( | ) | [virtual] |
~StuDraw3DEvent( ) dtor
Reset the global gEventDisplay pointer to the current display if the current display is this
Definition at line 76 of file StuDraw3DEvent.cxx.
| StuDraw3DEvent * StuDraw3DEvent::Display | ( | ) | [static] |
Definition at line 582 of file StuDraw3DEvent.cxx.
| TObject * StuDraw3DEvent::EmcHit | ( | const StEmcRawHit & | emcHit, | |
| Color_t | col, | |||
| Style_t | sty, | |||
| Size_t | siz, | |||
| const char * | detId = "bemc" | |||
| ) | [virtual] |
Add emcHit to the display list with the col color sty and size if provided.
| emcHit | - StEmcRawHit reference one wants to be present as the ROOT TTRAP object with ROOT visual attributes col sty siz | |
| col | - Tower color ( see: http://root.cern.ch/root/html/TAttFill.html ) | |
| sty | - Tower style ( see: http://root.cern.ch/root/html/TAttFill.html ) | |
| siz | - Tower size (cm) ( |
Definition at line 125 of file StuDraw3DEvent.cxx.
References EmcHit().
| TObject * StuDraw3DEvent::EmcHit | ( | Int_t | emcHitsSoftId, | |
| Color_t | col, | |||
| Style_t | sty, | |||
| Size_t | siz, | |||
| const char * | detId = "bemc" | |||
| ) | [virtual] |
Add EMC hit defined emcHitsSoftId to the display list with the col color sty and size if provided.
| emcHitsSoftId | - StEmcRawHit soft ID that one wants to be present as the ROOT TTRAP object with ROOT visual attributes col sty siz | |
| col | - Tower color ( see: http://root.cern.ch/root/html/TAttFill.html ) | |
| sty | - Tower style ( see: http://root.cern.ch/root/html/TAttFill.html ) | |
| siz | - Tower size (cm) ( |
Definition at line 91 of file StuDraw3DEvent.cxx.
References StDraw3D::Tower().
| void StuDraw3DEvent::EmcHits | ( | const StEvent * | event, | |
| const char * | detId = "bemc" | |||
| ) | [virtual] |
Add all emcHits those can pass the internal filter from the given detector detId type from the event to the display list.
| event | - The pointer to the instance of the StEvent class | |
| detId | - The Emc detector name as defined by StEmcGeom::getDetNumFromName(const Char_t *cdet) method
Event 666030 from Run 9025036 produced by Ed.C macros |
Definition at line 153 of file StuDraw3DEvent.cxx.
References EmcHit().
Referenced by rd().
| TObject * StuDraw3DEvent::Hit | ( | const StMeasuredPoint & | hit, | |
| EDraw3DStyle | sty = kUsedHit | |||
| ) | [virtual] |
This is an overloaded member function, provided for convenience.
Add hit to the display list with the sty pre-defined style if provided
Definition at line 253 of file StuDraw3DEvent.cxx.
References Hit(), and StDraw3D::Style().
| TObject * StuDraw3DEvent::Hit | ( | const StMeasuredPoint & | hit, | |
| Color_t | col, | |||
| Style_t | sty = Style_t(-1), |
|||
| Size_t | siz = Size_t (-1) | |||
| ) | [virtual] |
Add one hit to the display list with the col color sty and siz size if provided.
Draw the StMeasuredPoint, StHit, StVertex with the graphical attribute provided
| hit | - The reference to StMeasuredPoint STAR object one wants to be present as ROOT TMarker3D | |
| col | - ROOT marker color (see: http://root.cern.ch/root/html/TAttMarker.html ) | |
| sty | - ROOT marker style (see: http://root.cern.ch/root/html/TAttMarker.html ) | |
| siz | - ROOT marker size (see: http://root.cern.ch/root/html/TAttMarker.html ) |
Definition at line 238 of file StuDraw3DEvent.cxx.
| void StuDraw3DEvent::Hits | ( | const StTrack & | track, | |
| Color_t | col, | |||
| Style_t | sty = Style_t(-1), |
|||
| Size_t | siz = Size_t (-1) | |||
| ) | [virtual] |
Add all hits of the given track to the display list with the col color sty and siz size if provided.
| track | - StTrack reference one wants its "used" hits to be present as the ROOT TPolyMarker3D object with ROOT visual attributes col sty size | |
| col | - ROOT line color ( see: http://root.cern.ch/root/html/TAttLine.html ) | |
| sty | - ROOT line style ( see: http://root.cern.ch/root/html/TAttLine.html ) | |
| siz | - ROOT line width ( see: http://root.cern.ch/root/html/TAttLine.html ) |
Definition at line 321 of file StuDraw3DEvent.cxx.
References StDraw3D::Points().
| void StuDraw3DEvent::Hits | ( | const StTrack & | track | ) | [virtual] |
Add all good hits for the given track to the display.
the style and size vizual attributes are defined by the kUsedHit style the color is defined by the track pt
double pt = track.geometry()->momentum().perp();
Definition at line 299 of file StuDraw3DEvent.cxx.
References StDraw3DStyle::Pt2Color(), and StDraw3D::Style().
| void StuDraw3DEvent::Hits | ( | const StTrack & | track, | |
| EDraw3DStyle | sty | |||
| ) | [virtual] |
This is an overloaded member function, provided for convenience.
Add all hits fof the given track to the display list with the sty pre-defined style if provided
Definition at line 379 of file StuDraw3DEvent.cxx.
References StDraw3D::Style().
| TObject * StuDraw3DEvent::Track | ( | const StTrack & | track, | |
| EDraw3DStyle | sty = kPrimaryTrack | |||
| ) | [virtual] |
This is an overloaded member function, provided for convenience.
Add track to the display list with the sty pre-defined style
Definition at line 221 of file StuDraw3DEvent.cxx.
References StDraw3D::Style(), and Track().
| TObject * StuDraw3DEvent::Track | ( | const StTrack & | track, | |
| Color_t | col, | |||
| Style_t | sty = Style_t(-1), |
|||
| Size_t | siz = Size_t (-1) | |||
| ) | [virtual] |
Add track to the display list with the col color sty and size if provided.
| track | - StTrack reference one wants to be present as the ROOT TPolyLine3D object with ROOT visual attributes col sty siz | |
| col | - ROOT line color ( see: http://root.cern.ch/root/html/TAttLine.html ) | |
| sty | - ROOT line style ( see: http://root.cern.ch/root/html/TAttLine.html ) | |
| siz | - ROOT line width ( see: http://root.cern.ch/root/html/TAttLine.html ) |
Definition at line 207 of file StuDraw3DEvent.cxx.
References StDraw3D::Line().
| TObject * StuDraw3DEvent::TrackInOut | ( | const StTrack & | track, | |
| EDraw3DStyle | sty = kUsedHit, |
|||
| Bool_t | in = kTRUE | |||
| ) | [virtual] |
This is an overloaded member function, provided for convenience.
| track | - reference to the StTrack object from StEvent data structure | |
| in | - flag true (default) is to be set to ad the track in point false is to be set to add the track out point to the list | |
| sty | - EDraw3DStyle pre-defined visual style of this object. |
Definition at line 416 of file StuDraw3DEvent.cxx.
References StDraw3D::Style(), and TrackInOut().
| TObject * StuDraw3DEvent::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) | |||
| ) | [virtual] |
Add the in point of the given track to the display list with the col color sty and siz size if provided.
| track | - reference to the StTrack object from StEvent data structure | |
| in | flag true (default) is to be set to add the track in point false is to be set to add the track out point to the list | |
| col | - ROOT marker color (see: http://root.cern.ch/root/html/TAttMarker.html ) | |
| sty | - ROOT marker style (see: http://root.cern.ch/root/html/TAttMarker.html ) | |
| siz | - ROOT marker size (see: http://root.cern.ch/root/html/TAttMarker.html ) |
Definition at line 399 of file StuDraw3DEvent.cxx.
References StDraw3D::Points().
Referenced by TrackInOut().
| void StuDraw3DEvent::Tracks | ( | const StSPtrVecTrackNode & | theNodes, | |
| StTrackType | type = global | |||
| ) | [virtual] |
This is an overloaded member function, provided for convenience.
Add all tracks of the given type from the theNodes to the display list.
| theNodes | - The reference to the StSPtrVecTrackNode track container from the StEvent object | |
| type | - The StTrack type as defined by StTrackType class |
style and size of the visual attributes are defined by the StTrackType global style the color is defined by the track pt double pt = track.geometry()->momentum().perp();
Definition at line 450 of file StuDraw3DEvent.cxx.
References StDraw3DStyle::Pt2Color(), and Track().
| void StuDraw3DEvent::Tracks | ( | const StEvent * | event, | |
| StTrackType | type = global | |||
| ) | [virtual] |
Add all tracks of the given type from the event to the display list.
| event | - The pointer to the instance of the StEvent class | |
| type | - The StTrack type as defined by StTrackType class |
style and size of the visual attributes are defined by the StTrackType global style the color is defined by the track pt double pt = track.geometry()->momentum().perp();
Definition at line 434 of file StuDraw3DEvent.cxx.
Referenced by rd().
| TObject * StuDraw3DEvent::Vertex | ( | const StMeasuredPoint & | vtx, | |
| EDraw3DStyle | sty = kVtx | |||
| ) | [virtual] |
This is an overloaded member function, provided for convenience.
Add vtx to the display list with the sty style if provided
| vtx | - The reference to StMeasuredPoint STAR object one wants to be present as ROOT TMarker3D | |
| sty | - EDraw3DStyle EventDisplay pre-defined style |
Definition at line 285 of file StuDraw3DEvent.cxx.
References StDraw3D::Style(), and Vertex().
| TObject * StuDraw3DEvent::Vertex | ( | const StMeasuredPoint & | vertex, | |
| Color_t | col, | |||
| Style_t | sty = Style_t(-1), |
|||
| Size_t | siz = Size_t (-1) | |||
| ) | [virtual] |
This is an overloaded member function, provided for convenience.
Add vertex to the display list with the col color sty and siz size if provided
| vertex | - The reference to StMeasuredPoint STAR object one wants to be present as ROOT TMarker3D | |
| col | - ROOT marker color (see: http://root.cern.ch/root/html/TAttMarker.html ) | |
| sty | - ROOT marker style (see: http://root.cern.ch/root/html/TAttMarker.html ) | |
| siz | - ROOT marker size (see: http://root.cern.ch/root/html/TAttMarker.html ) |
Definition at line 270 of file StuDraw3DEvent.cxx.
References Hit().
Referenced by Vertex().
1.5.9