CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWFFLooper.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWFFLooper_h
2 #define Fireworks_Core_FWFFLooper_h
3 
11 #include <string>
12 #include <Rtypes.h>
13 #include <memory>
14 
15 namespace edm
16 {
17  class ParameterSet;
18  class ActivityRegistry;
19  class Run;
20  class Event;
21  class EventSetup;
23  class ModuleChanger;
24  class ParameterSet;
25  class LuminosityBlockPrincipal;
26 }
27 
28 class FWFFNavigator;
30 class FWPathsPopup;
31 
32 namespace fireworks
33 {
34  class Context;
35 }
36 
37 class TEveManager;
38 class TEveElement;
39 class TEveMagField;
40 class TEveTrackPropagator;
41 class TRint;
42 class TGWindow;
43 
45 {
46 public:
48  virtual ~FWFFLooper();
49 
50  // ---------- const member functions ---------------------
51 
52  // ---------- static member functions --------------------
53 
54  // ---------- member functions ---------------------------
55 
56  virtual void attachTo(edm::ActivityRegistry &);
57  void postBeginJob();
58  void postEndJob();
59 
60  virtual void beginRun(const edm::Run&, const edm::EventSetup&);
63 
64  void display(const std::string& info="");
65 
66  TEveMagField* getMagField();
67  void setupFieldForPropagator(TEveTrackPropagator* prop);
68 
69  virtual void checkPosition();
70  virtual void stopPlaying();
71  virtual void autoLoadNewEvent();
72 
73  void showPathsGUI(const TGWindow *p);
74 
75  void quit();
76 
77  virtual void startingNewLoop(unsigned int);
78  virtual edm::EDLooperBase::Status endOfLoop(const edm::EventSetup&, unsigned int);
80  void requestChanges(const std::string &, const edm::ParameterSet &);
81 
82  void remakeGeometry(const DisplayGeomRecord& dgRec);
83 
84 private:
85  FWFFLooper(const FWFFLooper&); // stop default
86  const FWFFLooper& operator=(const FWFFLooper&); // stop default
87 
88  void loadDefaultGeometryFile( void );
89 
91  std::auto_ptr<FWFFNavigator> m_navigator;
92  std::auto_ptr<FWFFMetadataManager> m_metadataManager;
93  std::auto_ptr<fireworks::Context> m_context;
94 
95  TEveManager *m_EveManager;
96  TRint *m_Rint;
97 
98  TEveMagField *m_MagField;
99 
104 
105  typedef std::map<std::string, edm::ParameterSet> ModuleChanges;
111 
113 };
114 
115 #endif
const FWFFLooper & operator=(const FWFFLooper &)
edm::ESWatcher< DisplayGeomRecord > m_geomWatcher
Definition: FWFFLooper.h:112
void postBeginJob()
TEveMagField * getMagField()
Definition: FWFFLooper.cc:462
bool m_ShowEvent
Definition: FWFFLooper.h:101
bool m_isLastEvent
Definition: FWFFLooper.h:110
void setupFieldForPropagator(TEveTrackPropagator *prop)
Definition: FWFFLooper.cc:468
virtual void stopPlaying()
Definition: FWFFLooper.cc:286
ModuleChanges m_scheduledChanges
Definition: FWFFLooper.h:106
TEveManager * m_EveManager
Definition: FWFFLooper.h:95
FWPathsPopup * m_pathsGUI
Definition: FWFFLooper.h:103
TEveMagField * m_MagField
Definition: FWFFLooper.h:98
void postEndJob()
Definition: FWFFLooper.cc:233
virtual ~FWFFLooper()
Definition: FWFFLooper.cc:198
void remakeGeometry(const DisplayGeomRecord &dgRec)
Definition: FWFFLooper.cc:560
FWFFLooper(const edm::ParameterSet &)
Definition: FWFFLooper.cc:123
void loadDefaultGeometryFile(void)
Definition: FWFFLooper.cc:180
virtual edm::EDLooperBase::Status duringLoop(const edm::Event &, const edm::EventSetup &, edm::ProcessingController &)
Definition: FWFFLooper.cc:380
void requestChanges(const std::string &, const edm::ParameterSet &)
Definition: FWFFLooper.cc:529
void display(const std::string &info="")
Definition: FWFFLooper.cc:445
bool m_autoReload
Definition: FWFFLooper.h:108
std::auto_ptr< FWFFNavigator > m_navigator
Definition: FWFFLooper.h:91
std::auto_ptr< FWFFMetadataManager > m_metadataManager
Definition: FWFFLooper.h:92
TRint * m_Rint
Definition: FWFFLooper.h:96
bool m_firstTime
Definition: FWFFLooper.h:102
bool m_isFirstEvent
Definition: FWFFLooper.h:109
virtual void startingNewLoop(unsigned int)
Definition: FWFFLooper.cc:209
edm::Service< FWFFHelper > m_appHelper
Definition: FWFFLooper.h:90
virtual void checkPosition()
Definition: FWFFLooper.cc:240
virtual void attachTo(edm::ActivityRegistry &)
Override this method if you need to monitor the state of the processing.
Definition: FWFFLooper.cc:188
virtual void doBeginLuminosityBlock(edm::LuminosityBlockPrincipal &, edm::EventSetup const &)
Definition: FWFFLooper.cc:539
bool m_AllowStep
Definition: FWFFLooper.h:100
void quit()
Definition: FWFFLooper.cc:474
virtual edm::EDLooperBase::Status endOfLoop(const edm::EventSetup &, unsigned int)
Definition: FWFFLooper.cc:491
virtual void doEndLuminosityBlock(edm::LuminosityBlockPrincipal &, edm::EventSetup const &)
Definition: FWFFLooper.cc:548
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
Called after all event modules have processed the begin of a Run.
Definition: FWFFLooper.cc:300
void showPathsGUI(const TGWindow *p)
Definition: FWFFLooper.cc:512
std::map< std::string, edm::ParameterSet > ModuleChanges
Definition: FWFFLooper.h:105
virtual void autoLoadNewEvent()
Definition: FWFFLooper.cc:265
edm::EventID m_nextEventId
Definition: FWFFLooper.h:107
std::auto_ptr< fireworks::Context > m_context
Definition: FWFFLooper.h:93
Definition: Run.h:33