test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <boost/shared_ptr.hpp>
30 #include "Rtypes.h"
31 
32 
33 // forward declarations
34 class TGPictureButton;
35 class TGComboBox;
36 class TGTextButton;
37 class TGTextEntry;
41 class FWColorManager;
42 class FWSelectionManager;
43 class FWGUIManager;
44 class FWEventItem;
48 class TTimer;
49 class TMonitor;
50 class TSocket;
51 class CmsShowNavigator;
53 class CSGAction;
54 class CmsShowSearchFiles;
55 
56 namespace fwlite {
57  class Event;
58 }
59 
61 {
62 public:
63  CmsShowMain(int argc, char *argv[]);
64  virtual ~CmsShowMain();
65  void resetInitialization();
66  void openData();
67  void appendData();
68  void openDataViaURL();
69  virtual void quit();
70  void doExit();
71 
72  // void writeConfigurationFile(const std::string& iFileName) const;
73  // ---------- static member functions --------------------
74 
75  // ---------- member functions ---------------------------
76  // int draw(const fwlite::Event& );
77 
78  void notified(TSocket*);
79  const fwlite::Event* getCurrentEvent() const;
80  const fireworks::Context* context() const { return m_context.get(); };
81  bool getVersionCheck() const { return !m_noVersionCheck; }
82 
83  void fileChangedSlot(const TFile *file);
84 
85 protected:
86  virtual void eventChangedImp();
87 
88 private:
89  CmsShowMain(const CmsShowMain&); // stop default
90  const CmsShowMain& operator=(const CmsShowMain&); // stop default
91 
92  void loadGeometry();
93  void setupDataHandling();
94  void setupSocket(unsigned int);
95  void connectSocket();
96 
97  virtual void autoLoadNewEvent();
98  virtual void checkPosition();
99  virtual void stopPlaying();
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::auto_ptr<CmsShowNavigator> m_navigator;
115  std::auto_ptr<FWLiteJobMetadataManager> m_metadataManager;
116  std::auto_ptr<fireworks::Context> m_context;
117 
118  std::vector<std::string> m_inputFiles;
120  const TFile *m_openFile;
121 
122  std::auto_ptr<CmsShowSearchFiles> m_searchFiles;
123 
124  // live options
125  bool m_live;
126  std::auto_ptr<SignalTimer> m_liveTimer;
129 
131 
132  std::auto_ptr<TMonitor> m_monitor;
133 };
134 
135 #endif
void fileChangedSlot(const TFile *file)
Definition: CmsShowMain.cc:439
void navigatorChangedFilterState(int)
Definition: CmsShowMain.cc:768
void openData()
Definition: CmsShowMain.cc:460
const fwlite::Event * getCurrentEvent() const
Definition: CmsShowMain.cc:431
bool m_loadedAnyInputFile
Definition: CmsShowMain.h:119
const CmsShowMain & operator=(const CmsShowMain &)
void resetInitialization()
Definition: CmsShowMain.cc:456
virtual void checkPosition()
Definition: CmsShowMain.cc:586
virtual void eventChangedImp()
Definition: CmsShowMain.cc:449
void appendData()
Definition: CmsShowMain.cc:484
void preFiltering()
Definition: CmsShowMain.cc:788
void setupSocket(unsigned int)
Definition: CmsShowMain.cc:667
void checkLiveMode()
Definition: CmsShowMain.cc:829
std::auto_ptr< FWLiteJobMetadataManager > m_metadataManager
Definition: CmsShowMain.h:115
virtual ~CmsShowMain()
Definition: CmsShowMain.cc:371
void setupDataHandling()
Definition: CmsShowMain.cc:607
virtual void autoLoadNewEvent()
Definition: CmsShowMain.cc:539
std::auto_ptr< SignalTimer > m_liveTimer
Definition: CmsShowMain.h:126
CmsShowMain(int argc, char *argv[])
Definition: CmsShowMain.cc:112
std::auto_ptr< fireworks::Context > m_context
Definition: CmsShowMain.h:116
void filterButtonClicked()
Definition: CmsShowMain.cc:779
std::auto_ptr< TMonitor > m_monitor
Definition: CmsShowMain.h:132
UInt_t m_lastXEventSerial
Definition: CmsShowMain.h:128
virtual void quit()
Definition: CmsShowMain.cc:396
void reachedBeginning()
std::vector< std::string > m_inputFiles
Definition: CmsShowMain.h:118
void setLiveMode()
Definition: CmsShowMain.cc:807
bool getVersionCheck() const
Definition: CmsShowMain.h:81
void postFiltering(bool)
Definition: CmsShowMain.cc:795
tuple argc
Definition: dir2webdir.py:38
const TFile * m_openFile
Definition: CmsShowMain.h:120
std::auto_ptr< CmsShowNavigator > m_navigator
Definition: CmsShowMain.h:114
std::auto_ptr< CmsShowSearchFiles > m_searchFiles
Definition: CmsShowMain.h:122
void loadGeometry()
bool m_noVersionCheck
Definition: CmsShowMain.h:130
void doExit()
Definition: CmsShowMain.cc:401
int m_liveTimeout
Definition: CmsShowMain.h:127
virtual void stopPlaying()
Definition: CmsShowMain.cc:757
void notified(TSocket *)
Definition: CmsShowMain.cc:687
const fireworks::Context * context() const
Definition: CmsShowMain.h:80
void connectSocket()
Definition: CmsShowMain.cc:680
void openDataViaURL()
Definition: CmsShowMain.cc:509
void reachedEnd()