- Timestamp:
- Oct 4, 2014, 9:10:19 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 7f66dc0
- Parents:
- d2ac201
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/geometry.C
rd2ac201 r164f032 279 279 trm1->RegisterYourself(); 280 280 top->AddNode(muon_endcap,1,trm1); 281 top->AddNode(muon_endcap, 1,trm2);281 top->AddNode(muon_endcap,2,trm2); 282 282 return std::make_pair(muonSystem_radius,muonSystem_length); 283 283 } … … 397 397 // draw it 398 398 geom->CloseGeometry(); 399 top->Draw(); 400 } 401 399 //top->Draw(); 400 //TFile* file = new TFile("DelpheGeom.root","RECREATE"); 401 //top->Write("DelphesGeometry"); 402 //file->Close(); 403 404 TEveManager::Create(); 405 406 //TFile::SetCacheFileDir("."); 407 //gGeoManager = gEve->GetGeometry("DelpheGeom.root"); 408 gGeoManager->DefaultColors(); 409 410 TGeoVolume* top = gGeoManager->GetTopVolume()->FindNode("Delphes3DGeometry_1")->GetVolume(); 411 412 TEveGeoTopNode* trk = new TEveGeoTopNode(gGeoManager, top->FindNode("tracker_1")); 413 trk->SetVisLevel(6); 414 gEve->AddGlobalElement(trk); 415 416 TEveGeoTopNode* calo = new TEveGeoTopNode(gGeoManager, top->FindNode("Calorimeter_barrel_1")); 417 calo->SetVisLevel(3); 418 gEve->AddGlobalElement(calo); 419 calo = new TEveGeoTopNode(gGeoManager, top->FindNode("Calorimeter_endcap_1")); 420 calo->SetVisLevel(3); 421 calo->UseNodeTrans(); 422 gEve->AddGlobalElement(calo); 423 calo = new TEveGeoTopNode(gGeoManager, top->FindNode("Calorimeter_endcap_2")); 424 calo->SetVisLevel(3); 425 calo->UseNodeTrans(); 426 gEve->AddGlobalElement(calo); 427 428 TEveGeoTopNode* muon = new TEveGeoTopNode(gGeoManager, top->FindNode("muons_barrel_1")); 429 muon->SetVisLevel(4); 430 gEve->AddGlobalElement(muon); 431 muon = new TEveGeoTopNode(gGeoManager, top->FindNode("muons_endcap_1")); 432 muon->SetVisLevel(4); 433 muon->UseNodeTrans(); 434 gEve->AddGlobalElement(muon); 435 muon = new TEveGeoTopNode(gGeoManager, top->FindNode("muons_endcap_2")); 436 muon->SetVisLevel(4); 437 muon->UseNodeTrans(); 438 gEve->AddGlobalElement(muon); 439 440 gEve->FullRedraw3D(kTRUE); 441 442 // EClipType not exported to CINT (see TGLUtil.h): 443 // 0 - no clip, 1 - clip plane, 2 - clip box 444 TGLViewer *v = gEve->GetDefaultGLViewer(); 445 v->GetClipSet()->SetClipType(1); 446 v->ColorSet().Background().SetColor(kMagenta+4); 447 v->SetGuideState(TGLUtil::kAxesEdge, kTRUE, kFALSE, 0); 448 v->RefreshPadEditor(v); 449 450 v->CurrentCamera().RotateRad(-1.2, 0.5); 451 v->DoDraw(); 452 453 } 454
Note:
See TracChangeset
for help on using the changeset viewer.