18 TFile::SetCacheFileDir(
".");
20 TGeoManager::Import(
"https://root.cern/files/cms.root");
22 gGeoManager->DefaultColors();
23 gGeoManager->SetVisLevel(4);
24 gGeoManager->GetVolume(
"TRAK")->InvisibleAll();
25 gGeoManager->GetVolume(
"HVP2")->SetTransparency(20);
26 gGeoManager->GetVolume(
"HVEQ")->SetTransparency(20);
27 gGeoManager->GetVolume(
"YE4")->SetTransparency(10);
28 gGeoManager->GetVolume(
"YE3")->SetTransparency(20);
29 gGeoManager->GetVolume(
"RB2")->SetTransparency(99);
30 gGeoManager->GetVolume(
"RB3")->SetTransparency(99);
31 gGeoManager->GetVolume(
"COCF")->SetTransparency(99);
32 gGeoManager->GetVolume(
"HEC1")->SetLineColor(7);
33 gGeoManager->GetVolume(
"EAP1")->SetLineColor(7);
34 gGeoManager->GetVolume(
"EAP2")->SetLineColor(7);
35 gGeoManager->GetVolume(
"EAP3")->SetLineColor(7);
36 gGeoManager->GetVolume(
"EAP4")->SetLineColor(7);
37 gGeoManager->GetVolume(
"HTC1")->SetLineColor(2);
39 using namespace ROOT::Experimental;
41 auto viewer = std::make_shared<REveGeomViewer>(gGeoManager);
44 viewer->SelectVolume(
"CMSE");
47 viewer->SetDrawOptions(
"clipxyz");
57 RDirectory::Heap().Add(
"geom_viewer", viewer);