BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
EventDisplay Class Reference

Event viewer using ROOT EVE framework. More...

#include <EventDisplay.hh>

Collaboration diagram for EventDisplay:
Collaboration graph

Public Member Functions

void LoadModel (int iMod)
 Load an entry from the model tree.
 
void LoadOptions (int iOpt)
 Load an entry from the options tree.
 
void LoadData (int iEvt)
 Load an entry in the event tree.
 
void ClearEvent ()
 Clear a currently displayed event.
 
void Draw ()
 Draw all things loaded at this point.
 
void DrawModel ()
 Draw the geometry.
 
void DrawElossHits ()
 Draw energy loss deposits.
 
void DrawTunnelHits ()
 Draw tunnel energy deposits.
 
void DrawSamplers ()
 Draw hits on a sampler plane.
 
void DrawTrajectories ()
 Draw loaded trajectories.
 

Static Public Member Functions

static EventDisplay * Instance ()
 Singleton accessor.
 
static EventDisplay * Instance (TString geoFileName, TString dataFileName)
 Singleton accessor / constructor w.r.t. a file.
 

Private Member Functions

 EventDisplay ()
 Private default constructor as singleton pattern.
 
 EventDisplay (TString geoFileNameIn, TString dataFileNameIn)
 Supplied constructor for loading a file.
 
void LoadGeometry ()
 Load the geometry from gdml file.
 
 ClassDef (EventDisplay, 1)
 

Private Attributes

TString geoFileName = ""
 
TString dataFileName = ""
 
DataLoader * dataLoader = nullptr
 
Event * event = nullptr
 
TChain * eventTree = nullptr
 
Options * options = nullptr
 
TChain * optionsTree = nullptr
 
Model * model = nullptr
 
TChain * modelTree = nullptr
 

Static Private Attributes

static EventDisplay * instance
 Singleton instance.
 

Detailed Description

Event viewer using ROOT EVE framework.

Author
Stewart Boogert

Definition at line 33 of file EventDisplay.hh.

Constructor & Destructor Documentation

◆ ~EventDisplay()

EventDisplay::~EventDisplay ( )
virtual

Definition at line 85 of file EventDisplay.cc.

◆ EventDisplay()

EventDisplay::EventDisplay ( TString  geoFileNameIn,
TString  dataFileNameIn 
)
private

Supplied constructor for loading a file.

Definition at line 62 of file EventDisplay.cc.

References DataLoader::GetEvent(), DataLoader::GetEventTree(), DataLoader::GetModel(), DataLoader::GetModelTree(), DataLoader::GetOptions(), DataLoader::GetOptionsTree(), LoadData(), LoadGeometry(), LoadModel(), and LoadOptions().

Here is the call graph for this function:

Member Function Documentation

◆ ClearEvent()

void EventDisplay::ClearEvent ( )

Clear a currently displayed event.

Definition at line 122 of file EventDisplay.cc.

◆ Draw()

void EventDisplay::Draw ( )

Draw all things loaded at this point.

Definition at line 128 of file EventDisplay.cc.

References DrawElossHits(), DrawModel(), DrawSamplers(), DrawTrajectories(), and DrawTunnelHits().

Here is the call graph for this function:

◆ DrawElossHits()

void EventDisplay::DrawElossHits ( )

Draw energy loss deposits.

Definition at line 208 of file EventDisplay.cc.

References Event::Eloss.

Referenced by Draw().

Here is the caller graph for this function:

◆ DrawModel()

void EventDisplay::DrawModel ( )

Draw the geometry.

Definition at line 137 of file EventDisplay.cc.

References Model::model, and Options::options.

Referenced by Draw().

Here is the caller graph for this function:

◆ DrawSamplers()

void EventDisplay::DrawSamplers ( )

Draw hits on a sampler plane.

Definition at line 246 of file EventDisplay.cc.

References Model::model.

Referenced by Draw().

Here is the caller graph for this function:

◆ DrawTrajectories()

void EventDisplay::DrawTrajectories ( )

Draw loaded trajectories.

Definition at line 274 of file EventDisplay.cc.

References Event::Trajectory.

Referenced by Draw().

Here is the caller graph for this function:

◆ DrawTunnelHits()

void EventDisplay::DrawTunnelHits ( )

Draw tunnel energy deposits.

Definition at line 223 of file EventDisplay.cc.

References BDSOutputROOTEventLoss::energy, and Event::TunnelHit.

Referenced by Draw().

Here is the caller graph for this function:

◆ Instance()

EventDisplay * EventDisplay::Instance ( TString  geoFileName,
TString  dataFileName 
)
static

Singleton accessor / constructor w.r.t. a file.

Definition at line 55 of file EventDisplay.cc.

References EventDisplay(), and instance.

Here is the call graph for this function:

◆ LoadData()

void EventDisplay::LoadData ( int  iEvt)

Load an entry in the event tree.

Definition at line 116 of file EventDisplay.cc.

Referenced by EventDisplay().

Here is the caller graph for this function:

◆ LoadGeometry()

void EventDisplay::LoadGeometry ( )
private

Load the geometry from gdml file.

Definition at line 91 of file EventDisplay.cc.

Referenced by EventDisplay().

Here is the caller graph for this function:

◆ LoadModel()

void EventDisplay::LoadModel ( int  iMod)

Load an entry from the model tree.

Definition at line 104 of file EventDisplay.cc.

Referenced by EventDisplay().

Here is the caller graph for this function:

◆ LoadOptions()

void EventDisplay::LoadOptions ( int  iOpt)

Load an entry from the options tree.

Definition at line 110 of file EventDisplay.cc.

Referenced by EventDisplay().

Here is the caller graph for this function:

Field Documentation

◆ dataFileName

TString EventDisplay::dataFileName = ""
private

Definition at line 87 of file EventDisplay.hh.

◆ dataLoader

DataLoader* EventDisplay::dataLoader = nullptr
private

Definition at line 89 of file EventDisplay.hh.

◆ event

Event* EventDisplay::event = nullptr
private

Definition at line 90 of file EventDisplay.hh.

◆ eventTree

TChain* EventDisplay::eventTree = nullptr
private

Definition at line 91 of file EventDisplay.hh.

◆ geoFileName

TString EventDisplay::geoFileName = ""
private

Definition at line 86 of file EventDisplay.hh.

◆ instance

EventDisplay* EventDisplay::instance
staticprivate

Singleton instance.

Definition at line 98 of file EventDisplay.hh.

Referenced by Instance().

◆ model

Model* EventDisplay::model = nullptr
private

Definition at line 94 of file EventDisplay.hh.

◆ modelTree

TChain* EventDisplay::modelTree = nullptr
private

Definition at line 95 of file EventDisplay.hh.

◆ options

Options* EventDisplay::options = nullptr
private

Definition at line 92 of file EventDisplay.hh.

◆ optionsTree

TChain* EventDisplay::optionsTree = nullptr
private

Definition at line 93 of file EventDisplay.hh.


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