DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
The main class of the DDEve display. More...
#include <Display.h>
Classes | |
struct | CalodataContext |
Calorimeter data context for the DDEve event display. More... | |
Public Types | |
typedef DisplayConfiguration::ViewConfig | ViewConfig |
typedef DisplayConfiguration::Config | DataConfig |
typedef std::set< View * > | Views |
typedef std::set< DisplayConfiguration * > | Configurations |
typedef std::set< PopupMenu * > | Menus |
typedef std::map< std::string, TEveElementList * > | Topics |
typedef std::map< std::string, ViewConfig > | ViewConfigurations |
typedef std::map< std::string, DataConfig > | DataConfigurations |
typedef std::map< std::string, CalodataContext > | Calodata |
Public Member Functions | |
Display (TEveManager *eve) | |
Standard constructor. More... | |
virtual | ~Display () |
Default destructor. More... | |
Detector & | detectorDescription () const |
Access to geometry hub. More... | |
TEveManager & | manager () const |
Access to the EVE manager. More... | |
const ViewConfigurations & | viewConfigurations () const |
Access View configurations. More... | |
void | setVisLevel (int new_level) |
Set Vis level in geo manager (either from XML or BEFORE XML file was loaded) More... | |
void | setLoadLevel (int new_level) |
Set Eve Geometry load level in manager (either from XML or BEFORE XML file was loaded) More... | |
std::string | getEventHandlerName () |
Get Event Handler Plugin name. More... | |
void | setEventHandlerName (const std::string &nam) |
Set Event Handler Plugin name. More... | |
TGClient & | client () const |
Access to X-client. More... | |
void | ChooseGeometry () |
Load geometry with panel. More... | |
void | LoadXML (const char *xmlFile) |
Load geometry from compact xml file. More... | |
void | LoadGeometryRoot (const char *rootFile) |
Load geometry from compact xml file. More... | |
TFile * | Open (const char *rootFile) const |
Open ROOT file. More... | |
GenericEventHandler & | eventHandler () const |
Access to the event reader. More... | |
void | MessageBox (PrintLevel level, const std::string &text, const std::string &title="") const |
Open standard message box. More... | |
std::string | OpenXmlFileDialog (const std::string &default_dir) const |
Popup XML file chooser. returns chosen file name; empty on cancel. More... | |
std::string | OpenEventFileDialog (const std::string &default_dir) const |
Popup ROOT file chooser. returns chosen file name; empty on cancel. More... | |
void | LoadGeoChildren (TEveElement *start, int levels, bool redraw) |
Load 'levels' Children into the geometry scene. More... | |
void | MakeNodesVisible (TEveElement *e, bool visible, int level) |
Make a set of nodes starting from a top element (in-)visible with a given depth. More... | |
void | ImportConfiguration (const DisplayConfiguration &config) |
Import configuration parameters. More... | |
const ViewConfig * | GetViewConfiguration (const std::string &name) const |
Access a data filter by name. Data filters are used to customize views. More... | |
const DataConfig * | GetCalodataConfiguration (const std::string &name) const |
Access a data filter by name. Data filters are used to customize views. More... | |
CalodataContext & | GetCaloHistogram (const std::string &name) |
Access to calo data histograms by name as defined in the configuration. More... | |
virtual void | RegisterEvents (View *view) |
Register to the main event scene on new events. More... | |
virtual void | UnregisterEvents (View *view) |
Unregister from the main event scene. More... | |
TEveElementList & | GetGeo () |
Access / Create global geometry element. More... | |
virtual TEveElementList & | GetGeoTopic (const std::string &name) |
Access/Create an geometry topic by name. More... | |
virtual TEveElementList & | GetGeoTopic (const std::string &name) const |
Access/Create an geometry topic by name. Throws exception if the topic does not exist. More... | |
void | ImportGeo (TEveElement *el) |
Call to import geometry elements. More... | |
void | ImportGeo (const std::string &topic, TEveElement *el) |
Call to import geometry elements by topic. More... | |
virtual TEveElementList & | GetEveTopic (const std::string &name) |
Access/Create an event topic by name. More... | |
virtual TEveElementList & | GetEveTopic (const std::string &name) const |
Access/Create an event topic by name. Throws exception if the topic does not exist. More... | |
void | ImportEvent (TEveElement *el) |
Call to import top level event elements. More... | |
void | ImportEvent (const std::string &topic, TEveElement *el) |
Call to import event elements by topic. More... | |
virtual void | OnFileOpen (EventHandler &handler) override |
Consumer overload: open file. More... | |
virtual void | OnNewEvent (EventHandler &handler) override |
EventConsumer overload: Consumer event data. More... | |
virtual void | BuildMenus (TGMenuBar *menuBar=0) |
Build the DDEve specific menues. Default bar is the ROOT browser's bar. More... | |
virtual void | AddMenu (TGMenuBar *menuBar, PopupMenu *menu, int hints=kLHintsNormal) |
Add new menu to the main menu bar. More... | |
ClassDefOverride (Display, 0) | |
Public Member Functions inherited from dd4hep::EventConsumer | |
EventConsumer ()=default | |
Standard constructor. More... | |
virtual | ~EventConsumer () |
Default destructor. More... | |
ClassDef (EventConsumer, 0) | |
Protected Attributes | |
TEveManager * | m_eve = 0 |
Reference to TEve manager. More... | |
Detector * | m_detDesc = 0 |
Reference to geometry hub. More... | |
GenericEventHandler * | m_evtHandler = 0 |
Reference to the event reader object. More... | |
TEveElementList * | m_geoGlobal = 0 |
Geometry item element list. More... | |
TEveElementList * | m_eveGlobal = 0 |
Event item element list. More... | |
ViewMenu * | m_viewMenu |
Reference to the view menu. More... | |
DD4hepMenu * | m_dd4Menu |
Reference to the specialized ddeve menu. More... | |
Topics | m_geoTopics |
Geometry data topics. More... | |
Topics | m_eveTopics |
Event data topics. More... | |
Views | m_eveViews |
Container with configured event views. More... | |
Menus | m_menus |
Container with top level menues. More... | |
ViewConfigurations | m_viewConfigs |
Container with view configurations. More... | |
DataConfigurations | m_calodataConfigs |
Container with calorimeter data display configurations. More... | |
DataConfigurations | m_collectionsConfigs |
Container with non-calorimeter data display configurations. More... | |
Calodata | m_calodata |
Container with calorimeter data (projections) More... | |
int | m_visLevel |
TGeoManager visualisation level. More... | |
int | m_loadLevel |
Load level for the eve geometry. More... | |
std::string | m_eventHandlerName |
Name of the event handler plugin. More... | |
typedef std::map<std::string, CalodataContext> dd4hep::Display::Calodata |
typedef std::set<DisplayConfiguration*> dd4hep::Display::Configurations |
typedef std::map<std::string, DataConfig> dd4hep::Display::DataConfigurations |
typedef std::set<PopupMenu*> dd4hep::Display::Menus |
typedef std::map<std::string, TEveElementList*> dd4hep::Display::Topics |
typedef std::map<std::string, ViewConfig> dd4hep::Display::ViewConfigurations |
typedef std::set<View*> dd4hep::Display::Views |
Display::Display | ( | TEveManager * | eve | ) |
Standard constructor.
Definition at line 88 of file Display.cpp.
|
virtual |
Default destructor.
Definition at line 111 of file Display.cpp.
|
virtual |
Add new menu to the main menu bar.
Definition at line 176 of file Display.cpp.
|
virtual |
Build the DDEve specific menues. Default bar is the ROOT browser's bar.
Build the DDEve specific menues.
Definition at line 333 of file Display.cpp.
void Display::ChooseGeometry | ( | ) |
Load geometry with panel.
Definition at line 153 of file Display.cpp.
dd4hep::Display::ClassDefOverride | ( | Display | , |
0 | |||
) |
TGClient & Display::client | ( | ) | const |
Access to X-client.
Definition at line 163 of file Display.cpp.
Detector & Display::detectorDescription | ( | ) | const |
Access to geometry hub.
Definition at line 158 of file Display.cpp.
GenericEventHandler & Display::eventHandler | ( | ) | const |
Access to the event reader.
Definition at line 168 of file Display.cpp.
const Display::DataConfig * Display::GetCalodataConfiguration | ( | const std::string & | name | ) | const |
Access a data filter by name. Data filters are used to customize views.
Access a data filter by name. Data filters are used to customize calodatas.
Definition at line 253 of file Display.cpp.
Display::CalodataContext & Display::GetCaloHistogram | ( | const std::string & | name | ) |
Access to calo data histograms by name as defined in the configuration.
Definition at line 196 of file Display.cpp.
|
inline |
|
virtual |
Access/Create an event topic by name.
Access/Create a topic by name.
Definition at line 486 of file Display.cpp.
|
virtual |
Access/Create an event topic by name. Throws exception if the topic does not exist.
Access/Create a topic by name. Throws exception if the topic does not exist.
Definition at line 498 of file Display.cpp.
TEveElementList & Display::GetGeo | ( | ) |
Access / Create global geometry element.
Definition at line 456 of file Display.cpp.
|
virtual |
Access/Create an geometry topic by name.
Access/Create a topic by name.
Definition at line 465 of file Display.cpp.
|
virtual |
Access/Create an geometry topic by name. Throws exception if the topic does not exist.
Access/Create a topic by name. Throws exception if the topic does not exist.
Definition at line 477 of file Display.cpp.
const Display::ViewConfig * Display::GetViewConfiguration | ( | const std::string & | name | ) | const |
Access a data filter by name. Data filters are used to customize views.
Definition at line 247 of file Display.cpp.
void Display::ImportConfiguration | ( | const DisplayConfiguration & | config | ) |
Import configuration parameters.
Definition at line 183 of file Display.cpp.
void Display::ImportEvent | ( | const std::string & | topic, |
TEveElement * | el | ||
) |
Call to import event elements by topic.
Definition at line 517 of file Display.cpp.
void Display::ImportEvent | ( | TEveElement * | el | ) |
Call to import top level event elements.
Definition at line 522 of file Display.cpp.
void Display::ImportGeo | ( | const std::string & | topic, |
TEveElement * | el | ||
) |
Call to import geometry elements by topic.
Definition at line 512 of file Display.cpp.
void Display::ImportGeo | ( | TEveElement * | el | ) |
Call to import geometry elements.
Definition at line 507 of file Display.cpp.
void Display::LoadGeoChildren | ( | TEveElement * | start, |
int | levels, | ||
bool | redraw | ||
) |
Load 'levels' Children into the geometry scene.
Definition at line 527 of file Display.cpp.
void Display::LoadGeometryRoot | ( | const char * | rootFile | ) |
Load geometry from compact xml file.
Definition at line 148 of file Display.cpp.
void Display::LoadXML | ( | const char * | xmlFile | ) |
Load geometry from compact xml file.
Definition at line 131 of file Display.cpp.
void Display::MakeNodesVisible | ( | TEveElement * | e, |
bool | visible, | ||
int | level | ||
) |
Make a set of nodes starting from a top element (in-)visible with a given depth.
Definition at line 591 of file Display.cpp.
|
inline |
void Display::MessageBox | ( | PrintLevel | level, |
const std::string & | text, | ||
const std::string & | title = "" |
||
) | const |
Open standard message box.
Definition at line 272 of file Display.cpp.
|
overridevirtual |
Consumer overload: open file.
Consumer event data.
Implements dd4hep::EventConsumer.
Definition at line 355 of file Display.cpp.
|
overridevirtual |
EventConsumer overload: Consumer event data.
Consumer event data.
We absolutely want to import the particles as the last elements, otherwise they end up under the hits and are close to invisible
Implements dd4hep::EventConsumer.
Definition at line 359 of file Display.cpp.
TFile * Display::Open | ( | const char * | rootFile | ) | const |
Open ROOT file.
Definition at line 348 of file Display.cpp.
std::string Display::OpenEventFileDialog | ( | const std::string & | default_dir | ) | const |
Popup ROOT file chooser. returns chosen file name; empty on cancel.
Definition at line 313 of file Display.cpp.
std::string Display::OpenXmlFileDialog | ( | const std::string & | default_dir | ) | const |
Popup XML file chooser. returns chosen file name; empty on cancel.
Definition at line 292 of file Display.cpp.
|
virtual |
Register to the main event scene on new events.
Definition at line 259 of file Display.cpp.
|
inline |
|
inline |
|
inline |
|
virtual |
Unregister from the main event scene.
Definition at line 264 of file Display.cpp.
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |