CMS 3D CMS Logo

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  class ParameterSet;
17  class ActivityRegistry;
18  class Run;
19  class Event;
20  class EventSetup;
22  class ModuleChanger;
23  class ParameterSet;
24  class LuminosityBlockPrincipal;
25 } // namespace edm
26 
27 class FWFFNavigator;
29 class FWPathsPopup;
30 
31 namespace fireworks {
32  class Context;
33 }
34 
35 class TEveManager;
36 class TEveElement;
37 class TEveMagField;
38 class TEveTrackPropagator;
39 class TRint;
40 class TGWindow;
41 
43 public:
45  ~FWFFLooper() override;
46 
47  // ---------- const member functions ---------------------
48 
49  // ---------- static member functions --------------------
50 
51  // ---------- member functions ---------------------------
52 
53  void attachTo(edm::ActivityRegistry &) override;
54  void postBeginJob();
55  void postEndJob();
56 
57  void beginRun(const edm::Run &, const edm::EventSetup &) override;
58 
59  void display(const std::string &info = "");
60 
61  TEveMagField *getMagField();
62  void setupFieldForPropagator(TEveTrackPropagator *prop);
63 
64  void checkPosition() override;
65  void stopPlaying() override;
66  void autoLoadNewEvent() override;
67 
68  void showPathsGUI(const TGWindow *p);
69 
70  void quit() override;
71 
72  void startingNewLoop(unsigned int) override;
73  edm::EDLooperBase::Status endOfLoop(const edm::EventSetup &, unsigned int) override;
75  const edm::EventSetup &,
76  edm::ProcessingController &) override;
77  void requestChanges(const std::string &, const edm::ParameterSet &);
78 
79  void remakeGeometry(const DisplayGeomRecord &dgRec);
80 
81 private:
82  FWFFLooper(const FWFFLooper &); // stop default
83  const FWFFLooper &operator=(const FWFFLooper &); // stop default
84 
85  void loadDefaultGeometryFile(void);
86 
88  std::unique_ptr<FWFFNavigator> m_navigator;
89  std::unique_ptr<FWFFMetadataManager> m_metadataManager;
90  std::unique_ptr<fireworks::Context> m_context;
91 
92  TEveManager *m_EveManager;
93  TRint *m_Rint;
94 
95  TEveMagField *m_MagField;
96 
101 
102  typedef std::map<std::string, edm::ParameterSet> ModuleChanges;
108 
110 };
111 
112 #endif
FWFFLooper::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
Called after all event modules have processed the begin of a Run.
Definition: FWFFLooper.cc:264
edm::EDLooperBase::Status
Status
Definition: EDLooperBase.h:79
FWFFLooper::m_navigator
std::unique_ptr< FWFFNavigator > m_navigator
Definition: FWFFLooper.h:88
FWFFLooper::m_Rint
TRint * m_Rint
Definition: FWFFLooper.h:93
FWFFLooper::m_autoReload
bool m_autoReload
Definition: FWFFLooper.h:105
edm::ESWatcher< DisplayGeomRecord >
ActivityRegistry
FWFFLooper::m_appHelper
edm::Service< FWFFHelper > m_appHelper
Definition: FWFFLooper.h:87
edm::Run
Definition: Run.h:45
edm
HLT enums.
Definition: AlignableModifier.h:19
FWFFLooper::m_isFirstEvent
bool m_isFirstEvent
Definition: FWFFLooper.h:106
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
FWFFLooper::checkPosition
void checkPosition() override
Definition: FWFFLooper.cc:215
FWFFLooper::m_firstTime
bool m_firstTime
Definition: FWFFLooper.h:99
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:152
CmsShowMainBase.h
Context
FWFFLooper::stopPlaying
void stopPlaying() override
Definition: FWFFLooper.cc:253
FWFFLooper::~FWFFLooper
~FWFFLooper() override
Definition: FWFFLooper.cc:183
FWFFLooper::m_AllowStep
bool m_AllowStep
Definition: FWFFLooper.h:97
edm::ProcessingController
Definition: ProcessingController.h:29
FWFFLooper::ModuleChanges
std::map< std::string, edm::ParameterSet > ModuleChanges
Definition: FWFFLooper.h:102
FWFFLooper::operator=
const FWFFLooper & operator=(const FWFFLooper &)
FWFFLooper::m_geomWatcher
edm::ESWatcher< DisplayGeomRecord > m_geomWatcher
Definition: FWFFLooper.h:109
FWFFLooper::m_context
std::unique_ptr< fireworks::Context > m_context
Definition: FWFFLooper.h:90
Service.h
FWFFLooper::m_ShowEvent
bool m_ShowEvent
Definition: FWFFLooper.h:98
CmsShowMainBase
Definition: CmsShowMainBase.h:49
EventID.h
edm::ActivityRegistry
Definition: ActivityRegistry.h:132
FWFFLooper::m_isLastEvent
bool m_isLastEvent
Definition: FWFFLooper.h:107
Event
FWFFHelper.h
FWFFLooper::showPathsGUI
void showPathsGUI(const TGWindow *p)
Definition: FWFFLooper.cc:437
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FWPathsPopup
Definition: FWPathsPopup.h:27
edm::ParameterSet
Definition: ParameterSet.h:36
FWFFLooper::setupFieldForPropagator
void setupFieldForPropagator(TEveTrackPropagator *prop)
Definition: FWFFLooper.cc:406
FWFFLooper::m_nextEventId
edm::EventID m_nextEventId
Definition: FWFFLooper.h:104
FWFFLooper::getMagField
TEveMagField * getMagField()
Definition: FWFFLooper.cc:404
ParameterSet
Definition: Functions.h:16
EDLooperBase.h
FWFFLooper::endOfLoop
edm::EDLooperBase::Status endOfLoop(const edm::EventSetup &, unsigned int) override
Definition: FWFFLooper.cc:423
FWFFLooper::attachTo
void attachTo(edm::ActivityRegistry &) override
Override this method if you need to monitor the state of the processing.
Definition: FWFFLooper.cc:175
FWFFLooper::m_pathsGUI
FWPathsPopup * m_pathsGUI
Definition: FWFFLooper.h:100
edm::Service< FWFFHelper >
FWFFLooper::m_EveManager
TEveManager * m_EveManager
Definition: FWFFLooper.h:92
edm::EventSetup
Definition: EventSetup.h:57
FWFFLooper::postBeginJob
void postBeginJob()
FWFFNavigator
Definition: FWFFNavigator.h:11
FWFFLooper::m_scheduledChanges
ModuleChanges m_scheduledChanges
Definition: FWFFLooper.h:103
FWFFLooper::remakeGeometry
void remakeGeometry(const DisplayGeomRecord &dgRec)
Definition: FWFFLooper.cc:455
FWFFLooper::autoLoadNewEvent
void autoLoadNewEvent() override
Definition: FWFFLooper.cc:237
ModuleChanger
FWFFLooper::duringLoop
edm::EDLooperBase::Status duringLoop(const edm::Event &, const edm::EventSetup &, edm::ProcessingController &) override
Definition: FWFFLooper.cc:333
DisplayGeomRecord.h
ProcessingController
FWFFLooper::startingNewLoop
void startingNewLoop(unsigned int) override
Definition: FWFFLooper.cc:189
ESWatcher.h
FWFFLooper::postEndJob
void postEndJob()
Definition: FWFFLooper.cc:210
FWFFMetadataManager
Definition: FWFFMetadataManager.h:11
FWFFLooper::display
void display(const std::string &info="")
Definition: FWFFLooper.cc:390
FWFFLooper
Definition: FWFFLooper.h:42
FWFFLooper::FWFFLooper
FWFFLooper(const edm::ParameterSet &)
Definition: FWFFLooper.cc:116
EventSetup
fireworks
Definition: FWTauProxyBuilderBase.h:35
edm::EDLooperBase
Definition: EDLooperBase.h:77
FWFFLooper::m_MagField
TEveMagField * m_MagField
Definition: FWFFLooper.h:95
FWFFLooper::requestChanges
void requestChanges(const std::string &, const edm::ParameterSet &)
Definition: FWFFLooper.cc:449
FWFFLooper::quit
void quit() override
Definition: FWFFLooper.cc:408
edm::EventID
Definition: EventID.h:31
edm::Event
Definition: Event.h:73
FWFFLooper::loadDefaultGeometryFile
void loadDefaultGeometryFile(void)
Definition: FWFFLooper.cc:169
FWFFLooper::m_metadataManager
std::unique_ptr< FWFFMetadataManager > m_metadataManager
Definition: FWFFLooper.h:89
Run
DisplayGeomRecord
Definition: DisplayGeomRecord.h:24