![]() |
DD4hep
1.33.0
Detector Description Toolkit for High Energy Physics
|
Event input control for DDEve: Interface class for event I/O. More...
#include <EventControl.h>
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 *, Labels > | Line |
| typedef std::vector< Line > | Lines |
Private Attributes | |
| Display * | m_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... | |
Event input control for DDEve: Interface class for event I/O.
Definition at line 37 of file EventControl.h.
|
private |
Definition at line 50 of file EventControl.h.
|
private |
Definition at line 51 of file EventControl.h.
|
private |
Definition at line 52 of file EventControl.h.
|
private |
| Enumerator | |
|---|---|
| NUM_DATA_LINES | |
Definition at line 38 of file EventControl.h.
| dd4hep::EventControl::EventControl | ( | Display * | disp, |
| unsigned int | width, | ||
| unsigned int | height | ||
| ) |
Standard constructor.
|
virtual |
Default destructor.
Definition at line 50 of file EventControl.cpp.
|
overridevirtual |
Create the frame for this control structure. Default: create horizontal frame.
Reimplemented from dd4hep::FrameControl.
Definition at line 60 of file EventControl.cpp.
|
virtual |
Goto a specified event.
Definition at line 75 of file EventControl.cpp.
|
virtual |
Load the next event.
Definition at line 65 of file EventControl.cpp.
|
overridevirtual |
User callback to add elements to the control.
Reimplemented from dd4hep::FrameControl.
Definition at line 155 of file EventControl.cpp.
|
overridevirtual |
EventConsumer overload: New event data file.
Implements dd4hep::EventConsumer.
Definition at line 90 of file EventControl.cpp.
|
overridevirtual |
EventConsumer overload: New consumer event data.
Consumer event data.
Implements dd4hep::EventConsumer.
Definition at line 110 of file EventControl.cpp.
|
virtual |
Open a new event data file.
Definition at line 81 of file EventControl.cpp.
|
virtual |
Load the previous event.
Definition at line 70 of file EventControl.cpp.
|
private |
Definition at line 43 of file EventControl.h.
|
private |
Data frame.
Definition at line 42 of file EventControl.h.
|
private |
Refernece to the display object.
Definition at line 40 of file EventControl.h.
|
private |
Data frame.
Definition at line 45 of file EventControl.h.
|
private |
Definition at line 49 of file EventControl.h.
|
private |
Definition at line 47 of file EventControl.h.
|
private |
Definition at line 47 of file EventControl.h.
|
private |
Definition at line 53 of file EventControl.h.
|
private |
Definition at line 49 of file EventControl.h.
|
private |
Definition at line 46 of file EventControl.h.
|
private |
Definition at line 48 of file EventControl.h.
|
private |
Definition at line 49 of file EventControl.h.
|
private |
Definition at line 49 of file EventControl.h.
1.8.18