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 EventDisplayInstance ()
 Singleton accessor.
 
static EventDisplayInstance (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 = ""
 
DataLoaderdataLoader = nullptr
 
Eventevent = nullptr
 
TChain * eventTree = nullptr
 
Optionsoptions = nullptr
 
TChain * optionsTree = nullptr
 
Modelmodel = nullptr
 
TChain * modelTree = nullptr
 

Static Private Attributes

static EventDisplayinstance
 Singleton instance.
 

Detailed Description

Event viewer using ROOT EVE framework.

Author
Stewart Boogert

Definition at line 34 of file EventDisplay.hh.

Constructor & Destructor Documentation

◆ ~EventDisplay()

EventDisplay::~EventDisplay ( )
virtual

Definition at line 86 of file EventDisplay.cc.

◆ EventDisplay()

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

Supplied constructor for loading a file.

Definition at line 63 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 123 of file EventDisplay.cc.

◆ Draw()

void EventDisplay::Draw ( )

Draw all things loaded at this point.

Definition at line 129 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 209 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 138 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 247 of file EventDisplay.cc.

References Model::model, and Event::Samplers.

Referenced by Draw().

Here is the caller graph for this function:

◆ DrawTrajectories()

void EventDisplay::DrawTrajectories ( )

Draw loaded trajectories.

Definition at line 275 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 224 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 56 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 117 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 92 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 105 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 111 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 88 of file EventDisplay.hh.

◆ dataLoader

DataLoader* EventDisplay::dataLoader = nullptr
private

Definition at line 90 of file EventDisplay.hh.

◆ event

Event* EventDisplay::event = nullptr
private

Definition at line 91 of file EventDisplay.hh.

◆ eventTree

TChain* EventDisplay::eventTree = nullptr
private

Definition at line 92 of file EventDisplay.hh.

◆ geoFileName

TString EventDisplay::geoFileName = ""
private

Definition at line 87 of file EventDisplay.hh.

◆ instance

EventDisplay* EventDisplay::instance
staticprivate

Singleton instance.

Definition at line 99 of file EventDisplay.hh.

Referenced by Instance().

◆ model

Model* EventDisplay::model = nullptr
private

Definition at line 95 of file EventDisplay.hh.

◆ modelTree

TChain* EventDisplay::modelTree = nullptr
private

Definition at line 96 of file EventDisplay.hh.

◆ options

Options* EventDisplay::options = nullptr
private

Definition at line 93 of file EventDisplay.hh.

◆ optionsTree

TChain* EventDisplay::optionsTree = nullptr
private

Definition at line 94 of file EventDisplay.hh.


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