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 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 MessageLogger_cfi::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
TRint * m_Rint
Definition: FWFFHelper.h:18

Member Function Documentation

TRint* FWFFHelper::app ( )
inline

Definition at line 16 of file FWFFHelper.h.

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

Member Data Documentation

TRint* FWFFHelper::m_Rint
private