CMS 3D CMS Logo

CmsShowMain.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Core
4 // Class : CmsShowMain
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author:
10 // Created: Mon Dec 3 08:38:38 PST 2007
11 //
12 
13 // system include files
14 #include <sstream>
15 #include <boost/bind.hpp>
16 #include <boost/program_options.hpp>
17 #include <cstring>
18 
19 #include "TSystem.h"
20 #include "TGLWidget.h"
21 #include "TTimer.h"
22 #include "TROOT.h"
23 #include "TGFileDialog.h"
24 #include "TGMsgBox.h"
25 #include "TMonitor.h"
26 #include "TServerSocket.h"
27 #include "TEveLine.h"
28 #include "TEveManager.h"
29 #include "TFile.h"
30 #include "TGClient.h"
31 #include "TVirtualX.h"
32 #include <KeySymbols.h>
33 
35 
37 
51 
56 
58 
61 
65 
68 
70 
71 #if defined(R__LINUX)
72 #include "TGX11.h" // !!!! AMT has to be at the end to pass build
73 #include "X11/Xlib.h"
74 #endif
75 //
76 // constants, enums and typedefs
77 //
78 
79 static const char* const kInputFilesOpt = "input-files";
80 static const char* const kInputFilesCommandOpt = "input-files,i";
81 static const char* const kConfigFileOpt = "config-file";
82 static const char* const kConfigFileCommandOpt = "config-file,c";
83 static const char* const kGeomFileOpt = "geom-file";
84 static const char* const kGeomFileCommandOpt = "geom-file,g";
85 static const char* const kSimGeomFileOpt = "sim-geom-file";
86 static const char* const kSimGeomFileCommandOpt = "sim-geom-file";
87 static const char* const kTGeoNameOpt = "tgeo-name";
88 static const char* const kTGeoNameCommandOpt = "tgeo-name";
89 static const char* const kNoConfigFileOpt = "noconfig";
90 static const char* const kNoConfigFileCommandOpt = "noconfig,n";
91 static const char* const kPlayOpt = "play";
92 static const char* const kPlayCommandOpt = "play,p";
93 static const char* const kLoopOpt = "loop";
94 static const char* const kLoopCommandOpt = "loop";
95 static const char* const kLogLevelCommandOpt = "log";
96 static const char* const kLogTreeCacheOpt = "log-tree-cache";
97 static const char* const kSizeTreeCacheOpt = "tree-cache-size";
98 static const char* const kPrefetchTreeCacheOpt = "tree-cache-prefetch";
99 static const char* const kEveOpt = "eve";
100 static const char* const kEveCommandOpt = "eve";
101 static const char* const kAdvancedRenderOpt = "shine";
102 static const char* const kAdvancedRenderCommandOpt = "shine,s";
103 static const char* const kHelpOpt = "help";
104 static const char* const kHelpCommandOpt = "help,h";
105 static const char* const kSoftCommandOpt = "soft";
106 static const char* const kExpertCommandOpt = "expert";
107 static const char* const kPortCommandOpt = "port";
108 static const char* const kPlainRootCommandOpt = "prompt";
109 static const char* const kRootInteractiveCommandOpt = "root-interactive,r";
110 static const char* const kChainCommandOpt = "chain";
111 static const char* const kLiveCommandOpt = "live";
112 static const char* const kFieldCommandOpt = "field";
113 static const char* const kFreePaletteCommandOpt = "free-palette";
114 static const char* const kAutoSaveAllViews = "auto-save-all-views";
115 static const char* const kAutoSaveType = "auto-save-type";
116 static const char* const kAutoSaveHeight = "auto-save-height";
117 static const char* const kSyncAllViews = "sync-all-views";
118 static const char* const kEnableFPE = "enable-fpe";
119 static const char* const kZeroWinOffsets = "zero-window-offsets";
120 static const char* const kNoVersionCheck = "no-version-check";
121 
122 //
123 // constructors and destructor
124 //
126  : CmsShowMainBase(),
127  m_navigator(new CmsShowNavigator(*this)),
128  m_metadataManager(new FWLiteJobMetadataManager()),
129  m_context(new fireworks::Context(
130  changeManager(), selectionManager(), eiManager(), colorManager(), m_metadataManager.get())),
131  m_loadedAnyInputFile(false),
132  m_openFile(nullptr),
133  m_live(false),
134  m_liveTimer(new SignalTimer()),
135  m_liveTimeout(600000),
136  m_lastXEventSerial(0),
137  m_noVersionCheck(false),
138  m_globalTagCheck(true) {
139  try {
140  TGLWidget* w = TGLWidget::Create(gClient->GetDefaultRoot(), kTRUE, kTRUE, nullptr, 10, 10);
141  delete w;
142  } catch (std::exception& iException) {
143  fwLog(fwlog::kError) << "Failed creating an OpenGL window: " << iException.what()
144  << "\n"
145  "Things to check:\n"
146  "- Is DISPLAY environment variable set?\n"
147  "- Are OpenGL libraries installed?\n"
148  "- If running remotely, make sure you use 'ssh -X' or 'ssh -Y'.\n"
149  "See also: https://twiki.cern.ch/twiki/bin/viewauth/CMS/WorkBookFireworks\n";
150  gSystem->Exit(1);
151  }
152 
153  eiManager()->setContext(m_context.get());
154 
155  std::string descString(argv[0]);
156  descString += " [options] <data file>\nGeneral";
157 
158  namespace po = boost::program_options;
159  po::options_description desc(descString);
160  desc.add_options()(kInputFilesCommandOpt, po::value<std::vector<std::string> >(), "Input root files")(
161  kConfigFileCommandOpt, po::value<std::string>(), "Include configuration file")(
162  kNoConfigFileCommandOpt, "Empty configuration")(kNoVersionCheck, "No file version check")(
163  kGeomFileCommandOpt, po::value<std::string>(), "Reco geometry file. Default is cmsGeom10.root")(
165  po::value<std::string>(),
166  "Geometry file for browsing in table view. Default is CmsSimGeom-14.root. Can be simulation or reco geometry in "
167  "TGeo format")(kTGeoNameCommandOpt, po::value<std::string>(), "TGeoManager name. The default is \"cmsGeo;1\"")(
168  kFieldCommandOpt, po::value<double>(), "Set magnetic field value explicitly. Default is auto-field estimation")(
169  kRootInteractiveCommandOpt, "Enable root interactive prompt")(
170  kSoftCommandOpt, "Try to force software rendering to avoid problems with bad hardware drivers")(
171  kExpertCommandOpt, "Enable PF user plugins.")(kHelpCommandOpt, "Display help message");
172 
173  po::options_description livedesc("Live Event Display");
174  livedesc.add_options()(
175  kPlayCommandOpt, po::value<float>(), "Start in play mode with given interval between events in seconds")(
176  kPortCommandOpt, po::value<unsigned int>(), "Listen to port for new data files to open")(
177  kLoopCommandOpt, "Loop events in play mode")(
179  po::value<unsigned int>(),
180  "Chain up to a given number of recently open files. Default is 1 - no chain")(
181  kLiveCommandOpt, "Enforce playback mode if a user is not using display")(
183  po::value<std::string>(),
184  "Auto-save all views with given prefix (run_event_lumi_view.<auto-save-type> is appended)")(
185  kAutoSaveType, po::value<std::string>(), "Image type of auto-saved views, png or jpg (png is default)")(
186  kAutoSaveHeight, po::value<int>(), "Screenshots height when auto-save-all-views is enabled")(
187  kSyncAllViews, "Synchronize all views on new event");
188 
189  po::options_description debugdesc("Debug");
190  debugdesc.add_options()(kLogLevelCommandOpt,
191  po::value<unsigned int>(),
192  "Set log level starting from 0 to 4 : kDebug, kInfo, kWarning, kError")(
193  kEveCommandOpt, "Show TEveBrowser to help debug problems")(kEnableFPE,
194  "Enable detection of floating-point exceptions");
195 
196  po::options_description tcachedesc("TreeCache");
197  tcachedesc.add_options()(kLogTreeCacheOpt, "Log tree cache operations and status")(
198  kSizeTreeCacheOpt, po::value<int>(), "Set size of TTreeCache for data access in MB (default is 50)")(
199  kPrefetchTreeCacheOpt, "Enable prefetching");
200 
201  po::options_description rnrdesc("Appearance");
202  rnrdesc.add_options()(kFreePaletteCommandOpt, "Allow free color selection (requires special configuration!)")(
203  kZeroWinOffsets, "Disable auto-detection of window position offsets")(kAdvancedRenderCommandOpt,
204  "Enable line anti-aliasing");
205  po::positional_options_description p;
206  p.add(kInputFilesOpt, -1);
207 
208  po::options_description hiddendesc("hidden");
209  hiddendesc.add_options();
210 
211  po::options_description all("");
212  all.add(desc).add(rnrdesc).add(livedesc).add(debugdesc).add(tcachedesc);
213 
214  int newArgc = argc;
215  char** newArgv = argv;
216  po::variables_map vm;
217  try {
218  po::store(po::command_line_parser(newArgc, newArgv).options(all).positional(p).run(), vm);
219 
220  po::notify(vm);
221  } catch (const std::exception& e) {
222  // Return with exit status 0 to avoid generating crash reports
223 
224  fwLog(fwlog::kError) << e.what() << std::endl;
225  std::cout << all << std::endl;
226  exit(0);
227  }
228 
229  if (vm.count(kHelpOpt)) {
230  std::cout << all << std::endl;
231  exit(0);
232  }
233 
234  if (vm.count(kLogLevelCommandOpt)) {
235  fwlog::LogLevel level = (fwlog::LogLevel)(vm[kLogLevelCommandOpt].as<unsigned int>());
237  }
238 
239  if (vm.count(kLogTreeCacheOpt)) {
240  fwLog(fwlog::kInfo) << "Enabling logging of TTreCache operations." << std::endl;
242  }
243 
244  if (vm.count(kPrefetchTreeCacheOpt)) {
245  fwLog(fwlog::kInfo) << "Enabling TTreCache prefetching." << std::endl;
247  }
248 
249  if (vm.count(kSizeTreeCacheOpt)) {
250  int ds = vm[kSizeTreeCacheOpt].as<int>();
251  if (ds < 0)
252  throw std::runtime_error("tree-cache-size should be non negative");
253  if (ds > 8192)
254  throw std::runtime_error("tree-cache-size should be smaller than 8 GB");
255  fwLog(fwlog::kInfo) << "Setting default TTreeCache size to " << ds << " MB." << std::endl;
256  FWTTreeCache::SetDefaultCacheSize(ds * 1024 * 1024);
257  }
258 
259  if (vm.count(kPlainRootCommandOpt)) {
260  fwLog(fwlog::kInfo) << "Plain ROOT prompt requested" << std::endl;
261  return;
262  }
263 
264  const char* cmspath = gSystem->Getenv("CMSSW_BASE");
265  if (nullptr == cmspath) {
266  throw std::runtime_error("CMSSW_BASE environment variable not set");
267  }
268 
269  // input file
270  if (vm.count(kInputFilesOpt)) {
271  m_inputFiles = vm[kInputFilesOpt].as<std::vector<std::string> >();
272  }
273 
274  if (m_inputFiles.empty())
275  fwLog(fwlog::kInfo) << "No data file given." << std::endl;
276  else if (m_inputFiles.size() == 1)
277  fwLog(fwlog::kInfo) << "Input " << m_inputFiles.front() << std::endl;
278  else
279  fwLog(fwlog::kInfo) << m_inputFiles.size() << " input files; first: " << m_inputFiles.front()
280  << ", last: " << m_inputFiles.back() << std::endl;
281 
282  // configuration file
283  if (vm.count(kConfigFileOpt)) {
284  setConfigFilename(vm[kConfigFileOpt].as<std::string>());
285  if (access(configFilename(), R_OK) == -1) {
286  fwLog(fwlog::kError) << "Specified configuration file does not exist. Quitting.\n";
287  exit(1);
288  }
289 
290  fwLog(fwlog::kInfo) << "Config " << configFilename() << std::endl;
291  } else {
292  if (vm.count(kNoConfigFileOpt)) {
293  fwLog(fwlog::kInfo) << "No configuration is loaded.\n";
295  }
296  }
297 
298  // geometry
299  if (vm.count(kGeomFileOpt)) {
300  m_globalTagCheck = false;
301  setGeometryFilename(vm[kGeomFileOpt].as<std::string>());
302  fwLog(fwlog::kInfo) << "Geometry file " << geometryFilename() << "\n";
303  }
304 
305  if (vm.count(kSimGeomFileOpt)) {
306  if (vm.count(kTGeoNameOpt))
307  setSimGeometryFilename(vm[kSimGeomFileOpt].as<std::string>(), vm[kTGeoNameOpt].as<std::string>());
308  else
309  setSimGeometryFilename(vm[kSimGeomFileOpt].as<std::string>(), "cmsGeo;1");
310  } else {
311  setSimGeometryFilename("cmsSimGeom-14.root", "cmsGeo;1");
312  }
313 
314  // Free-palette palette
315  if (vm.count(kFreePaletteCommandOpt)) {
317  fwLog(fwlog::kInfo) << "Palette restriction removed on user request!\n";
318  }
319  bool eveMode = vm.count(kEveOpt);
320 
321  //Delay creating guiManager and enabling autoloading until here so that if we have a 'help' request we don't
322  // open any graphics or build dictionaries
324 
325  TEveManager::Create(kFALSE, eveMode ? "FIV" : "FI");
326 
327  if (vm.count(kExpertCommandOpt)) {
328  m_context->setHidePFBuilders(false);
329  } else {
330  m_context->setHidePFBuilders(true);
331  }
332 
333  if (vm.count(kExpertCommandOpt)) {
334  m_context->setHidePFBuilders(false);
335  } else {
336  m_context->setHidePFBuilders(true);
337  }
338 
339  setup(m_navigator.get(), m_context.get(), m_metadataManager.get());
340 
341  if (vm.count(kZeroWinOffsets)) {
343  fwLog(fwlog::kInfo) << "Window offsets reset on user request!\n";
344  }
345 
346  if (vm.count(kAdvancedRenderOpt)) {
347  TEveLine::SetDefaultSmooth(kTRUE);
348  }
349 
350  //figure out where to find macros
351  //tell ROOT where to find our macros
353  // first check if port is not occupied
354  if (vm.count(kPortCommandOpt)) {
355  f = boost::bind(&CmsShowMain::setupSocket, this, vm[kPortCommandOpt].as<unsigned int>());
356  startupTasks()->addTask(f);
357  }
358  if (!geometryFilename().empty()) {
359  f = boost::bind(&CmsShowMainBase::loadGeometry, this);
360  startupTasks()->addTask(f);
361  }
362  f = boost::bind(&CmsShowMainBase::setupViewManagers, this);
363  startupTasks()->addTask(f);
364 
365  if (vm.count(kLiveCommandOpt)) {
366  f = boost::bind(&CmsShowMain::setLiveMode, this);
367  startupTasks()->addTask(f);
368  }
369 
370  if (vm.count(kFieldCommandOpt)) {
371  m_context->getField()->setSource(FWMagField::kUser);
372  m_context->getField()->setUserField(vm[kFieldCommandOpt].as<double>());
373  }
374 
375  f = boost::bind(&CmsShowMain::setupDataHandling, this);
376  startupTasks()->addTask(f);
377 
378  if (vm.count(kLoopOpt))
379  setPlayLoop();
380 
381  if (eveMode) {
382  f = boost::bind(&CmsShowMainBase::setupDebugSupport, this);
383  startupTasks()->addTask(f);
384  }
385  if (vm.count(kChainCommandOpt)) {
386  f = boost::bind(
388  startupTasks()->addTask(f);
389  }
390  if (vm.count(kPlayOpt)) {
391  f = boost::bind(&CmsShowMainBase::setupAutoLoad, this, vm[kPlayOpt].as<float>());
392  startupTasks()->addTask(f);
393  }
394 
395  if (vm.count(kAutoSaveAllViews)) {
396  std::string type = "png";
397  if (vm.count(kAutoSaveType)) {
398  type = vm[kAutoSaveType].as<std::string>();
399  if (type != "png" && type != "jpg") {
400  fwLog(fwlog::kError) << "Specified auto-save type not supported. Quitting.\n";
401  exit(1);
402  }
403  }
404  std::string fmt = vm[kAutoSaveAllViews].as<std::string>();
405  fmt += "%u_%u_%llu_%s.";
406  fmt += type;
408  }
409  if (vm.count(kAutoSaveHeight)) {
411  }
412  if (vm.count(kSyncAllViews)) {
414  }
415  if (vm.count(kNoVersionCheck)) {
416  m_noVersionCheck = true;
417  }
418  if (vm.count(kEnableFPE)) {
419  gSystem->SetFPEMask();
420  }
421 
422  if (vm.count(kPortCommandOpt)) {
423  f = boost::bind(&CmsShowMain::connectSocket, this);
424  startupTasks()->addTask(f);
425  }
426 
428 }
429 
430 //
431 // Destruction
432 //
433 
435  //avoids a seg fault from eve which happens if eve is terminated after the GUI is gone
437 }
438 
439 class DieTimer : public TTimer {
440 protected:
442 
443 public:
444  DieTimer(CmsShowMain* app) : TTimer(), fApp(app) { Start(0, kTRUE); }
445 
446  Bool_t Notify() override {
447  TurnOff();
448  fApp->doExit();
449  delete this;
450  return kFALSE;
451  }
452 };
453 
454 void CmsShowMain::quit() { new DieTimer(this); }
455 
457  // pre terminate eve
458  m_context->deleteEveElements();
460 
461  // sleep at least 150 ms
462  // windows in ROOT GUI are destroyed in 150 ms timeout after
463  gSystem->Sleep(151);
464  gSystem->ProcessEvents();
465  gSystem->ExitLoop();
466 }
467 
468 //
469 // assignment operators
470 //
471 // const CmsShowMain& CmsShowMain::operator=(const CmsShowMain& rhs)
472 // {
473 // //An exception safe implementation is
474 // CmsShowMain temp(rhs);
475 // swap(rhs);
476 //
477 // return *this;
478 // }
479 
480 //
481 // member functions
482 //
483 
485  if (m_navigator.get())
486  return static_cast<const fwlite::Event*>(m_navigator->getCurrentEvent());
487  return nullptr;
488 }
489 
490 void CmsShowMain::fileChangedSlot(const TFile* file) {
491  m_openFile = file;
492  if (file)
493  guiManager()->titleChanged(m_navigator->frameTitle());
494 
495  if (context()->getField()->getSource() == FWMagField::kNone) {
497  }
498  if (geometryFilename().empty()) {
499  std::string gt = m_navigator->getCurrentGlobalTag();
501  }
503 }
504 
507  guiManager()->titleChanged(m_navigator->frameTitle());
509 }
510 
512  //printf("Need to reset\n");
513 }
514 
516  const char* kRootType[] = {"ROOT files", "*.root", nullptr, nullptr};
517  TGFileInfo fi;
518  fi.fFileTypes = kRootType;
519  /* this is how things used to be done:
520  fi.fIniDir = ".";
521  this is bad because the destructor calls delete[] on fIniDir.
522  */
523  fi.fIniDir = new char[128];
524  strncpy(fi.fIniDir, ".", 127);
525  guiManager()->updateStatus("waiting for data file ...");
526  new TGFileDialog(gClient->GetDefaultRoot(), guiManager()->getMainFrame(), kFDOpen, &fi);
527  guiManager()->updateStatus("loading file ...");
528  if (fi.fFilename) {
529  m_navigator->openFile(fi.fFilename);
530 
532  m_navigator->firstEvent();
533  checkPosition();
534  draw();
535  }
536  guiManager()->clearStatus();
537 }
538 
540  const char* kRootType[] = {"ROOT files", "*.root", nullptr, nullptr};
541  TGFileInfo fi;
542  fi.fFileTypes = kRootType;
543  /* this is how things used to be done:
544  fi.fIniDir = ".";
545  this is bad because the destructor calls delete[] on fIniDir.
546  */
547  fi.fIniDir = new char[128];
548  strncpy(fi.fIniDir, ".", 127);
549  guiManager()->updateStatus("waiting for data file ...");
550  new TGFileDialog(gClient->GetDefaultRoot(), guiManager()->getMainFrame(), kFDOpen, &fi);
551  guiManager()->updateStatus("loading file ...");
552  if (fi.fFilename) {
553  m_navigator->appendFile(fi.fFilename, false, false);
555  checkPosition();
556  draw();
557  guiManager()->titleChanged(m_navigator->frameTitle());
558  }
559  guiManager()->clearStatus();
560 }
561 
563  if (m_searchFiles.get() == nullptr) {
564  m_searchFiles = std::unique_ptr<CmsShowSearchFiles>(
565  new CmsShowSearchFiles("", "Open Remote Data Files", guiManager()->getMainFrame(), 500, 400));
566  m_searchFiles->CenterOnParent(kTRUE, TGTransientFrame::kBottomRight);
567  }
568  std::string chosenFile = m_searchFiles->chooseFileFromURL();
569  if (!chosenFile.empty()) {
570  guiManager()->updateStatus("loading file ...");
571  if (m_navigator->openFile(chosenFile)) {
573  m_navigator->firstEvent();
574  checkPosition();
575  draw();
576  guiManager()->clearStatus();
577  } else {
578  guiManager()->updateStatus("failed to load data file");
579  }
580  }
581 }
582 
583 //
584 // const member functions
585 //
586 
587 //_______________________________________________________________________________
590 
591  // case when start with no input file
592  if (!m_loadedAnyInputFile) {
593  if (m_monitor.get())
595  return;
596  }
597 
598  bool reachedEnd = (forward() && m_navigator->isLastEvent()) || (!forward() && m_navigator->isFirstEvent());
599 
600  if (loop() && reachedEnd) {
601  forward() ? m_navigator->firstEvent() : m_navigator->lastEvent();
602  draw();
603  } else if (!reachedEnd) {
604  forward() ? m_navigator->nextEvent() : m_navigator->previousEvent();
605  draw();
606  }
607 
608  // stop loop in case no loop or monitor mode
609  if (reachedEnd && (loop() || m_monitor.get()) == kFALSE) {
610  if (forward() && m_navigator->isLastEvent()) {
612  checkPosition();
613  }
614 
615  if ((!forward()) && m_navigator->isFirstEvent()) {
617  checkPosition();
618  }
619  } else
621 }
622 
623 //______________________________________________________________________________
624 
626  if ((m_monitor.get() || loop()) && isPlaying())
627  return;
628 
630 
631  if (m_navigator->isFirstEvent())
633 
634  if (m_navigator->isLastEvent()) {
635  guiManager()->disableNext();
636  // force enable play events action in --port mode
637  if (m_monitor.get() && !guiManager()->playEventsAction()->isEnabled())
639  }
640 }
641 
642 //==============================================================================
644  guiManager()->updateStatus("Setting up data handling...");
645 
646  // navigator filtering ->
647  m_navigator->fileChanged_.connect(boost::bind(&CmsShowMain::fileChangedSlot, this, _1));
648  m_navigator->editFiltersExternally_.connect(boost::bind(&FWGUIManager::updateEventFilterEnable, guiManager(), _1));
649  m_navigator->filterStateChanged_.connect(boost::bind(&CmsShowMain::navigatorChangedFilterState, this, _1));
650  m_navigator->postFiltering_.connect(boost::bind(&CmsShowMain::postFiltering, this, _1));
651 
652  // navigator fitlering <-
654  guiManager()->filterButtonClicked_.connect(boost::bind(&CmsShowMain::filterButtonClicked, this));
655 
656  // Data handling. File related and therefore not in the base class.
657  if (guiManager()->getAction(cmsshow::sOpenData) != nullptr)
658  guiManager()->getAction(cmsshow::sOpenData)->activated.connect(sigc::mem_fun(*this, &CmsShowMain::openData));
659  if (guiManager()->getAction(cmsshow::sAppendData) != nullptr)
660  guiManager()->getAction(cmsshow::sAppendData)->activated.connect(sigc::mem_fun(*this, &CmsShowMain::appendData));
661  if (guiManager()->getAction(cmsshow::sSearchFiles) != nullptr)
662  guiManager()
664  ->activated.connect(sigc::mem_fun(*this, &CmsShowMain::openDataViaURL));
665 
666  setupActions();
667  // init data from CmsShowNavigator configuration, can do this with signals since there were not connected yet
668  guiManager()->setFilterButtonIcon(m_navigator->getFilterState());
669 
670  for (unsigned int ii = 0; ii < m_inputFiles.size(); ++ii) {
671  const std::string& fname = m_inputFiles[ii];
672  if (fname.empty())
673  continue;
674  guiManager()->updateStatus("loading data file ...");
675  if (!m_navigator->appendFile(fname, false, false)) {
676  guiManager()->updateStatus("failed to load data file");
677  } else {
678  m_loadedAnyInputFile = true;
679  }
680  }
681 
682  if (m_loadedAnyInputFile) {
683  m_navigator->firstEvent();
684  checkPosition();
685  if (configurationManager()->getIgnore())
686  guiManager()->initEmpty();
687  else
689  } else {
690  if (configFilename()[0] == '\0') {
691  guiManager()->initEmpty();
692  } else {
694  }
695 
696  bool geoBrowser = (configFilename()[0] != '\0') && (eiManager()->begin() == eiManager()->end());
697 
698  if (m_monitor.get() == nullptr && (configurationManager()->getIgnore() == false) && (!geoBrowser)) {
699  if (m_inputFiles.empty())
700  openDataViaURL();
701  else
702  openData();
703  }
704  }
705 }
706 
708  if (m_loadedAnyInputFile == false) {
709  m_loadedAnyInputFile = true;
710  if ((configFilename()[0] == '\0') && (configurationManager()->getIgnore() == false))
712  }
713 }
714 
715 void CmsShowMain::setupSocket(unsigned int iSocket) {
716  m_monitor = std::unique_ptr<TMonitor>(new TMonitor);
717  TServerSocket* server = new TServerSocket(iSocket, kTRUE);
718  if (server->GetErrorCode()) {
719  fwLog(fwlog::kError) << "CmsShowMain::setupSocket, can't create socket on port " << iSocket << "." << std::endl;
720  exit(0);
721  }
722  m_monitor->Add(server);
723 }
724 
725 void CmsShowMain::connectSocket() { m_monitor->Connect("Ready(TSocket*)", "CmsShowMain", this, "notified(TSocket*)"); }
726 
727 void CmsShowMain::notified(TSocket* iSocket) {
728  TServerSocket* server = dynamic_cast<TServerSocket*>(iSocket);
729  if (server) {
730  TSocket* connection = server->Accept();
731  if (connection) {
732  m_monitor->Add(connection);
733  std::stringstream s;
734  s << "received connection from " << iSocket->GetInetAddress().GetHostName();
735  guiManager()->updateStatus(s.str().c_str());
736  }
737  } else {
738  char buffer[4096];
739  memset(buffer, 0, sizeof(buffer));
740  if (iSocket->RecvRaw(buffer, sizeof(buffer)) <= 0) {
741  m_monitor->Remove(iSocket);
742  //std::stringstream s;
743  //s << "closing connection to "<<iSocket->GetInetAddress().GetHostName();
744  //m_guiManager->updateStatus(s.str().c_str());
745  delete iSocket;
746  return;
747  }
749  std::string::size_type lastNonSpace = fileName.find_last_not_of(" \n\t");
750  if (lastNonSpace != std::string::npos) {
751  fileName.erase(lastNonSpace + 1);
752  }
753 
754  std::stringstream s;
755  s << "New file notified '" << fileName << "'";
756  guiManager()->updateStatus(s.str().c_str());
757 
758  bool appended = m_navigator->appendFile(fileName, true, m_live);
759 
760  if (appended) {
761  if (m_live && isPlaying() && forward())
762  m_navigator->activateNewFileOnNextEvent();
763  else if (!isPlaying())
764  checkPosition();
765 
766  // bootstrap case: --port and no input file
767  if (!m_loadedAnyInputFile) {
768  m_loadedAnyInputFile = true;
769  m_navigator->firstEvent();
770  if (!isPlaying())
771  draw();
772  }
773 
774  std::stringstream sr;
775  sr << "New file registered '" << fileName << "'";
776  guiManager()->updateStatus(sr.str().c_str());
777  } else {
778  std::stringstream sr;
779  sr << "New file NOT registered '" << fileName << "'";
780  guiManager()->updateStatus(sr.str().c_str());
781  }
782  }
783 }
784 
786  if (m_live) {
787  Int_t keycode = gVirtualX->KeysymToKeycode((int)kKey_Space);
788  Window_t id = FWGUIManager::getGUIManager()->getMainFrame()->GetId();
789  gVirtualX->GrabKey(id, keycode, 0, isPlaying());
790  }
791 }
792 
795  if (m_live)
796  m_navigator->resetNewFileOnNextEvent();
799  checkPosition();
800 }
801 
804  if (m_navigator->filesNeedUpdate() == false) {
805  guiManager()->setFilterButtonText(m_navigator->filterStatusMessage());
806  checkPosition();
807  }
808 }
809 
811  if (m_navigator->getFilterState() == CmsShowNavigator::kWithdrawn)
813  else
814  m_navigator->toggleFilterEnable();
815 }
816 
818  // called only if filter has changed
819  guiManager()->updateStatus("Filtering events");
820 }
821 
822 void CmsShowMain::postFiltering(bool doDraw) {
823  // called only filter is changed
824  guiManager()->clearStatus();
825  if (doDraw)
826  draw();
827  checkPosition();
828  guiManager()->setFilterButtonText(m_navigator->filterStatusMessage());
829 }
830 
831 //______________________________________________________________________________
832 
834  m_live = true;
835  m_liveTimer.reset(new SignalTimer());
836  m_liveTimer->timeout_.connect(boost::bind(&CmsShowMain::checkLiveMode, this));
837 
838  Window_t rootw, childw;
839  Int_t root_x, root_y, win_x, win_y;
840  UInt_t mask;
841  gVirtualX->QueryPointer(gClient->GetDefaultRoot()->GetId(), rootw, childw, root_x, root_y, win_x, win_y, mask);
842 
843  m_liveTimer->SetTime(m_liveTimeout);
844  m_liveTimer->Reset();
845  m_liveTimer->TurnOn();
846 }
847 
849  m_liveTimer->TurnOff();
850 
851 #if defined(R__LINUX)
852  TGX11* x11 = dynamic_cast<TGX11*>(gVirtualX);
853  if (x11) {
854  XAnyEvent* ev = (XAnyEvent*)x11->GetNativeEvent();
855  // printf("serial %d \n",(int)ev->serial );
856 
857  if (!isPlaying() && m_lastXEventSerial == ev->serial)
859  m_lastXEventSerial = ev->serial;
860  }
861 #endif
862  m_liveTimer->SetTime((Long_t)(m_liveTimeout));
863  m_liveTimer->Reset();
864  m_liveTimer->TurnOn();
865 }
CmsShowMainBase::configFilename
const char * configFilename() const
Definition: CmsShowMainBase.h:75
personalPlayback.level
level
Definition: personalPlayback.py:22
ActionsList.h
kEnableFPE
static const char *const kEnableFPE
Definition: CmsShowMain.cc:118
CmsShowMain.h
kLogLevelCommandOpt
static const char *const kLogLevelCommandOpt
Definition: CmsShowMain.cc:95
cmsshow::sSearchFiles
const std::string sSearchFiles
Definition: ActionsList.cc:14
FWModelChangeManager.h
cmsBatch.argv
argv
Definition: cmsBatch.py:279
fwLog
#define fwLog(_level_)
Definition: fwLog.h:45
CmsShowMainBase::configurationManager
FWConfigurationManager * configurationManager()
Definition: CmsShowMainBase.h:56
FWGUIManager::filterButtonClicked_
sigc::signal< void > filterButtonClicked_
Definition: FWGUIManager.h:202
CmsShowMain::m_liveTimeout
int m_liveTimeout
Definition: CmsShowMain.h:127
CmsShowMainBase::setupConfiguration
void setupConfiguration()
Definition: CmsShowMainBase.cc:315
CmsShowMainBase::eventChangedImp
virtual void eventChangedImp()
Definition: CmsShowMainBase.cc:142
funct::false
false
Definition: Factorize.h:34
FWTTreeCache::SetDefaultCacheSize
static void SetDefaultCacheSize(int def_size)
Definition: FWTTreeCache.cc:29
FWGUIManager::enableActions
void enableActions(bool enable=true)
Definition: FWGUIManager.cc:316
kEveCommandOpt
static const char *const kEveCommandOpt
Definition: CmsShowMain.cc:100
CmsShowMainBase::loadGeometry
void loadGeometry()
Definition: CmsShowMainBase.cc:388
FWGUIManager::setFilterButtonIcon
void setFilterButtonIcon(int)
Definition: FWGUIManager.cc:1271
kSoftCommandOpt
static const char *const kSoftCommandOpt
Definition: CmsShowMain.cc:105
FWMagField::kNone
Definition: FWMagField.h:18
CmsShowMainBase::guiManager
FWGUIManager * guiManager()
Definition: CmsShowMainBase.h:61
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
kNoConfigFileCommandOpt
static const char *const kNoConfigFileCommandOpt
Definition: CmsShowMain.cc:90
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
CmsShowMainFrame::enableNavigatorControls
void enableNavigatorControls()
Definition: CmsShowMainFrame.cc:567
FWGUIManager::playEventsAction
CSGContinuousAction * playEventsAction()
Definition: FWGUIManager.cc:350
FWGUIManager::evePreTerminate
void evePreTerminate()
Definition: FWGUIManager.cc:241
CmsShowMain::CmsShowMain
CmsShowMain(int argc, char *argv[])
Definition: CmsShowMain.cc:125
kLiveCommandOpt
static const char *const kLiveCommandOpt
Definition: CmsShowMain.cc:111
CmsShowMain
Definition: CmsShowMain.h:58
CmsShowMainBase::loop
bool loop() const
Definition: CmsShowMainBase.h:107
kInputFilesCommandOpt
static const char *const kInputFilesCommandOpt
Definition: CmsShowMain.cc:80
kInputFilesOpt
static const char *const kInputFilesOpt
Definition: CmsShowMain.cc:79
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
kHelpCommandOpt
static const char *const kHelpCommandOpt
Definition: CmsShowMain.cc:104
FWConfigurationManager::setIgnore
void setIgnore()
Definition: FWConfigurationManager.h:50
gather_cfg.cout
cout
Definition: gather_cfg.py:144
FWGUIManager::resetWMOffsets
void resetWMOffsets()
Definition: FWGUIManager.cc:1319
CmsShowMain::setupDataHandling
void setupDataHandling()
Definition: CmsShowMain.cc:643
kPrefetchTreeCacheOpt
static const char *const kPrefetchTreeCacheOpt
Definition: CmsShowMain.cc:98
kPlainRootCommandOpt
static const char *const kPlainRootCommandOpt
Definition: CmsShowMain.cc:108
FWGeometry::applyGlobalTag
void applyGlobalTag(const std::string &gt)
Definition: FWGeometry.cc:56
CmsShowMainBase::setSimGeometryFilename
void setSimGeometryFilename(const std::string &filename, const std::string &geoname)
Definition: CmsShowMainBase.h:94
CmsShowMain::setLoadedAnyInputFileAfterStartup
void setLoadedAnyInputFileAfterStartup()
Definition: CmsShowMain.cc:707
kRootInteractiveCommandOpt
static const char *const kRootInteractiveCommandOpt
Definition: CmsShowMain.cc:109
kAutoSaveType
static const char *const kAutoSaveType
Definition: CmsShowMain.cc:115
CmsShowMainBase::setup
void setup(FWNavigatorBase *navigator, fireworks::Context *context, FWJobMetadataManager *metadataManager)
Definition: CmsShowMainBase.cc:196
Context
FWLiteJobMetadataUpdateRequest.h
CmsShowMain::m_navigator
std::unique_ptr< CmsShowNavigator > m_navigator
Definition: CmsShowMain.h:114
kAdvancedRenderCommandOpt
static const char *const kAdvancedRenderCommandOpt
Definition: CmsShowMain.cc:102
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
CmsShowMain::navigatorChangedFilterState
void navigatorChangedFilterState(int)
Definition: CmsShowMain.cc:802
FWColorSelect.h
FWLiteJobMetadataUpdateRequest
Definition: FWLiteJobMetadataUpdateRequest.h:12
CmsShowMainBase::setAutoSaveAllViewsHeight
void setAutoSaveAllViewsHeight(int x)
Definition: CmsShowMainBase.h:128
FWGUIManager::showEventFilterGUI_
sigc::signal< void, const TGWindow * > showEventFilterGUI_
Definition: FWGUIManager.h:203
FWSelectionManager::clearSelection
void clearSelection()
Definition: FWSelectionManager.cc:63
CmsShowMain::m_context
std::unique_ptr< fireworks::Context > m_context
Definition: CmsShowMain.h:116
FWGUIManager::titleChanged
void titleChanged(const char *title)
Definition: FWGUIManager.cc:318
FWEveViewManager.h
CmsShowMainBase::setConfigFilename
void setConfigFilename(const std::string &f)
Definition: CmsShowMainBase.h:74
python.cmstools.all
def all(container)
workaround iterator generators for ROOT classes
Definition: cmstools.py:26
CmsShowMainBase::SignalTimer
Definition: CmsShowMainBase.h:130
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::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
FWGUIManager::getMainFrame
CmsShowMainFrame * getMainFrame() const
Definition: FWGUIManager.h:196
edmScanValgrind.buffer
buffer
Definition: edmScanValgrind.py:171
DieTimer::Notify
Bool_t Notify() override
Definition: CmsShowMain.cc:446
cmsshow::sOpenData
const std::string sOpenData
Definition: ActionsList.cc:12
FWGUIManager::getAction
CSGAction * getAction(const std::string name)
Definition: FWGUIManager.cc:348
CmsShowSearchFiles
Definition: CmsShowSearchFiles.h:35
FWGUIManager::updateStatus
void updateStatus(const char *status)
Definition: FWGUIManager.cc:367
alignCSCRings.s
s
Definition: alignCSCRings.py:92
fwlog::LogLevel
LogLevel
Definition: fwLog.h:35
FWSelectionManager.h
trigger::size_type
uint16_t size_type
Definition: TriggerTypeDefs.h:18
CmsShowMainBase::setupActions
void setupActions()
Definition: CmsShowMainBase.cc:73
CmsShowMain::setLiveMode
void setLiveMode()
Definition: CmsShowMain.cc:833
FWTTreeCache::LoggingOn
static void LoggingOn()
Definition: FWTTreeCache.cc:21
kLoopCommandOpt
static const char *const kLoopCommandOpt
Definition: CmsShowMain.cc:94
FWColorManager.h
kAutoSaveHeight
static const char *const kAutoSaveHeight
Definition: CmsShowMain.cc:116
CmsShowMainBase::setAutoSaveAllViewsFormat
void setAutoSaveAllViewsFormat(const std::string &fmt)
Definition: CmsShowMainBase.h:127
CmsShowSearchFiles.h
CmsShowMain::autoLoadNewEvent
void autoLoadNewEvent() override
Definition: CmsShowMain.cc:588
w
const double w
Definition: UKUtility.cc:23
FWColorPopup::EnableFreePalette
static void EnableFreePalette()
Definition: FWColorSelect.cc:129
CmsShowMainBase
Definition: CmsShowMainBase.h:49
DieTimer::fApp
CmsShowMain * fApp
Definition: CmsShowMain.cc:441
FWLiteJobMetadataManager
Definition: FWLiteJobMetadataManager.h:12
FWMagField::getSource
ESource getSource() const
Definition: FWMagField.h:31
kSimGeomFileCommandOpt
static const char *const kSimGeomFileCommandOpt
Definition: CmsShowMain.cc:86
kSizeTreeCacheOpt
static const char *const kSizeTreeCacheOpt
Definition: CmsShowMain.cc:97
CSGAction::activated
sigc::signal< void > activated
Definition: CSGAction.h:100
kPlayCommandOpt
static const char *const kPlayCommandOpt
Definition: CmsShowMain.cc:92
kHelpOpt
static const char *const kHelpOpt
Definition: CmsShowMain.cc:103
CmsShowMainBase::setupAutoLoad
void setupAutoLoad(float x)
Definition: CmsShowMainBase.cc:294
kGeomFileCommandOpt
static const char *const kGeomFileCommandOpt
Definition: CmsShowMain.cc:84
CmsShowMainBase::isPlaying
bool isPlaying() const
Definition: CmsShowMainBase.h:118
CmsShowMainBase::draw
void draw()
Definition: CmsShowMainBase.cc:173
CmsShowTaskExecutor.h
CmsShowMainBase::startupTasks
CmsShowTaskExecutor * startupTasks()
Definition: CmsShowMainBase.h:66
CmsShowMainBase::stopPlaying
virtual void stopPlaying()
Definition: CmsShowMainBase.cc:367
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
kChainCommandOpt
static const char *const kChainCommandOpt
Definition: CmsShowMain.cc:110
CmsShowMainBase::setupDebugSupport
void setupDebugSupport()
Definition: CmsShowMainBase.cc:342
cppFunctionSkipper.exception
exception
Definition: cppFunctionSkipper.py:10
funct::true
true
Definition: Factorize.h:173
FWMagField::resetFieldEstimate
void resetFieldEstimate() const
Definition: FWMagField.cc:135
FWTableViewManager.h
CmsShowMainBase::startAutoLoadTimer
void startAutoLoadTimer()
Definition: CmsShowMainBase.cc:303
FWLiteEnabler::enable
static void enable()
enable automatic library loading
Definition: FWLiteEnabler.cc:46
FWGUIManager::initEmpty
void initEmpty()
Definition: FWGUIManager.cc:1321
CmsShowNavigator::kWithdrawn
Definition: CmsShowNavigator.h:38
FWEveViewManager::syncAllViews
static void syncAllViews()
Definition: FWEveViewManager.h:76
CmsShowNavigator::setMaxNumberOfFilesToChain
void setMaxNumberOfFilesToChain(unsigned int i)
Definition: CmsShowNavigator.h:99
CmsShowMain::m_openFile
const TFile * m_openFile
Definition: CmsShowMain.h:120
kNoVersionCheck
static const char *const kNoVersionCheck
Definition: CmsShowMain.cc:120
kZeroWinOffsets
static const char *const kZeroWinOffsets
Definition: CmsShowMain.cc:119
CmsShowMainBase::geometryFilename
const std::string & geometryFilename(void)
Definition: CmsShowMainBase.h:91
FWGUIManager::disablePrevious
void disablePrevious()
Definition: FWGUIManager.cc:358
FWTTreeCache.h
contentValuesFiles.server
server
Definition: contentValuesFiles.py:37
CmsShowMain::doExit
void doExit()
Definition: CmsShowMain.cc:456
FWTTreeCache::PrefetchingOn
static void PrefetchingOn()
Definition: FWTTreeCache.cc:25
FWEventItemsManager::end
const_iterator end() const
Definition: FWEventItemsManager.cc:300
kSyncAllViews
static const char *const kSyncAllViews
Definition: CmsShowMain.cc:117
fireworks::Context::getGeom
FWGeometry * getGeom() const
Definition: Context.h:72
CmsShowNavigator::showEventFilterGUI
void showEventFilterGUI(const TGWindow *p)
Definition: CmsShowNavigator.cc:650
cmsshow::sAppendData
const std::string sAppendData
Definition: ActionsList.cc:13
CmsShowMain::m_noVersionCheck
bool m_noVersionCheck
Definition: CmsShowMain.h:130
kAutoSaveAllViews
static const char *const kAutoSaveAllViews
Definition: CmsShowMain.cc:114
CmsShowMainBase::setupViewManagers
void setupViewManagers()
Definition: CmsShowMainBase.cc:107
CmsShowTaskExecutor::TaskFunctor
boost::function0< void > TaskFunctor
Definition: CmsShowTaskExecutor.h:35
CSGAction.h
FWGUIManager::disableNext
void disableNext()
Definition: FWGUIManager.cc:360
FrontierConditions_GlobalTag_cff.file
file
Definition: FrontierConditions_GlobalTag_cff.py:13
CmsShowMain::getCurrentEvent
const fwlite::Event * getCurrentEvent() const
Definition: CmsShowMain.cc:484
kFieldCommandOpt
static const char *const kFieldCommandOpt
Definition: CmsShowMain.cc:112
CmsShowMain::m_live
bool m_live
Definition: CmsShowMain.h:125
CmsShowMainBase::setGeometryFilename
void setGeometryFilename(const std::string &filename)
Definition: CmsShowMainBase.h:90
CmsShowMainBase::stopAutoLoadTimer
void stopAutoLoadTimer()
Definition: CmsShowMainBase.cc:310
kLogTreeCacheOpt
static const char *const kLogTreeCacheOpt
Definition: CmsShowMain.cc:96
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
FWGUIManager::setFilterButtonText
void setFilterButtonText(const char *txt)
Definition: FWGUIManager.cc:1269
CmsShowMain::~CmsShowMain
~CmsShowMain() override
Definition: CmsShowMain.cc:434
CSGContinuousAction.h
CmsShowMainBase::selectionManager
FWSelectionManager * selectionManager()
Definition: CmsShowMainBase.h:59
CmsShowMainBase::forward
bool forward() const
Definition: CmsShowMainBase.h:106
kSimGeomFileOpt
static const char *const kSimGeomFileOpt
Definition: CmsShowMain.cc:85
fwLog.h
fwlog::setPresentLogLevel
void setPresentLogLevel(LogLevel)
Definition: fwLog.cc:47
get
#define get
CmsShowMain::openDataViaURL
void openDataViaURL()
Definition: CmsShowMain.cc:562
FWGUIManager::getGUIManager
static FWGUIManager * getGUIManager()
Definition: FWGUIManager.cc:685
DieTimer
Definition: CmsShowMain.cc:439
FWConfigurationManager::getIgnore
bool getIgnore() const
Definition: FWConfigurationManager.h:51
CmsShowMain::m_monitor
std::unique_ptr< TMonitor > m_monitor
Definition: CmsShowMain.h:133
CmsShowMain::connectSocket
void connectSocket()
Definition: CmsShowMain.cc:725
CmsShowTaskExecutor::startDoingTasks
void startDoingTasks() override
Definition: CmsShowTaskExecutor.cc:55
FWMagField.h
fireworks::Context::getField
FWMagField * getField() const
Definition: Context.h:66
alignmentValidation.fname
string fname
main script
Definition: alignmentValidation.py:959
CmsShowMain::reachedEnd
void reachedEnd()
fwlog::kInfo
Definition: fwLog.h:35
FWEventItemsManager::begin
const_iterator begin() const
NOTE: iterator is allowed to return a null object for items that have been removed.
Definition: FWEventItemsManager.cc:299
type
type
Definition: HCALResponse.h:21
CmsShowMain::m_inputFiles
std::vector< std::string > m_inputFiles
Definition: CmsShowMain.h:118
writedatasetfile.run
run
Definition: writedatasetfile.py:27
CmsShowMain::m_liveTimer
std::unique_ptr< SignalTimer > m_liveTimer
Definition: CmsShowMain.h:126
FWGUIManager::showEventFilterGUI
void showEventFilterGUI()
Definition: FWGUIManager.cc:1265
kTGeoNameCommandOpt
static const char *const kTGeoNameCommandOpt
Definition: CmsShowMain.cc:88
fwlite::Event
Definition: Event.h:87
FWEventItemsManager::setContext
void setContext(fireworks::Context *)
Definition: FWEventItemsManager.cc:294
kNoConfigFileOpt
static const char *const kNoConfigFileOpt
Definition: CmsShowMain.cc:89
CSGAction::isEnabled
virtual Bool_t isEnabled() const
Definition: CSGAction.cc:289
relativeConstraints.empty
bool empty
Definition: relativeConstraints.py:46
CmsShowMain::context
const fireworks::Context * context() const
Definition: CmsShowMain.h:77
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
DieTimer::DieTimer
DieTimer(CmsShowMain *app)
Definition: CmsShowMain.cc:444
kAdvancedRenderOpt
static const char *const kAdvancedRenderOpt
Definition: CmsShowMain.cc:101
CmsShowMain::fileChangedSlot
void fileChangedSlot(const TFile *file)
Definition: CmsShowMain.cc:490
kGeomFileOpt
static const char *const kGeomFileOpt
Definition: CmsShowMain.cc:83
CmsShowTaskExecutor::addTask
void addTask(const TaskFunctor &iTask)
Definition: CmsShowTaskExecutor.cc:53
AlcaSiPixelAliHarvester0T_cff.options
options
Definition: AlcaSiPixelAliHarvester0T_cff.py:42
kTGeoNameOpt
static const char *const kTGeoNameOpt
Definition: CmsShowMain.cc:87
CmsShowMain::openData
void openData()
Definition: CmsShowMain.cc:515
fireworks::Context::getInstance
static Context * getInstance()
Definition: Context.cc:193
kPortCommandOpt
static const char *const kPortCommandOpt
Definition: CmsShowMain.cc:107
CmsShowMainFrame.h
CmsShowMain::eventChangedImp
void eventChangedImp() override
Definition: CmsShowMain.cc:505
CmsShowMain::postFiltering
void postFiltering(bool)
Definition: CmsShowMain.cc:822
FWTriggerTableViewManager.h
FWLiteJobMetadataManager.h
FWEventItemsManager.h
fwlog::kError
Definition: fwLog.h:35
kConfigFileCommandOpt
static const char *const kConfigFileCommandOpt
Definition: CmsShowMain.cc:82
CmsShowMainBase::setPlayLoop
void setPlayLoop()
Definition: CmsShowMainBase.cc:347
FWMagField::kUser
Definition: FWMagField.h:18
fireworks
Definition: FWTauProxyBuilderBase.h:35
beamvalidation.exit
def exit(msg="")
Definition: beamvalidation.py:53
CmsShowMainBase::eiManager
FWEventItemsManager * eiManager()
Definition: CmsShowMainBase.h:57
FWConfigurationManager.h
kExpertCommandOpt
static const char *const kExpertCommandOpt
Definition: CmsShowMain.cc:106
CSGAction::enable
void enable()
Definition: CSGAction.cc:269
CmsShowNavigator.h
CSGContinuousAction::switchMode
void switchMode()
Definition: CSGContinuousAction.cc:62
kEveOpt
static const char *const kEveOpt
Definition: CmsShowMain.cc:99
kPlayOpt
static const char *const kPlayOpt
Definition: CmsShowMain.cc:91
CmsShowMain::m_globalTagCheck
bool m_globalTagCheck
Definition: CmsShowMain.h:131
FWGUIManager::updateEventFilterEnable
void updateEventFilterEnable(bool)
Definition: FWGUIManager.cc:1278
cuy.ii
ii
Definition: cuy.py:590
CmsShowMain::appendData
void appendData()
Definition: CmsShowMain.cc:539
FWGUIManager::clearStatus
void clearStatus()
Definition: FWGUIManager.cc:369
kLoopOpt
static const char *const kLoopOpt
Definition: CmsShowMain.cc:93
FWLiteEnabler.h
kFreePaletteCommandOpt
static const char *const kFreePaletteCommandOpt
Definition: CmsShowMain.cc:113
CmsShowMain::checkKeyBindingsOnPLayEventsStateChanged
void checkKeyBindingsOnPLayEventsStateChanged() override
Definition: CmsShowMain.cc:785
kConfigFileOpt
static const char *const kConfigFileOpt
Definition: CmsShowMain.cc:81
CmsShowMain::m_searchFiles
std::unique_ptr< CmsShowSearchFiles > m_searchFiles
Definition: CmsShowMain.h:122
FWViewManagerManager.h
FWGUIManager.h
Context.h
CmsShowMain::checkLiveMode
void checkLiveMode()
Definition: CmsShowMain.cc:848
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37