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

GUI elements for CbmTimesliceManager. Automatically loaded by TBrowser. Cannot be used standalone! More...

#include <CbmTimesliceManagerEditor.h>

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

Public Member Functions

 CbmTimesliceManagerEditor (const TGWindow *p=0, Int_t width=250, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
 
virtual ~CbmTimesliceManagerEditor ()=default
 
 CbmTimesliceManagerEditor (const CbmTimesliceManagerEditor &)=delete
 
CbmTimesliceManagerEditoroperator= (const CbmTimesliceManagerEditor &)=delete
 
void SwitchBackground (Bool_t light_background)
 
void SwitchPdgColorTrack (Bool_t pdg_color)
 
virtual void Init ()
 
virtual void SelectSingleTimeslice ()
 Select timeslice depending on GUI elements values, after clearing display. RESERVED FOR GUI CALLS!
 
virtual void SelectTimeslice ()
 Select timeslice depending on GUI elements values and load its first event. RESERVED FOR GUI CALLS!
 
virtual void PrevTimeslice ()
 Select previous timeslice and load its first event. RESERVED FOR GUI CALLS!
 
virtual void NextTimeslice ()
 Select next timeslice and load its first event. RESERVED FOR GUI CALLS!
 
virtual void SelectSingleEvent ()
 Select event in timeslice depending on GUI elements values, after clearing display. RESERVED FOR GUI CALLS!
 
virtual void SelectEvent ()
 Select event in timeslice depending on GUI elements values. RESERVED FOR GUI CALLS!
 
virtual void PrevEvent ()
 Select previous event in timeslice. RESERVED FOR GUI CALLS!
 
virtual void NextEvent ()
 Select next event in timeslice. RESERVED FOR GUI CALLS!
 
void SetModel (TObject *obj)
 
virtual void StartAnimation ()
 Start display: to be called by GUI element, see HowTo for description of options.
 
void MakeScreenshot ()
 Screenshot(s) generation: to be called by GUI element.
 

Protected Member Functions

void SetTimesliceTimeLabel (Double_t time)
 
void SetEventTimeLabel (Double_t time)
 

Protected Attributes

TObject * fObject = nullptr
 
CbmTimesliceManagerfManager = nullptr
 
TGNumberEntry * fCurrentTimeslice = nullptr
 
TGNumberEntry * fCurrentEvent = nullptr
 
TGNumberEntry * fGlobalTransparency = nullptr
 
TGLabel * fTimesliceTime = nullptr
 
TGTextButton * fSelTs = nullptr
 
TGTextButton * fPrevTs = nullptr
 
TGTextButton * fNextTs = nullptr
 
TGLabel * fEventNb = nullptr
 
TGLabel * fEventTime = nullptr
 
TGTextButton * fUpdateEvent = nullptr
 
TGTextButton * fPrevEvent = nullptr
 
TGTextButton * fNextEvent = nullptr
 
TGComboBox * fScreenshotOpt = nullptr
 
CbmTsEveAnimationControlfAnimation = nullptr
 
uint32_t fNbTs = 0
 
TClonesArray * fCbmEvents = nullptr
 
uint32_t fNbEventsInTs = 0
 

Private Member Functions

 ClassDef (CbmTimesliceManagerEditor, 1)
 

Detailed Description

GUI elements for CbmTimesliceManager. Automatically loaded by TBrowser. Cannot be used standalone!

Author
Pierre-Alain Loizeau p.-a..nosp@m.loiz.nosp@m.eau@g.nosp@m.si.d.nosp@m.e

Based on FairEventManagerEditor class of FairRoot v18.6.7

Definition at line 32 of file CbmTimesliceManagerEditor.h.

Constructor & Destructor Documentation

◆ CbmTimesliceManagerEditor() [1/2]

CbmTimesliceManagerEditor::CbmTimesliceManagerEditor ( const TGWindow * p = 0,
Int_t width = 250,
Int_t height = 30,
UInt_t options = kChildFrame,
Pixel_t back = GetDefaultFrameBackground() )

Definition at line 47 of file CbmTimesliceManagerEditor.cxx.

References Init().

◆ ~CbmTimesliceManagerEditor()

virtual CbmTimesliceManagerEditor::~CbmTimesliceManagerEditor ( )
virtualdefault

◆ CbmTimesliceManagerEditor() [2/2]

CbmTimesliceManagerEditor::CbmTimesliceManagerEditor ( const CbmTimesliceManagerEditor & )
delete

Member Function Documentation

◆ ClassDef()

CbmTimesliceManagerEditor::ClassDef ( CbmTimesliceManagerEditor ,
1  )
private

◆ Init()

◆ MakeScreenshot()

void CbmTimesliceManagerEditor::MakeScreenshot ( )

Screenshot(s) generation: to be called by GUI element.

Definition at line 469 of file CbmTimesliceManagerEditor.cxx.

References fManager, fScreenshotOpt, and CbmTimesliceManager::MakeScreenshot().

◆ NextEvent()

void CbmTimesliceManagerEditor::NextEvent ( )
virtual

Select next event in timeslice. RESERVED FOR GUI CALLS!

Definition at line 344 of file CbmTimesliceManagerEditor.cxx.

References fCurrentEvent, fNbEventsInTs, and SelectSingleEvent().

◆ NextTimeslice()

void CbmTimesliceManagerEditor::NextTimeslice ( )
virtual

Select next timeslice and load its first event. RESERVED FOR GUI CALLS!

Definition at line 297 of file CbmTimesliceManagerEditor.cxx.

References fCurrentTimeslice, fNbTs, and SelectSingleTimeslice().

◆ operator=()

CbmTimesliceManagerEditor & CbmTimesliceManagerEditor::operator= ( const CbmTimesliceManagerEditor & )
delete

◆ PrevEvent()

void CbmTimesliceManagerEditor::PrevEvent ( )
virtual

Select previous event in timeslice. RESERVED FOR GUI CALLS!

Definition at line 330 of file CbmTimesliceManagerEditor.cxx.

References fCurrentEvent, and SelectSingleEvent().

◆ PrevTimeslice()

void CbmTimesliceManagerEditor::PrevTimeslice ( )
virtual

Select previous timeslice and load its first event. RESERVED FOR GUI CALLS!

Definition at line 283 of file CbmTimesliceManagerEditor.cxx.

References fCurrentTimeslice, and SelectSingleTimeslice().

◆ SelectEvent()

void CbmTimesliceManagerEditor::SelectEvent ( )
virtual

◆ SelectSingleEvent()

void CbmTimesliceManagerEditor::SelectSingleEvent ( )
virtual

Select event in timeslice depending on GUI elements values, after clearing display. RESERVED FOR GUI CALLS!

Definition at line 311 of file CbmTimesliceManagerEditor.cxx.

References fManager, SelectEvent(), and CbmTimesliceManager::SetClearHandler().

Referenced by NextEvent(), and PrevEvent().

◆ SelectSingleTimeslice()

void CbmTimesliceManagerEditor::SelectSingleTimeslice ( )
virtual

Select timeslice depending on GUI elements values, after clearing display. RESERVED FOR GUI CALLS!

Definition at line 237 of file CbmTimesliceManagerEditor.cxx.

References fManager, SelectTimeslice(), and CbmTimesliceManager::SetClearHandler().

Referenced by NextTimeslice(), and PrevTimeslice().

◆ SelectTimeslice()

void CbmTimesliceManagerEditor::SelectTimeslice ( )
virtual

Select timeslice depending on GUI elements values and load its first event. RESERVED FOR GUI CALLS!

Enable/Disable buttons to avoid invalid accesses

Enable/Disable buttons to avoid invalid accesses

Load first event of this TS if possible and Update info text

Definition at line 243 of file CbmTimesliceManagerEditor.cxx.

References fAnimation, fCbmEvents, fCurrentEvent, fCurrentTimeslice, fEventNb, fManager, fNbEventsInTs, fNbTs, fNextEvent, fNextTs, fPrevEvent, fPrevTs, fUpdateEvent, CbmTimesliceManager::GotoTimeslice(), CbmTimesliceManager::Instance(), SelectEvent(), CbmTsEveAnimationControl::SetEvtNb(), SetTimesliceTimeLabel(), CbmTimesliceManager::SetTsNumberText(), and CbmTimesliceManager::SetTsTimeText().

Referenced by SelectSingleTimeslice(), and StartAnimation().

◆ SetEventTimeLabel()

void CbmTimesliceManagerEditor::SetEventTimeLabel ( Double_t time)
protected

Definition at line 366 of file CbmTimesliceManagerEditor.cxx.

References fEventTime.

Referenced by SelectEvent().

◆ SetModel()

void CbmTimesliceManagerEditor::SetModel ( TObject * obj)

Definition at line 375 of file CbmTimesliceManagerEditor.cxx.

References fObject.

◆ SetTimesliceTimeLabel()

void CbmTimesliceManagerEditor::SetTimesliceTimeLabel ( Double_t time)
protected

Definition at line 358 of file CbmTimesliceManagerEditor.cxx.

References fTimesliceTime.

Referenced by SelectTimeslice().

◆ StartAnimation()

void CbmTimesliceManagerEditor::StartAnimation ( )
virtual

Start display: to be called by GUI element, see HowTo for description of options.

Get minimum and maximum event indices, ensured to fit range in TS by buttons updates

Clear display at startup if requested (should be default for most uses) Clear display after each event if requested (should be default for most uses)

Do not clear display between events = accumulate/stack them

Get minimum and maximum TS indices, ensured to fit range in run by buttons updates

Get only event step, min and max set to content of each TS

Clear display at startup if requested (should be default for most uses)

<= This should update all events limits to appropriate values

Clear display after each event if requested (should be default for most uses)

Do not clear display between events = accumulate/stack them

Definition at line 377 of file CbmTimesliceManagerEditor.cxx.

References fAnimation, fCurrentEvent, fCurrentTimeslice, fManager, fNbEventsInTs, CbmTsEveAnimationControl::GetAnimationType(), CbmTsEveAnimationControl::GetAnimFrameSec(), CbmTsEveAnimationControl::GetClearBuffer(), CbmTsEveAnimationControl::GetEventMax(), CbmTsEveAnimationControl::GetEventMin(), CbmTsEveAnimationControl::GetEventStep(), CbmTsEveAnimationControl::GetRunContinuous(), CbmTsEveAnimationControl::GetScreenshotEna(), CbmTsEveAnimationControl::GetScreenshotType(), CbmTsEveAnimationControl::GetTsMax(), CbmTsEveAnimationControl::GetTsMin(), CbmTsEveAnimationControl::GetTsStep(), CbmTsEveAnimationControl::kEventsInTs, CbmTsEveAnimationControl::kTimeSlices, CbmTimesliceManager::MakeScreenshot(), SelectEvent(), SelectTimeslice(), and CbmTimesliceManager::SetClearHandler().

◆ SwitchBackground()

void CbmTimesliceManagerEditor::SwitchBackground ( Bool_t light_background)

switch background color: to be called by GUI element

Parameters
lightuse white if true

Definition at line 60 of file CbmTimesliceManagerEditor.cxx.

References fManager, and CbmTimesliceManager::SwitchBackground().

◆ SwitchPdgColorTrack()

void CbmTimesliceManagerEditor::SwitchPdgColorTrack ( Bool_t pdg_color)

switch track color: to be called by GUI element

Parameters
PDGcolor if true, red if false (see TimesliceRecoTracks)

Definition at line 65 of file CbmTimesliceManagerEditor.cxx.

References fManager, and CbmTimesliceManager::SwitchPdgColorTrack().

Member Data Documentation

◆ fAnimation

CbmTsEveAnimationControl* CbmTimesliceManagerEditor::fAnimation = nullptr
protected

Definition at line 117 of file CbmTimesliceManagerEditor.h.

Referenced by Init(), SelectTimeslice(), and StartAnimation().

◆ fCbmEvents

TClonesArray* CbmTimesliceManagerEditor::fCbmEvents = nullptr
protected

Definition at line 120 of file CbmTimesliceManagerEditor.h.

Referenced by Init(), and SelectTimeslice().

◆ fCurrentEvent

TGNumberEntry* CbmTimesliceManagerEditor::fCurrentEvent = nullptr
protected

◆ fCurrentTimeslice

TGNumberEntry* CbmTimesliceManagerEditor::fCurrentTimeslice = nullptr
protected

◆ fEventNb

TGLabel* CbmTimesliceManagerEditor::fEventNb = nullptr
protected

Definition at line 110 of file CbmTimesliceManagerEditor.h.

Referenced by Init(), and SelectTimeslice().

◆ fEventTime

TGLabel* CbmTimesliceManagerEditor::fEventTime = nullptr
protected

Definition at line 111 of file CbmTimesliceManagerEditor.h.

Referenced by Init(), and SetEventTimeLabel().

◆ fGlobalTransparency

TGNumberEntry* CbmTimesliceManagerEditor::fGlobalTransparency = nullptr
protected

Definition at line 105 of file CbmTimesliceManagerEditor.h.

◆ fManager

◆ fNbEventsInTs

uint32_t CbmTimesliceManagerEditor::fNbEventsInTs = 0
protected

◆ fNbTs

uint32_t CbmTimesliceManagerEditor::fNbTs = 0
protected

Definition at line 119 of file CbmTimesliceManagerEditor.h.

Referenced by Init(), NextTimeslice(), and SelectTimeslice().

◆ fNextEvent

TGTextButton* CbmTimesliceManagerEditor::fNextEvent = nullptr
protected

Definition at line 114 of file CbmTimesliceManagerEditor.h.

Referenced by Init(), SelectEvent(), and SelectTimeslice().

◆ fNextTs

TGTextButton* CbmTimesliceManagerEditor::fNextTs = nullptr
protected

Definition at line 109 of file CbmTimesliceManagerEditor.h.

Referenced by Init(), and SelectTimeslice().

◆ fObject

TObject* CbmTimesliceManagerEditor::fObject = nullptr
protected

Definition at line 101 of file CbmTimesliceManagerEditor.h.

Referenced by SetModel().

◆ fPrevEvent

TGTextButton* CbmTimesliceManagerEditor::fPrevEvent = nullptr
protected

Definition at line 113 of file CbmTimesliceManagerEditor.h.

Referenced by Init(), SelectEvent(), and SelectTimeslice().

◆ fPrevTs

TGTextButton* CbmTimesliceManagerEditor::fPrevTs = nullptr
protected

Definition at line 108 of file CbmTimesliceManagerEditor.h.

Referenced by Init(), and SelectTimeslice().

◆ fScreenshotOpt

TGComboBox* CbmTimesliceManagerEditor::fScreenshotOpt = nullptr
protected

Definition at line 116 of file CbmTimesliceManagerEditor.h.

Referenced by Init(), and MakeScreenshot().

◆ fSelTs

TGTextButton* CbmTimesliceManagerEditor::fSelTs = nullptr
protected

Definition at line 107 of file CbmTimesliceManagerEditor.h.

Referenced by Init().

◆ fTimesliceTime

TGLabel* CbmTimesliceManagerEditor::fTimesliceTime = nullptr
protected

Definition at line 106 of file CbmTimesliceManagerEditor.h.

Referenced by Init(), and SetTimesliceTimeLabel().

◆ fUpdateEvent

TGTextButton* CbmTimesliceManagerEditor::fUpdateEvent = nullptr
protected

Definition at line 112 of file CbmTimesliceManagerEditor.h.

Referenced by Init(), and SelectTimeslice().


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