HepMC3 event record library
Public Member Functions | Private Attributes | Static Private Attributes
HepMC3ViewerFrame Class Reference

Definition of class HepMC3ViewerFrame used for simple GUI viewer. More...

#include <HepMC3ViewerFrame.h>

+ Inheritance diagram for HepMC3ViewerFrame:
+ Collaboration diagram for HepMC3ViewerFrame:

Public Member Functions

void ReadFile (const char *a)
 Open file. More...
 
 HepMC3ViewerFrame (const TGWindow *p, UInt_t w, UInt_t h)
 Constructor. More...
 
virtual ~HepMC3ViewerFrame ()
 Destructor. More...
 
void DrawEvent ()
 Draw evemt. More...
 
void DoAnalysis ()
 Do analysis. More...
 
void NextEvent ()
 slot More...
 
void PreviousEvent ()
 slot More...
 
void ClearEventCache ()
 slot More...
 
void ChooseInput ()
 slot More...
 

Private Attributes

TGCompositeFrame * fMainFrame
 Main frame. More...
 
TGCompositeFrame * fButtonFrame
 Button frame. More...
 
TGTextButton * fNextEvent
 Button. More...
 
TGTextButton * fPreviousEvent
 Button. More...
 
TGTextButton * fExit
 Button. More...
 
TGTextButton * fChooseInput
 Button. More...
 
TGTextButton * fClearEventCache
 Button. More...
 
TRootEmbeddedCanvas * fEmbEventImageCanvas
 Event canvas. More...
 
TRootEmbeddedCanvas * fEmbAnalysisCanvas
 Analysis canvas. More...
 
std::shared_ptr< HepMC3::ReaderfReader
 Reader. More...
 
HepMC3::GenEventfCurrentEvent
 Event. More...
 
std::vector< HepMC3::GenEvent * > fEventsCache
 Cache of events. More...
 
TCanvas * fEventImageCanvas
 Event canvas. More...
 
TCanvas * fAnalysisCanvas
 Analysis canvas. More...
 
TImage * fGraphImage
 Image passed from graphviz. More...
 
std::map< std::string, TH1 * > fAnalysisH
 Analysis histograms. More...
 

Static Private Attributes

static const size_t m_char_buffer_size =100000
 Size of writer buffer. More...
 

Detailed Description

Definition of class HepMC3ViewerFrame used for simple GUI viewer.

Definition of class HepMC3ViewerFrame.

Definition at line 34 of file HepMC3ViewerFrame.h.

Constructor & Destructor Documentation

HepMC3ViewerFrame ( const TGWindow *  p,
UInt_t  w,
UInt_t  h 
)
~HepMC3ViewerFrame ( )
virtual

Destructor.

Definition at line 330 of file HepMC3ViewerFrame.cc.

References fMainFrame, and fReader.

Member Function Documentation

void ChooseInput ( )

slot

Definition at line 261 of file HepMC3ViewerFrame.cc.

References HepMC3::deduce_reader(), and fReader.

void ClearEventCache ( )

slot

Definition at line 219 of file HepMC3ViewerFrame.cc.

References fCurrentEvent, and fEventsCache.

void DoAnalysis ( )

Do analysis.

Definition at line 165 of file HepMC3ViewerFrame.cc.

References fAnalysisCanvas, fAnalysisH, fCurrentEvent, fEmbAnalysisCanvas, and GenEvent::particles().

void DrawEvent ( )
void NextEvent ( )

slot

Definition at line 239 of file HepMC3ViewerFrame.cc.

References DrawEvent(), fCurrentEvent, fEventsCache, and fReader.

void PreviousEvent ( )

slot

Definition at line 225 of file HepMC3ViewerFrame.cc.

References DrawEvent(), fCurrentEvent, and fEventsCache.

void ReadFile ( const char *  a)

Open file.

Definition at line 235 of file HepMC3ViewerFrame.cc.

References HepMC3::deduce_reader(), and fReader.

Field Documentation

TCanvas* fAnalysisCanvas
private

Analysis canvas.

Definition at line 50 of file HepMC3ViewerFrame.h.

std::map<std::string, TH1*> fAnalysisH
private

Analysis histograms.

Definition at line 52 of file HepMC3ViewerFrame.h.

TGCompositeFrame* fButtonFrame
private

Button frame.

Definition at line 38 of file HepMC3ViewerFrame.h.

TGTextButton* fChooseInput
private

Button.

Definition at line 42 of file HepMC3ViewerFrame.h.

TGTextButton* fClearEventCache
private

Button.

Definition at line 43 of file HepMC3ViewerFrame.h.

HepMC3::GenEvent* fCurrentEvent
private

Event.

Definition at line 47 of file HepMC3ViewerFrame.h.

TRootEmbeddedCanvas* fEmbAnalysisCanvas
private

Analysis canvas.

Definition at line 45 of file HepMC3ViewerFrame.h.

TRootEmbeddedCanvas* fEmbEventImageCanvas
private

Event canvas.

Definition at line 44 of file HepMC3ViewerFrame.h.

TCanvas* fEventImageCanvas
private

Event canvas.

Definition at line 49 of file HepMC3ViewerFrame.h.

std::vector<HepMC3::GenEvent*> fEventsCache
private

Cache of events.

Definition at line 48 of file HepMC3ViewerFrame.h.

TGTextButton* fExit
private

Button.

Definition at line 41 of file HepMC3ViewerFrame.h.

TImage* fGraphImage
private

Image passed from graphviz.

Definition at line 51 of file HepMC3ViewerFrame.h.

TGCompositeFrame* fMainFrame
private

Main frame.

Definition at line 37 of file HepMC3ViewerFrame.h.

TGTextButton* fNextEvent
private

Button.

Definition at line 39 of file HepMC3ViewerFrame.h.

TGTextButton* fPreviousEvent
private

Button.

Definition at line 40 of file HepMC3ViewerFrame.h.

std::shared_ptr<HepMC3::Reader> fReader
private

Reader.

Definition at line 46 of file HepMC3ViewerFrame.h.

const size_t m_char_buffer_size =100000
staticprivate

Size of writer buffer.

Definition at line 53 of file HepMC3ViewerFrame.h.


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