test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 12 of file FWFFHelper.h.

Constructor & Destructor Documentation

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

Definition at line 44 of file FWFFHelper.cc.

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

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

Member Function Documentation

TRint* FWFFHelper::app ( )
inline

Definition at line 16 of file FWFFHelper.h.

References m_Rint.

16 { return m_Rint; }
TRint * m_Rint
Definition: FWFFHelper.h:18

Member Data Documentation

TRint* FWFFHelper::m_Rint
private

Definition at line 18 of file FWFFHelper.h.

Referenced by app(), and FWFFHelper().