Revision 5e089c2e460422be13f2c4a1cfea982de3fd84bf authored by Wouter Verkerke on 22 August 2008, 13:08:54 UTC, committed by Wouter Verkerke on 22 August 2008, 13:08:54 UTC
  o RooMathCoreReg

    - Relist ROOT::Math::gamma_quantile(double, double, double)
      and ROOT::Math::chi2_quantile(double, double, double)
      now that corresponding functions have been re-enabled
      in MathCore (lorenzo r25195)


git-svn-id: http://root.cern.ch/svn/root/trunk@25210 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent f90a43e
Raw File
projection_test.C
const char* esd_geom_file_name = "http://root.cern.ch/files/alice_ESDgeometry.root";

void projection_test()
{
   TFile::SetCacheFileDir(".");
   TEveManager::Create();

   // camera
   TEveScene* s = gEve->SpawnNewScene("Projected Event");
   gEve->GetDefViewer()->AddScene(s);
   TGLViewer* v = (TGLViewer *)gEve->GetGLViewer();
   v->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
   TGLOrthoCamera* cam = (TGLOrthoCamera*) v->CurrentCamera();
   cam->SetZoomMinMax(0.2, 20);

   TGLCameraMarkupStyle* mup = v->GetCameraMarkup();
   if (mup) mup->SetShow(kFALSE);

   // projections
   TEveProjectionManager* mng = new TEveProjectionManager();
   s->AddElement(mng);
   TEveProjectionAxes* axes = new TEveProjectionAxes(mng);
   axes->SetText("TEveProjections demo");
   axes->SetFontFile("comicbd");
   axes->SetFontSize(20);
   s->AddElement(axes);
   gEve->AddToListTree(axes, kTRUE);
   gEve->AddToListTree(mng, kTRUE);

   // Simple geometry
   TFile* geom = TFile::Open(esd_geom_file_name, "CACHEREAD");
   if (!geom)
      return;

   TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) geom->Get("Gentle");
   TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse, 0);
   geom->Close();
   delete geom;
   gEve->AddGlobalElement(gsre);
   gEve->GetGlobalScene()->SetRnrState(kFALSE);
   mng->ImportElements(gsre);

   TEveLine* line = new TEveLine;
   line->SetMainColor(kGreen);
   for (Int_t i=0; i<160; ++i)
      line->SetNextPoint(120*sin(0.2*i), 120*cos(0.2*i), 80-i);
   gEve->AddElement(line);
   mng->ImportElements(line);
   line->SetRnrSelf(kFALSE);

   gEve->Redraw3D(kTRUE);
}
back to top