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 45 of file FWFFHelper.cc.

References dtNoiseDBValidation_cfg::cerr, cppFunctionSkipper::exception, edm::ParameterSet::getUntrackedParameter(), m_Rint, and w.

46  : m_Rint(0)
47 {
48  printf ("CMSSW is starting... You should always have a 2 minutes walk every 45 minutes anyways.\n");
49  const char* dummyArgvArray[] = {"cmsRun"};
50  char** dummyArgv = const_cast<char**>(dummyArgvArray);
51  int dummyArgc = 1;
52 
53  m_Rint = new FWFFTRint("App", &dummyArgc, dummyArgv, ps.getUntrackedParameter<bool>("rootPrompt"));
54  assert(TApplication::GetApplications()->GetSize());
55 
56  gROOT->SetBatch(kFALSE);
57  TApplication::NeedGraphicsLibs();
58 
59  try {
60  TGLWidget* w = TGLWidget::Create(gClient->GetDefaultRoot(), kTRUE, kTRUE, 0, 10, 10);
61  delete w;
62  }
63  catch (std::exception& iException) {
64  std::cerr <<"Insufficient GL support. " << iException.what() << std::endl;
65  throw;
66  }
67 
68 // AMT workaround for an agressive clenup in 5.43.18
69 #if ROOT_VERSION_CODE >= ROOT_VERSION(5,34,18)
70  if (!gStyle) {
71  TColor::fgInitDone=false;
72  TColor::InitializeColors();
73  TStyle::BuildStyles();
74  gROOT->SetStyle(gEnv->GetValue("Canvas.Style", "Modern"));
75  gStyle = gROOT->GetStyle("Classic");
76  }
77 #endif
78 
79  TEveManager::Create(kFALSE, "FI");
80 }
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.

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().