CMS 3D CMS Logo

EveService.h
Go to the documentation of this file.
1 #ifndef Fireworks_Geometry_EveService_h
2 #define Fireworks_Geometry_EveService_h
3 // -*- C++ -*-
4 //
5 // Package: Fireworks/Eve
6 // Class : EveService
7 //
16 //
17 // Original Author: Matevz Tadel
18 // Created: Fri Jun 25 18:56:52 CEST 2010
19 //
20 
21 #include <string>
22 #include <Rtypes.h>
23 
24 namespace edm {
25  class ParameterSet;
26  class ActivityRegistry;
27  class Run;
28  class Event;
29  class EventSetup;
30  class StreamContext;
31  class GlobalContext;
32 } // namespace edm
33 
34 class TEveManager;
35 class TEveElement;
36 class TEveMagField;
37 class TEveTrackPropagator;
38 class TRint;
39 
40 class TGTextButton;
41 class TGLabel;
42 
43 class EveService {
44 public:
46  virtual ~EveService();
47 
48  // ---------- const member functions ---------------------
49 
50  // ---------- static member functions --------------------
51 
52  // ---------- member functions ---------------------------
53 
54  void postBeginJob();
55  void postEndJob();
56 
57  void postGlobalBeginRun(edm::GlobalContext const&);
58 
59  void postEvent(edm::StreamContext const&);
60 
61  void display(const std::string& info = "");
62 
63  TEveManager* getManager();
64  TEveMagField* getMagField();
65  void setupFieldForPropagator(TEveTrackPropagator* prop);
66 
67  // Shortcuts for adding top level event and geometry elements.
68  void AddElement(TEveElement* el);
69  void AddGlobalElement(TEveElement* el);
70 
71  // GUI slots -- must be public so that ROOT can call them via CINT.
72 
73  void slotExit();
74  void slotNextEvent();
75  void slotStep();
76  void slotContinue();
77 
78 protected:
79  void createEventNavigationGUI();
80 
81 private:
82  EveService(const EveService&); // stop default
83  const EveService& operator=(const EveService&); // stop default
84 
85  // ---------- member data --------------------------------
86 
87  TEveManager* m_EveManager;
88  TRint* m_Rint;
89 
90  TEveMagField* m_MagField;
91 
94 
95  TGTextButton* m_ContinueButton;
96  TGTextButton* m_StepButton;
97  TGLabel* m_StepLabel;
98 
99  ClassDef(EveService, 0);
100 };
101 
102 #endif
EveService
For running on pre 3.6 files the current needed to determine the magnetic field is taken from Conditi...
Definition: testEve_cfg.py:35
static const TGPicture * info(bool iBackgroundIsBlack)
TGLabel * m_StepLabel
Definition: EveService.h:97
TGTextButton * m_ContinueButton
Definition: EveService.h:95
TGTextButton * m_StepButton
Definition: EveService.h:96
bool m_ShowEvent
Definition: EveService.h:93
TEveManager * m_EveManager
Definition: EveService.h:87
bool m_AllowStep
Definition: EveService.h:92
HLT enums.
TEveMagField * m_MagField
Definition: EveService.h:90
TRint * m_Rint
Definition: EveService.h:88