CbmRoot
|
#include <CbmTimeslicePixelHitSetDraw.h>
Public Member Functions | |
CbmTimeslicePixelHitSetDraw (const char *name, Color_t color, Style_t mstyle, Int_t iVerbose=1) | |
Constructor. | |
virtual | ~CbmTimeslicePixelHitSetDraw ()=default |
virtual InitStatus | Init () |
virtual void | Exec (Option_t *option) |
void | Reset () |
void | GotoEvent (uint32_t uEventIdx) |
Load hits from selected event in timeslice. RESERVED FOR GUI CALLS! | |
Protected Member Functions | |
TVector3 | GetVector (TObject *obj) |
Private Member Functions | |
ClassDef (CbmTimeslicePixelHitSetDraw, 1) | |
Private Attributes | |
FairDataSourceI * | fLocalDataSourcePtr = nullptr |
TClonesArray * | fCbmEvents = nullptr |
ECbmDataType | fDataType = ECbmDataType::kUnknown |
uint32_t | fEventIdx = 0 |
Definition at line 23 of file CbmTimeslicePixelHitSetDraw.h.
CbmTimeslicePixelHitSetDraw::CbmTimeslicePixelHitSetDraw | ( | const char * | name, |
Color_t | color, | ||
Style_t | mstyle, | ||
Int_t | iVerbose = 1 ) |
Constructor.
Name | of the container/bramhc, ROOT color of the displayed points, ROOT style of the displayed points |
Trick to get access to the data source pointer even if private in the base class TODO: switch from legacy constructor to standard constructor of the base class? or break inheritance and make this one standalone by copying the remaining parts of base class?
Definition at line 22 of file CbmTimeslicePixelHitSetDraw.cxx.
References fLocalDataSourcePtr.
|
virtualdefault |
|
private |
|
virtual |
When loading a new TS, load the first event if possible
Definition at line 85 of file CbmTimeslicePixelHitSetDraw.cxx.
References fCbmEvents, fLocalDataSourcePtr, GotoEvent(), and CbmTimesliceManager::Instance().
|
protected |
Definition at line 146 of file CbmTimeslicePixelHitSetDraw.cxx.
References CbmPixelHit::GetX(), CbmPixelHit::GetY(), and CbmHit::GetZ().
Referenced by GotoEvent().
void CbmTimeslicePixelHitSetDraw::GotoEvent | ( | uint32_t | uEventIdx | ) |
Load hits from selected event in timeslice. RESERVED FOR GUI CALLS!
Definition at line 96 of file CbmTimeslicePixelHitSetDraw.cxx.
References fCbmEvents, fDataType, fEventIdx, fLocalDataSourcePtr, CbmEvent::GetNofData(), GetVector(), CbmTimesliceManager::Instance(), and Reset().
Referenced by Exec().
|
virtual |
Default initialization on base class
CBM timeslice specific: get array of CbmEvents
Find the data type enum based on the name provided to constructor FIXME: find alternative to hard-coded if block... maybe reverse logic with constructor getting name from enum?
Definition at line 33 of file CbmTimeslicePixelHitSetDraw.cxx.
References fCbmEvents, fDataType, kBmonHit, kMuchPixelHit, kMvdHit, kPsdHit, kRichHit, kStsHit, kTofHit, kTrdHit, and kUnknown.
void CbmTimeslicePixelHitSetDraw::Reset | ( | ) |
Definition at line 137 of file CbmTimeslicePixelHitSetDraw.cxx.
References CbmTimesliceManager::Instance().
Referenced by GotoEvent().
|
private |
Definition at line 46 of file CbmTimeslicePixelHitSetDraw.h.
Referenced by Exec(), GotoEvent(), and Init().
|
private |
Definition at line 47 of file CbmTimeslicePixelHitSetDraw.h.
Referenced by GotoEvent(), and Init().
|
private |
Definition at line 48 of file CbmTimeslicePixelHitSetDraw.h.
Referenced by GotoEvent().
|
private |
Definition at line 45 of file CbmTimeslicePixelHitSetDraw.h.
Referenced by CbmTimeslicePixelHitSetDraw(), Exec(), and GotoEvent().