DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Private Types | Private Attributes | List of all members

Event input control for DDEve: Interface class for event I/O. More...

#include <EventControl.h>

Inheritance diagram for dd4hep::EventControl:
dd4hep::FrameControl dd4hep::EventConsumer TGMainFrame

Public Member Functions

 EventControl (Display *disp, unsigned int width, unsigned int height)
 Standard constructor. More...
 
virtual ~EventControl ()
 Default destructor. More...
 
virtual void OnBuild () override
 User callback to add elements to the control. More...
 
TGCompositeFrame * CreateFrame () override
 Create the frame for this control structure. Default: create horizontal frame. More...
 
virtual bool Open ()
 Open a new event data file. More...
 
virtual void NextEvent ()
 Load the next event. More...
 
virtual void PreviousEvent ()
 Load the previous event. More...
 
virtual void GotoEvent ()
 Goto a specified event. More...
 
virtual void OnNewEvent (EventHandler &handler) override
 EventConsumer overload: New consumer event data. More...
 
virtual void OnFileOpen (EventHandler &handler) override
 EventConsumer overload: New event data file. More...
 
- Public Member Functions inherited from dd4hep::FrameControl
 FrameControl (TGClient *client, const std::string &name, unsigned int width, unsigned int height)
 Standard constructor. More...
 
virtual ~FrameControl ()
 Default destructor. More...
 
TGClient & client () const
 Access to the windows client. More...
 
TGCompositeFrame * frame () const
 Access to the top level frame. More...
 
virtual void Build ()
 Build the control. More...
 
virtual const TGPicture * LoadPicture (const std::string &path)
 Helper: Load picture using path name. More...
 
- Public Member Functions inherited from dd4hep::EventConsumer
 EventConsumer ()=default
 Standard constructor. More...
 
virtual ~EventConsumer ()
 Default destructor. More...
 
 ClassDef (EventConsumer, 0)
 

Private Types

enum  { NUM_DATA_LINES = 40 }
 
typedef std::pair< TGLabel *, TGLabel * > Labels
 
typedef std::pair< TGCompositeFrame *, LabelsLine
 
typedef std::vector< LineLines
 

Private Attributes

Displaym_display
 Refernece to the display object. More...
 
TGGroupFrame * m_dataGroup
 Data frame. More...
 
TGCompositeFrame * m_dataFrame
 
TGGroupFrame * m_eventGroup
 Data frame. More...
 
TGCompositeFrame * m_numEvtFrame
 
TGLabel * m_input1
 
TGLabel * m_input2
 
TGLabel * m_numEvtLabel
 
TGPictureButton * m_open
 
TGPictureButton * m_prev
 
TGPictureButton * m_next
 
TGPictureButton * m_goto
 
Lines m_lines
 

Additional Inherited Members

- Protected Attributes inherited from dd4hep::FrameControl
TGClient * m_client
 Reference to TEve manager. More...
 
TGCompositeFrame * m_frame
 Reference to control's frame. More...
 

Detailed Description

Event input control for DDEve: Interface class for event I/O.

Author
M.Frank
Version
1.0

Definition at line 37 of file EventControl.h.

Member Typedef Documentation

◆ Labels

typedef std::pair<TGLabel*,TGLabel*> dd4hep::EventControl::Labels
private

Definition at line 50 of file EventControl.h.

◆ Line

typedef std::pair<TGCompositeFrame*,Labels> dd4hep::EventControl::Line
private

Definition at line 51 of file EventControl.h.

◆ Lines

typedef std::vector<Line > dd4hep::EventControl::Lines
private

Definition at line 52 of file EventControl.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
NUM_DATA_LINES 

Definition at line 38 of file EventControl.h.

Constructor & Destructor Documentation

◆ EventControl()

dd4hep::EventControl::EventControl ( Display disp,
unsigned int  width,
unsigned int  height 
)

Standard constructor.

◆ ~EventControl()

EventControl::~EventControl ( )
virtual

Default destructor.

Definition at line 50 of file EventControl.cpp.

Member Function Documentation

◆ CreateFrame()

TGCompositeFrame * EventControl::CreateFrame ( )
overridevirtual

Create the frame for this control structure. Default: create horizontal frame.

Reimplemented from dd4hep::FrameControl.

Definition at line 60 of file EventControl.cpp.

◆ GotoEvent()

void EventControl::GotoEvent ( )
virtual

Goto a specified event.

Definition at line 75 of file EventControl.cpp.

◆ NextEvent()

void EventControl::NextEvent ( )
virtual

Load the next event.

Definition at line 65 of file EventControl.cpp.

◆ OnBuild()

void EventControl::OnBuild ( )
overridevirtual

User callback to add elements to the control.

Reimplemented from dd4hep::FrameControl.

Definition at line 155 of file EventControl.cpp.

◆ OnFileOpen()

void EventControl::OnFileOpen ( EventHandler handler)
overridevirtual

EventConsumer overload: New event data file.

Implements dd4hep::EventConsumer.

Definition at line 90 of file EventControl.cpp.

◆ OnNewEvent()

void EventControl::OnNewEvent ( EventHandler handler)
overridevirtual

EventConsumer overload: New consumer event data.

Consumer event data.

Implements dd4hep::EventConsumer.

Definition at line 110 of file EventControl.cpp.

◆ Open()

bool EventControl::Open ( )
virtual

Open a new event data file.

Definition at line 81 of file EventControl.cpp.

◆ PreviousEvent()

void EventControl::PreviousEvent ( )
virtual

Load the previous event.

Definition at line 70 of file EventControl.cpp.

Member Data Documentation

◆ m_dataFrame

TGCompositeFrame* dd4hep::EventControl::m_dataFrame
private

Definition at line 43 of file EventControl.h.

◆ m_dataGroup

TGGroupFrame* dd4hep::EventControl::m_dataGroup
private

Data frame.

Definition at line 42 of file EventControl.h.

◆ m_display

Display* dd4hep::EventControl::m_display
private

Refernece to the display object.

Definition at line 40 of file EventControl.h.

◆ m_eventGroup

TGGroupFrame* dd4hep::EventControl::m_eventGroup
private

Data frame.

Definition at line 45 of file EventControl.h.

◆ m_goto

TGPictureButton * dd4hep::EventControl::m_goto
private

Definition at line 49 of file EventControl.h.

◆ m_input1

TGLabel* dd4hep::EventControl::m_input1
private

Definition at line 47 of file EventControl.h.

◆ m_input2

TGLabel * dd4hep::EventControl::m_input2
private

Definition at line 47 of file EventControl.h.

◆ m_lines

Lines dd4hep::EventControl::m_lines
private

Definition at line 53 of file EventControl.h.

◆ m_next

TGPictureButton * dd4hep::EventControl::m_next
private

Definition at line 49 of file EventControl.h.

◆ m_numEvtFrame

TGCompositeFrame* dd4hep::EventControl::m_numEvtFrame
private

Definition at line 46 of file EventControl.h.

◆ m_numEvtLabel

TGLabel* dd4hep::EventControl::m_numEvtLabel
private

Definition at line 48 of file EventControl.h.

◆ m_open

TGPictureButton* dd4hep::EventControl::m_open
private

Definition at line 49 of file EventControl.h.

◆ m_prev

TGPictureButton * dd4hep::EventControl::m_prev
private

Definition at line 49 of file EventControl.h.


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