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::FWFFHelper ( const edm::ParameterSet ps,
const edm::ActivityRegistry  
)

Definition at line 41 of file FWFFHelper.cc.

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 }

References cms::cuda::assert(), EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, cppFunctionSkipper::exception, edm::ParameterSet::getUntrackedParameter(), m_Rint, and w.

Member Function Documentation

◆ app()

TRint* FWFFHelper::app ( )
inline

Definition at line 14 of file FWFFHelper.h.

14 { return m_Rint; }

References m_Rint.

Member Data Documentation

◆ m_Rint

TRint* FWFFHelper::m_Rint
private

Definition at line 17 of file FWFFHelper.h.

Referenced by app(), and FWFFHelper().

FWFFHelper::m_Rint
TRint * m_Rint
Definition: FWFFHelper.h:17
FWFFTRint
Definition: FWFFHelper.cc:20
cms::cuda::assert
assert(be >=bs)
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
w
const double w
Definition: UKUtility.cc:23
cppFunctionSkipper.exception
exception
Definition: cppFunctionSkipper.py:10
EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.cerr
cerr
Definition: EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.py:8