31 #include "TGLWidget.h"
35 #include "TStopwatch.h"
37 #include "TEveManager.h"
39 #include <boost/bind.hpp>
53 m_metadataManagerPtr(0),
55 m_autoLoadTimerRunning(kFALSE),
202 <<
" RealTime " << sw.RealTime() << std::endl;
241 std::string macPath(gSystem->Getenv(
"CMSSW_BASE"));
242 macPath +=
"/src/Fireworks/Core/macros";
243 const char*
base = gSystem->Getenv(
"CMSSW_RELEASE_BASE");
247 macPath +=
"/src/Fireworks/Core/macros";
249 gROOT->SetMacroPath((std::string(
"./:")+macPath).c_str());
276 std::string
msg =
"Reloading configuration "
285 gEve->DisableRedraw();
287 gEve->EnableRedraw();
289 catch (std::runtime_error &e)
292 new TGMsgBox(gClient->GetDefaultRoot(),
293 gClient->GetDefaultRoot(),
295 (
"Configuration " + config +
" cannot be parsed.").c_str(),
303 new TGMsgBox(gClient->GetDefaultRoot(),
304 gClient->GetDefaultRoot(),
306 (
"Configuration " + config +
" cannot be parsed.").c_str(),
344 m_guiManager->updateStatus(
"Setting up configuration...");
355 char* whereConfig = gSystem->Which(TROOT::GetMacroPath(),
m_configFileName.c_str(), kReadPermission);
358 whereConfig = gSystem->Which(TROOT::GetMacroPath(),
"default.fwc", kReadPermission);
359 assert(whereConfig &&
"Default configuration cannot be found. Malformed Fireworks installation?");
363 delete [] whereConfig;
366 gEve->DisableRedraw();
368 gEve->EnableRedraw();
370 catch (std::runtime_error &e)
374 <<
"' which was specified on command line. Quitting."
382 <<
"' which was specified on command line. Quitting."
408 m_guiManager->updateStatus(
"Setting up Eve debug window...");
476 catch (
const std::runtime_error& iException)
480 << 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< 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
std::string m_simGeometryFilename
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