CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
FWFFHelper Class Reference

#include <FWFFHelper.h>

Public Member Functions

TRint * app ()
 
 FWFFHelper (const edm::ParameterSet &, const edm::ActivityRegistry &)
 

Private Attributes

TRint * m_Rint
 

Detailed Description

Definition at line 11 of file FWFFHelper.h.

Constructor & Destructor Documentation

FWFFHelper::FWFFHelper ( const edm::ParameterSet ps,
const edm::ActivityRegistry  
)

Definition at line 41 of file FWFFHelper.cc.

References beam_dqm_sourceclient-live_cfg::cerr, cppFunctionSkipper::exception, edm::ParameterSet::getUntrackedParameter(), m_Rint, and w.

41  : m_Rint(nullptr) {
42  printf("CMSSW is starting... You should always have a 2 minutes walk every 45 minutes anyways.\n");
43  const char *dummyArgvArray[] = {"cmsRun"};
44  char **dummyArgv = const_cast<char **>(dummyArgvArray);
45  int dummyArgc = 1;
46 
47  m_Rint = new FWFFTRint("App", &dummyArgc, dummyArgv, ps.getUntrackedParameter<bool>("rootPrompt"));
48  assert(TApplication::GetApplications()->GetSize());
49 
50  gROOT->SetBatch(kFALSE);
51  TApplication::NeedGraphicsLibs();
52 
53  try {
54  TGLWidget *w = TGLWidget::Create(gClient->GetDefaultRoot(), kTRUE, kTRUE, nullptr, 10, 10);
55  delete w;
56  } catch (std::exception &iException) {
57  std::cerr << "Insufficient GL support. " << iException.what() << std::endl;
58  throw;
59  }
60 
61  TEveManager::Create(kFALSE, "FI");
62 }
T getUntrackedParameter(std::string const &, T const &) const
const double w
Definition: UKUtility.cc:23
TRint * m_Rint
Definition: FWFFHelper.h:17

Member Function Documentation

TRint* FWFFHelper::app ( )
inline

Definition at line 14 of file FWFFHelper.h.

14 { return m_Rint; }
TRint * m_Rint
Definition: FWFFHelper.h:17

Member Data Documentation

TRint* FWFFHelper::m_Rint
private