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 
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:
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::m_ShowEvent
bool m_ShowEvent
Definition: EveService.h:93
ActivityRegistry
EveService::setupFieldForPropagator
void setupFieldForPropagator(TEveTrackPropagator *prop)
Definition: EveService.cc:255
EveService::m_AllowStep
bool m_AllowStep
Definition: EveService.h:92
EveService::operator=
const EveService & operator=(const EveService &)
EveService::m_StepButton
TGTextButton * m_StepButton
Definition: EveService.h:96
EveService::getMagField
TEveMagField * getMagField()
Definition: EveService.cc:254
EveService::postGlobalBeginRun
void postGlobalBeginRun(edm::GlobalContext const &)
Definition: EveService.cc:180
edm
HLT enums.
Definition: AlignableModifier.h:19
EveService::AddElement
void AddElement(TEveElement *el)
Definition: EveService.cc:261
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
EveService::getManager
TEveManager * getManager()
Definition: EveService.cc:249
EveService::m_EveManager
TEveManager * m_EveManager
Definition: EveService.h:87
EveService::createEventNavigationGUI
void createEventNavigationGUI()
Definition: EveService.cc:285
EveService::AddGlobalElement
void AddGlobalElement(TEveElement *el)
Definition: EveService.cc:263
EveService::~EveService
virtual ~EveService()
Definition: EveService.cc:155
edm::StreamContext
Definition: StreamContext.h:31
edm::ActivityRegistry
Definition: ActivityRegistry.h:133
Event
EveService::slotNextEvent
void slotNextEvent()
Definition: EveService.cc:331
EveService::postBeginJob
void postBeginJob()
Definition: EveService.cc:165
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EveService::m_Rint
TRint * m_Rint
Definition: EveService.h:88
edm::GlobalContext
Definition: GlobalContext.h:29
edm::ParameterSet
Definition: ParameterSet.h:47
EveService::m_MagField
TEveMagField * m_MagField
Definition: EveService.h:90
EveService::postEvent
void postEvent(edm::StreamContext const &)
Definition: EveService.cc:213
ParameterSet
Definition: Functions.h:16
EveService::slotContinue
void slotContinue()
Definition: EveService.cc:337
EveService::postEndJob
void postEndJob()
Definition: EveService.cc:172
EveService::m_StepLabel
TGLabel * m_StepLabel
Definition: EveService.h:97
EveService::m_ContinueButton
TGTextButton * m_ContinueButton
Definition: EveService.h:95
EveService::EveService
EveService(const edm::ParameterSet &, edm::ActivityRegistry &)
Definition: EveService.cc:111
EveService
Definition: EveService.h:43
EventSetup
EveService::slotExit
void slotExit()
Definition: EveService.cc:318
EveService::slotStep
void slotStep()
Definition: EveService.cc:342
EveService::display
void display(const std::string &info="")
Definition: EveService.cc:232
EveService::ClassDef
ClassDef(EveService, 0)
Run