CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: EveService.h,v 1.5 2010/07/15 13:02:02 matevz Exp $
20 //
21 
22 #include <string>
23 #include <Rtypes.h>
24 
25 namespace edm
26 {
27  class ParameterSet;
28  class ActivityRegistry;
29  class Run;
30  class Event;
31  class EventSetup;
32 }
33 
34 class TEveManager;
35 class TEveElement;
36 class TEveMagField;
37 class TEveTrackPropagator;
38 class TRint;
39 
40 class TGTextButton;
41 class TGLabel;
42 
44 {
45 public:
47  virtual ~EveService();
48 
49  // ---------- const member functions ---------------------
50 
51  // ---------- static member functions --------------------
52 
53  // ---------- member functions ---------------------------
54 
55  void postBeginJob();
56  void postEndJob();
57 
58  void postBeginRun(const edm::Run&, const edm::EventSetup&);
59 
60  void postProcessEvent(const edm::Event&, const edm::EventSetup&);
61 
62  void display(const std::string& info="");
63 
64  TEveManager* getManager();
65  TEveMagField* getMagField();
66  void setupFieldForPropagator(TEveTrackPropagator* prop);
67 
68  // Shortcuts for adding top level event and geometry elements.
69  void AddElement(TEveElement* el);
70  void AddGlobalElement(TEveElement* el);
71 
72  // GUI slots -- must be public so that ROOT can call them via CINT.
73 
74  void slotExit();
75  void slotNextEvent();
76  void slotStep();
77  void slotContinue();
78 
79 protected:
81 
82 private:
83  EveService(const EveService&); // stop default
84  const EveService& operator=(const EveService&); // stop default
85 
86  // ---------- member data --------------------------------
87 
88  TEveManager *m_EveManager;
89  TRint *m_Rint;
90 
91  TEveMagField *m_MagField;
92 
95 
96  TGTextButton *m_ContinueButton;
97  TGTextButton *m_StepButton;
98  TGLabel *m_StepLabel;
99 
100  ClassDef(EveService, 0);
101 };
102 
103 #endif
void postBeginJob()
Definition: EveService.cc:173
TGLabel * m_StepLabel
Definition: EveService.h:98
void slotContinue()
Definition: EveService.cc:372
EveService(const edm::ParameterSet &, edm::ActivityRegistry &)
Definition: EveService.cc:120
void postProcessEvent(const edm::Event &, const edm::EventSetup &)
Definition: EveService.cc:223
void postEndJob()
Definition: EveService.cc:181
TGTextButton * m_ContinueButton
Definition: EveService.h:96
void slotExit()
Definition: EveService.cc:351
const EveService & operator=(const EveService &)
TEveMagField * getMagField()
Definition: EveService.cc:269
TGTextButton * m_StepButton
Definition: EveService.h:97
void slotStep()
Definition: EveService.cc:378
void display(const std::string &info="")
Definition: EveService.cc:244
bool m_ShowEvent
Definition: EveService.h:94
ClassDef(EveService, 0)
TEveManager * getManager()
Definition: EveService.cc:263
TEveManager * m_EveManager
Definition: EveService.h:88
void createEventNavigationGUI()
Definition: EveService.cc:315
void setupFieldForPropagator(TEveTrackPropagator *prop)
Definition: EveService.cc:273
bool m_AllowStep
Definition: EveService.h:93
void AddElement(TEveElement *el)
Definition: EveService.cc:282
virtual ~EveService()
Definition: EveService.cc:161
void slotNextEvent()
Definition: EveService.cc:365
void postBeginRun(const edm::Run &, const edm::EventSetup &)
Definition: EveService.cc:190
TEveMagField * m_MagField
Definition: EveService.h:91
void AddGlobalElement(TEveElement *el)
Definition: EveService.cc:287
TRint * m_Rint
Definition: EveService.h:89
Definition: Run.h:36