Belle II Software  release-05-02-19
DisplayModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Christian Pulvermacher *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef DISPLAYMODULE_H
12 #define DISPLAYMODULE_H
13 
14 #include <framework/core/Module.h>
15 
16 #include <string>
17 
18 
19 namespace Belle2 {
24  class DisplayUI;
25  class EVEVisualization;
26 
41  class DisplayModule : public Module {
42  public:
44  DisplayModule();
45 
47  void initialize() override;
48 
50  void event() override;
51 
53  void terminate() override;
54 
55  private:
57  std::string m_options;
58 
60  bool m_showMCInfo;
61 
64 
66  bool m_showAllPrimaries;
67 
69  bool m_hideSecondaries;
70 
72  bool m_showCharged;
73 
75  bool m_showNeutrals;
76 
79 
81  bool m_showRecoTracks;
82 
84  bool m_showCDCHits;
85 
88 
90  bool m_showBKLM2dHits;
91 
93  bool m_showEKLM2dHits;
94 
96  bool m_showARICHHits;
97 
99  bool m_automatic;
100 
102  bool m_fullGeometry;
103 
105  std::vector<std::string> m_hideObjects;
106 
108  std::string m_customGeometryExtractPath;
109 
111  std::vector<std::string> m_hideVolumes;
112 
114  std::vector<std::string> m_deleteVolumes;
115 
117  DisplayUI* m_display;
118 
120  EVEVisualization* m_visualizer;
121  };
123 }
124 
125 #endif
Belle2::DisplayModule::m_hideSecondaries
bool m_hideSecondaries
If true, secondary MCParticles (and hits created by them) will not be shown.
Definition: DisplayModule.h:77
Belle2::DisplayModule::terminate
void terminate() override
Terminate gEve to avoid problems with root's cleanup.
Definition: DisplayModule.cc:332
Belle2::DisplayModule::m_deleteVolumes
std::vector< std::string > m_deleteVolumes
List of volumes to be deleted.
Definition: DisplayModule.h:122
Belle2::DisplayModule::m_visualizer
EVEVisualization * m_visualizer
Pointer to visualizer.
Definition: DisplayModule.h:128
Belle2::DisplayModule::m_showRecoTracks
bool m_showRecoTracks
Whether to show RecoTracks.
Definition: DisplayModule.h:89
Belle2::DisplayModule::m_showCharged
bool m_showCharged
If true, all charged primary and secondary MCParticles will be shown, regardless of wether hits are p...
Definition: DisplayModule.h:80
Belle2::DisplayModule::m_assignToPrimaries
bool m_assignToPrimaries
If true, hits created by secondary particles (e.g.
Definition: DisplayModule.h:71
Belle2::DisplayModule::m_showTrackLevelObjects
bool m_showTrackLevelObjects
If true, fitted RecoTracks, GFRave Vertices and ECLGamma objects will be shown in the display.
Definition: DisplayModule.h:86
Belle2::DisplayModule::m_display
DisplayUI * m_display
pointer to actual display
Definition: DisplayModule.h:125
Belle2::DisplayModule::m_hideVolumes
std::vector< std::string > m_hideVolumes
List of volumes to be hidden (can be re-enabled in Eve panel / Geometry scene.
Definition: DisplayModule.h:119
Belle2::DisplayModule::m_showCDCHits
bool m_showCDCHits
If true, CDCHit objects will be shown as drift cylinders (shortened, z position set to zero).
Definition: DisplayModule.h:92
Belle2::DisplayModule::event
void event() override
Show various reconstructed or simulated objects in the event viewer until the next event is requested...
Definition: DisplayModule.cc:153
Belle2::DisplayModule::initialize
void initialize() override
Sets up geometry if needed.
Definition: DisplayModule.cc:84
Belle2::DisplayModule::m_showAllPrimaries
bool m_showAllPrimaries
If true, all primary MCParticles will be shown, regardless of wether hits are produced.
Definition: DisplayModule.h:74
Belle2::DisplayModule::m_showEKLM2dHits
bool m_showEKLM2dHits
If true, EKLMHit2d objects will be shown in the display.
Definition: DisplayModule.h:101
Belle2::DisplayModule::m_showARICHHits
bool m_showARICHHits
If true, ARICHHit objects will be shown as squares, corresponding to channel pixels.
Definition: DisplayModule.h:104
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::DisplayModule::m_fullGeometry
bool m_fullGeometry
Show full geometry instead of simplified shapes.
Definition: DisplayModule.h:110
Belle2::DisplayModule::DisplayModule
DisplayModule()
Constructor. Sets all the module parameters.
Definition: DisplayModule.cc:27
Belle2::DisplayModule::m_showBKLM2dHits
bool m_showBKLM2dHits
If true, BKLMHit objects will be shown in the display.
Definition: DisplayModule.h:98
Belle2::DisplayModule::m_customGeometryExtractPath
std::string m_customGeometryExtractPath
Path to custom file with geometry extract.
Definition: DisplayModule.h:116
Belle2::DisplayModule::m_showTriggerObjects
bool m_showTriggerObjects
If true, CDCHit objects will be assigned to trigger segments and trigger tracks will be shown.
Definition: DisplayModule.h:95
Belle2::DisplayModule::m_options
std::string m_options
List of drawing options, see EVEVisualization::setOptions()
Definition: DisplayModule.h:65
Belle2::DisplayModule::m_automatic
bool m_automatic
Non-interactively save visualizations for each event.
Definition: DisplayModule.h:107
Belle2::DisplayModule::m_showMCInfo
bool m_showMCInfo
Show Monte Carlo information (MCParticles, SimHits).
Definition: DisplayModule.h:68
Belle2::DisplayModule::m_showNeutrals
bool m_showNeutrals
If true, all neutral primary and secondary MCParticles will be shown, regardless of wether hits are p...
Definition: DisplayModule.h:83
Belle2::DisplayModule::m_hideObjects
std::vector< std::string > m_hideObjects
objects which are to be hidden (can be manually re-enabled in tree view).
Definition: DisplayModule.h:113