30 #include "TGLWidget.h"
34 #include "TStopwatch.h"
36 #include "TEveManager.h"
38 #include <boost/bind.hpp>
52 m_metadataManagerPtr(0),
54 m_autoLoadTimerRunning(kFALSE),
199 <<
" RealTime " << sw.RealTime() << std::endl;
238 std::string macPath(gSystem->Getenv(
"CMSSW_BASE"));
239 macPath +=
"/src/Fireworks/Core/macros";
240 const char*
base = gSystem->Getenv(
"CMSSW_RELEASE_BASE");
244 macPath +=
"/src/Fireworks/Core/macros";
246 gROOT->SetMacroPath((std::string(
"./:")+macPath).c_str());
273 std::string
msg =
"Reloading configuration "
282 gEve->DisableRedraw();
284 gEve->EnableRedraw();
286 catch (std::runtime_error &
e)
289 new TGMsgBox(gClient->GetDefaultRoot(),
290 gClient->GetDefaultRoot(),
292 (
"Configuration " + config +
" cannot be parsed.").c_str(),
300 new TGMsgBox(gClient->GetDefaultRoot(),
301 gClient->GetDefaultRoot(),
303 (
"Configuration " + config +
" cannot be parsed.").c_str(),
341 m_guiManager->updateStatus(
"Setting up configuration...");
352 char* whereConfig = gSystem->Which(TROOT::GetMacroPath(),
m_configFileName.c_str(), kReadPermission);
355 whereConfig = gSystem->Which(TROOT::GetMacroPath(),
"default.fwc", kReadPermission);
356 assert(whereConfig &&
"Default configuration cannot be found. Malformed Fireworks installation?");
360 delete [] whereConfig;
363 gEve->DisableRedraw();
365 gEve->EnableRedraw();
367 catch (std::runtime_error &
e)
371 <<
"' which was specified on command line. Quitting."
379 <<
"' which was specified on command line. Quitting."
405 m_guiManager->updateStatus(
"Setting up Eve debug window...");
473 catch (
const std::runtime_error& iException)
477 << iException.what() << std::endl;
void startAutoLoadTimer()
void registerEventItem(const FWEventItem *iItem)
virtual void goToRunEvent(edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t)=0
std::auto_ptr< FWConfigurationManager > m_configurationManager
std::string m_geometryFilename
FWGUIManager * guiManager()
void setGeom(const FWGeometry *x)
void writeToConfigFile(const std::string &config)
unsigned int EventNumber_t
virtual void nextEvent()=0
FWEventItemsManager * eiManager()
std::auto_ptr< FWSelectionManager > m_selectionManager
std::auto_ptr< FWEventItemsManager > m_eiManager
void setup(FWNavigatorBase *navigator, fireworks::Context *context, FWJobMetadataManager *metadataManager)
void updateStatus(const char *status)
unsigned int LuminosityBlockNumber_t
void enableActions(bool enable=true)
virtual void checkPosition()=0
void checkBeamSpot(const edm::EventBase *event)
const std::string sNextEvent
virtual ~CmsShowMainBase()
void setupAutoLoad(float x)
FWNavigatorBase * m_navigatorPtr
void newItemSlot(FWEventItem *)
bool m_autoLoadTimerRunning
FWBeamSpot * getBeamSpot() const
void reloadConfiguration(const std::string &config)
FWMagField * getField() const
virtual void firstEvent()=0
std::auto_ptr< SignalTimer > m_autoLoadTimer
void loadMap(const char *fileName)
void setPlayDelay(Float_t val)
virtual void eventChangedImp()
FWJobMetadataManager * m_metadataManagerPtr
void setupConfiguration()
const std::string sGotoLastEvent
ESource getSource() const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
virtual void previousEvent()=0
virtual const edm::EventBase * getCurrentEvent() const =0
void removeAllItems(void)
std::auto_ptr< CmsShowTaskExecutor > m_startupTasks
void eventChangedCallback()
void checkFieldInfo(const edm::EventBase *)
FWViewManagerManager * viewManager()
virtual void autoLoadNewEvent()=0
void add(boost::shared_ptr< FWViewManagerBase >)
const std::string sGotoFirstEvent
fireworks::Context * m_contextPtr
CmsShowCommon * commonPrefs() const
void add(const std::string &iName, FWConfigurable *)
does not take ownership
virtual void stopPlaying()=0
const std::string sPreviousEvent
FWConfigurationManager * configurationManager()
void writeToCurrentConfigFile()
std::string m_autoSaveAllViewsFormat
std::auto_ptr< FWModelChangeManager > m_changeManager
void registerPhysicsObject(const FWPhysicsObjectDesc &iItem)
void goToRunEvent(edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t)
std::auto_ptr< FWViewManagerManager > m_viewManager
std::auto_ptr< FWColorManager > m_colorManager
sigc::signal< void > goingToClearItems_
std::auto_ptr< FWGUIManager > m_guiManager
T get(const Candidate &c)
virtual void lastEvent()=0
sigc::signal< void > newEvent_
std::string m_configFileName