CbmRoot
Loading...
Searching...
No Matches
CbmTimeslicePixelHitSetDraw Class Reference

#include <CbmTimeslicePixelHitSetDraw.h>

Inheritance diagram for CbmTimeslicePixelHitSetDraw:
[legend]
Collaboration diagram for CbmTimeslicePixelHitSetDraw:
[legend]

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
 

Detailed Description

Definition at line 23 of file CbmTimeslicePixelHitSetDraw.h.

Constructor & Destructor Documentation

◆ CbmTimeslicePixelHitSetDraw()

CbmTimeslicePixelHitSetDraw::CbmTimeslicePixelHitSetDraw ( const char * name,
Color_t color,
Style_t mstyle,
Int_t iVerbose = 1 )

Constructor.

Parameters
Nameof 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.

◆ ~CbmTimeslicePixelHitSetDraw()

virtual CbmTimeslicePixelHitSetDraw::~CbmTimeslicePixelHitSetDraw ( )
virtualdefault

Member Function Documentation

◆ ClassDef()

CbmTimeslicePixelHitSetDraw::ClassDef ( CbmTimeslicePixelHitSetDraw ,
1  )
private

◆ Exec()

void CbmTimeslicePixelHitSetDraw::Exec ( Option_t * option)
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().

◆ GetVector()

TVector3 CbmTimeslicePixelHitSetDraw::GetVector ( TObject * obj)
protected

Definition at line 146 of file CbmTimeslicePixelHitSetDraw.cxx.

References CbmPixelHit::GetX(), CbmPixelHit::GetY(), and CbmHit::GetZ().

Referenced by GotoEvent().

◆ 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().

◆ Init()

InitStatus CbmTimeslicePixelHitSetDraw::Init ( )
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.

◆ Reset()

void CbmTimeslicePixelHitSetDraw::Reset ( )

Definition at line 137 of file CbmTimeslicePixelHitSetDraw.cxx.

References CbmTimesliceManager::Instance().

Referenced by GotoEvent().

Member Data Documentation

◆ fCbmEvents

TClonesArray* CbmTimeslicePixelHitSetDraw::fCbmEvents = nullptr
private

Definition at line 46 of file CbmTimeslicePixelHitSetDraw.h.

Referenced by Exec(), GotoEvent(), and Init().

◆ fDataType

ECbmDataType CbmTimeslicePixelHitSetDraw::fDataType = ECbmDataType::kUnknown
private

Definition at line 47 of file CbmTimeslicePixelHitSetDraw.h.

Referenced by GotoEvent(), and Init().

◆ fEventIdx

uint32_t CbmTimeslicePixelHitSetDraw::fEventIdx = 0
private

Definition at line 48 of file CbmTimeslicePixelHitSetDraw.h.

Referenced by GotoEvent().

◆ fLocalDataSourcePtr

FairDataSourceI* CbmTimeslicePixelHitSetDraw::fLocalDataSourcePtr = nullptr
private

Definition at line 45 of file CbmTimeslicePixelHitSetDraw.h.

Referenced by CbmTimeslicePixelHitSetDraw(), Exec(), and GotoEvent().


The documentation for this class was generated from the following files: