CMS 3D CMS Logo

CmsShowMain.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef Fireworks_Core_CmsShowMain_h
3 #define Fireworks_Core_CmsShowMain_h
4 //
5 // Package: Core
6 // Class : CmsShowMain
7 //
16 //
17 // Original Author:
18 // Created: Mon Dec 3 08:34:30 PST 2007
19 //
20 
22 // user include files
24 
25 // system include files
26 #include <vector>
27 #include <string>
28 #include <memory>
29 #include "Rtypes.h"
30 
31 // forward declarations
32 class TGPictureButton;
33 class TGComboBox;
34 class TGTextButton;
35 class TGTextEntry;
39 class FWColorManager;
40 class FWSelectionManager;
41 class FWGUIManager;
42 class FWEventItem;
46 class TTimer;
47 class TMonitor;
48 class TSocket;
49 class CmsShowNavigator;
51 class CSGAction;
52 class CmsShowSearchFiles;
53 
54 namespace fwlite {
55  class Event;
56 }
57 
58 class CmsShowMain : public CmsShowMainBase {
59 public:
60  CmsShowMain(int argc, char* argv[]);
61  ~CmsShowMain() override;
62  void resetInitialization();
63  void openData();
64  void appendData();
65  void openDataViaURL();
66  void quit() override;
67  void doExit();
68 
69  // void writeConfigurationFile(const std::string& iFileName) const;
70  // ---------- static member functions --------------------
71 
72  // ---------- member functions ---------------------------
73  // int draw(const fwlite::Event& );
74 
75  void notified(TSocket*);
76  const fwlite::Event* getCurrentEvent() const;
77  const fireworks::Context* context() const { return m_context.get(); };
78  bool getVersionCheck() const { return !m_noVersionCheck; }
79  bool getGlobalTagCheck() const { return m_globalTagCheck; }
80 
81  void fileChangedSlot(const TFile* file);
82 
83 protected:
84  void eventChangedImp() override;
85 
86 private:
87  CmsShowMain(const CmsShowMain&); // stop default
88  const CmsShowMain& operator=(const CmsShowMain&); // stop default
89 
90  void loadGeometry();
91  void setupDataHandling();
92  void setupSocket(unsigned int);
93  void connectSocket();
95 
96  void autoLoadNewEvent() override;
97  void checkPosition() override;
98  void stopPlaying() override;
100 
101  void reachedEnd();
102  void reachedBeginning();
103 
104  // Filtering bits.
105  void navigatorChangedFilterState(int);
106  void filterButtonClicked();
107  void preFiltering();
108  void postFiltering(bool);
109 
110  void setLiveMode();
111  void checkLiveMode();
112 
113  // ---------- member data --------------------------------
114  std::unique_ptr<CmsShowNavigator> m_navigator;
115  std::unique_ptr<FWLiteJobMetadataManager> m_metadataManager;
116  std::unique_ptr<fireworks::Context> m_context;
117 
118  std::vector<std::string> m_inputFiles;
120  const TFile* m_openFile;
121 
122  std::unique_ptr<CmsShowSearchFiles> m_searchFiles;
123 
124  // live options
125  bool m_live;
126  std::unique_ptr<SignalTimer> m_liveTimer;
129 
132 
133  std::unique_ptr<TMonitor> m_monitor;
134 };
135 
136 #endif
CmsShowMain::loadGeometry
void loadGeometry()
cmsBatch.argv
argv
Definition: cmsBatch.py:279
CmsShowMain::m_liveTimeout
int m_liveTimeout
Definition: CmsShowMain.h:127
fireworks::Context
Definition: Context.h:41
FWGUIManager
Definition: FWGUIManager.h:94
fwlite
Definition: TFileDirectory.h:16
CmsShowMain::notified
void notified(TSocket *)
Definition: CmsShowMain.cc:727
CmsShowMain::stopPlaying
void stopPlaying() override
Definition: CmsShowMain.cc:793
dir2webdir.argc
argc
Definition: dir2webdir.py:39
CmsShowMain::CmsShowMain
CmsShowMain(int argc, char *argv[])
Definition: CmsShowMain.cc:125
CmsShowMain
Definition: CmsShowMain.h:58
FWEventItemsManager
Definition: FWEventItemsManager.h:44
CmsShowMain::setupDataHandling
void setupDataHandling()
Definition: CmsShowMain.cc:643
CmsShowMain::setLoadedAnyInputFileAfterStartup
void setLoadedAnyInputFileAfterStartup()
Definition: CmsShowMain.cc:707
CmsShowMainBase.h
CmsShowMain::m_navigator
std::unique_ptr< CmsShowNavigator > m_navigator
Definition: CmsShowMain.h:114
FWModelChangeManager
Definition: FWModelChangeManager.h:33
CSGAction
Definition: CSGAction.h:38
CmsShowMain::navigatorChangedFilterState
void navigatorChangedFilterState(int)
Definition: CmsShowMain.cc:802
CmsShowMain::m_context
std::unique_ptr< fireworks::Context > m_context
Definition: CmsShowMain.h:116
CmsShowMain::operator=
const CmsShowMain & operator=(const CmsShowMain &)
CmsShowMain::checkPosition
void checkPosition() override
Definition: CmsShowMain.cc:625
CmsShowMain::preFiltering
void preFiltering()
Definition: CmsShowMain.cc:817
CmsShowMain::setupSocket
void setupSocket(unsigned int)
Definition: CmsShowMain.cc:715
CmsShowMain::reachedBeginning
void reachedBeginning()
CmsShowMain::getVersionCheck
bool getVersionCheck() const
Definition: CmsShowMain.h:78
CmsShowMain::m_loadedAnyInputFile
bool m_loadedAnyInputFile
Definition: CmsShowMain.h:119
CmsShowNavigator
Definition: CmsShowNavigator.h:36
CmsShowMain::m_metadataManager
std::unique_ptr< FWLiteJobMetadataManager > m_metadataManager
Definition: CmsShowMain.h:115
CmsShowMain::resetInitialization
void resetInitialization()
Definition: CmsShowMain.cc:511
CmsShowSearchFiles
Definition: CmsShowSearchFiles.h:35
FWConfigurationManager
Definition: FWConfigurationManager.h:32
CmsShowMain::setLiveMode
void setLiveMode()
Definition: CmsShowMain.cc:833
CmsShowMain::autoLoadNewEvent
void autoLoadNewEvent() override
Definition: CmsShowMain.cc:588
CmsShowMainBase
Definition: CmsShowMainBase.h:49
FWLiteJobMetadataManager
Definition: FWLiteJobMetadataManager.h:12
Event
CmsShowTaskExecutor
Definition: CmsShowTaskExecutor.h:30
FWViewManagerManager
Definition: FWViewManagerManager.h:37
FWGeometry.h
CmsShowMain::m_openFile
const TFile * m_openFile
Definition: CmsShowMain.h:120
FWSelectionManager
Definition: FWSelectionManager.h:34
CmsShowMain::doExit
void doExit()
Definition: CmsShowMain.cc:456
FWPhysicsObjectDesc
Definition: FWPhysicsObjectDesc.h:30
CmsShowMain::m_noVersionCheck
bool m_noVersionCheck
Definition: CmsShowMain.h:130
FrontierConditions_GlobalTag_cff.file
file
Definition: FrontierConditions_GlobalTag_cff.py:13
CmsShowMain::getCurrentEvent
const fwlite::Event * getCurrentEvent() const
Definition: CmsShowMain.cc:484
CmsShowMain::m_live
bool m_live
Definition: CmsShowMain.h:125
CmsShowMain::quit
void quit() override
Definition: CmsShowMain.cc:454
CmsShowMain::m_lastXEventSerial
UInt_t m_lastXEventSerial
Definition: CmsShowMain.h:128
CmsShowMain::filterButtonClicked
void filterButtonClicked()
Definition: CmsShowMain.cc:810
CmsShowMain::~CmsShowMain
~CmsShowMain() override
Definition: CmsShowMain.cc:434
FWColorManager
Definition: FWColorManager.h:45
CmsShowMain::openDataViaURL
void openDataViaURL()
Definition: CmsShowMain.cc:562
CmsShowMain::m_monitor
std::unique_ptr< TMonitor > m_monitor
Definition: CmsShowMain.h:133
CmsShowMain::connectSocket
void connectSocket()
Definition: CmsShowMain.cc:725
CmsShowMain::reachedEnd
void reachedEnd()
FWEventItem
Definition: FWEventItem.h:56
CmsShowMain::m_inputFiles
std::vector< std::string > m_inputFiles
Definition: CmsShowMain.h:118
CmsShowMain::m_liveTimer
std::unique_ptr< SignalTimer > m_liveTimer
Definition: CmsShowMain.h:126
fwlite::Event
Definition: Event.h:87
CmsShowMain::context
const fireworks::Context * context() const
Definition: CmsShowMain.h:77
CmsShowMain::fileChangedSlot
void fileChangedSlot(const TFile *file)
Definition: CmsShowMain.cc:490
CmsShowMain::openData
void openData()
Definition: CmsShowMain.cc:515
CmsShowMain::eventChangedImp
void eventChangedImp() override
Definition: CmsShowMain.cc:505
CmsShowMain::postFiltering
void postFiltering(bool)
Definition: CmsShowMain.cc:822
CmsShowMain::getGlobalTagCheck
bool getGlobalTagCheck() const
Definition: CmsShowMain.h:79
CmsShowMain::m_globalTagCheck
bool m_globalTagCheck
Definition: CmsShowMain.h:131
CmsShowMain::appendData
void appendData()
Definition: CmsShowMain.cc:539
CmsShowMain::checkKeyBindingsOnPLayEventsStateChanged
void checkKeyBindingsOnPLayEventsStateChanged() override
Definition: CmsShowMain.cc:785
CmsShowMain::m_searchFiles
std::unique_ptr< CmsShowSearchFiles > m_searchFiles
Definition: CmsShowMain.h:122
CmsShowMain::checkLiveMode
void checkLiveMode()
Definition: CmsShowMain.cc:848