/** draw3D.C * @author Andrey Lebedev * @since 2008 * @version 1.0 * Macro draws 3D view of the CBM detector using TGeo functionality. **/ void draw3D() { //Input directory TString dir = "/d/cbm02/andrey/mvd/std_10e/"; //Input MC file with TGeo // TString mcFile = dir + "mc.0000.root"; TString parFile = dir + "param.0000.root"; // gSystem->Load("/home/soft/tbb/libtbb"); // gSystem->Load("/u/andrey/soft/tbb/Lenny64/libtbb"); // gSystem->Load("/u/andrey/soft/tbb/Etch32/libtbb"); gROOT->LoadMacro("$VMCWORKDIR/gconfig/basiclibs.C"); basiclibs(); gROOT->LoadMacro("$VMCWORKDIR/macro/littrack/cbmrootlibs.C"); cbmrootlibs(); TFile* f = new TFile(parFile); f->Get("FairBaseParSet"); // TFile* f = new TFile(mcFile); // TGeoManager *geoMan = (TGeoManager*) f->Get("FAIRGeom"); gGeoManager->SetVisLevel(4); // Check overlaps // gGeoManager->CheckOverlaps(0.0001); // gGeoManager->PrintOverlaps(); TGeoVolume* master = gGeoManager->GetMasterVolume(); master->Draw("ogl"); }