|
BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Event viewer using ROOT EVE framework. More...
#include <EventDisplay.hh>

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. | |
Event viewer using ROOT EVE framework.
Definition at line 34 of file EventDisplay.hh.
|
virtual |
Definition at line 86 of file EventDisplay.cc.
|
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().

| void EventDisplay::ClearEvent | ( | ) |
Clear a currently displayed event.
Definition at line 123 of file EventDisplay.cc.
| 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().

| void EventDisplay::DrawElossHits | ( | ) |
Draw energy loss deposits.
Definition at line 209 of file EventDisplay.cc.
References Event::Eloss.
Referenced by Draw().

| void EventDisplay::DrawModel | ( | ) |
Draw the geometry.
Definition at line 138 of file EventDisplay.cc.
References Model::model, and Options::options.
Referenced by Draw().

| void EventDisplay::DrawSamplers | ( | ) |
Draw hits on a sampler plane.
Definition at line 247 of file EventDisplay.cc.
References Model::model.
Referenced by Draw().

| void EventDisplay::DrawTrajectories | ( | ) |
Draw loaded trajectories.
Definition at line 275 of file EventDisplay.cc.
References Event::Trajectory.
Referenced by Draw().

| void EventDisplay::DrawTunnelHits | ( | ) |
Draw tunnel energy deposits.
Definition at line 224 of file EventDisplay.cc.
References BDSOutputROOTEventLoss::energy, and Event::TunnelHit.
Referenced by Draw().

|
static |
Singleton accessor / constructor w.r.t. a file.
Definition at line 56 of file EventDisplay.cc.
References EventDisplay(), and instance.

| void EventDisplay::LoadData | ( | int | iEvt | ) |
Load an entry in the event tree.
Definition at line 117 of file EventDisplay.cc.
Referenced by EventDisplay().

|
private |
Load the geometry from gdml file.
Definition at line 92 of file EventDisplay.cc.
Referenced by EventDisplay().

| void EventDisplay::LoadModel | ( | int | iMod | ) |
Load an entry from the model tree.
Definition at line 105 of file EventDisplay.cc.
Referenced by EventDisplay().

| void EventDisplay::LoadOptions | ( | int | iOpt | ) |
Load an entry from the options tree.
Definition at line 111 of file EventDisplay.cc.
Referenced by EventDisplay().

|
private |
Definition at line 88 of file EventDisplay.hh.
|
private |
Definition at line 90 of file EventDisplay.hh.
|
private |
Definition at line 91 of file EventDisplay.hh.
|
private |
Definition at line 92 of file EventDisplay.hh.
|
private |
Definition at line 87 of file EventDisplay.hh.
|
staticprivate |
|
private |
Definition at line 95 of file EventDisplay.hh.
|
private |
Definition at line 96 of file EventDisplay.hh.
|
private |
Definition at line 93 of file EventDisplay.hh.
|
private |
Definition at line 94 of file EventDisplay.hh.