本文整理汇总了C++中TGeoManager::GetTopNode方法的典型用法代码示例。如果您正苦于以下问题:C++ TGeoManager::GetTopNode方法的具体用法?C++ TGeoManager::GetTopNode怎么用?C++ TGeoManager::GetTopNode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TGeoManager
的用法示例。
在下文中一共展示了TGeoManager::GetTopNode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: init
void LCDDImp::init() {
if (!m_world.isValid()) {
TGeoManager* mgr = m_manager;
Box worldSolid("world_x", "world_y", "world_z");
printout(INFO,"LCDD"," *********** created World volume with size : %7.0f %7.0f %7.0f",
worldSolid->GetDX(), worldSolid->GetDY(), worldSolid->GetDZ());
m_materialAir = material("Air");
m_materialVacuum = material("Vacuum");
Volume world_vol("world_volume", worldSolid, m_materialAir);
m_world = DetElement(new WorldObject(*this,"world"));
m_worldVol = world_vol;
// Set the world volume to invisible.
VisAttr worldVis("WorldVis");
worldVis.setAlpha(1.0);
worldVis.setVisible(false);
worldVis.setShowDaughters(true);
worldVis.setColor(1.0, 1.0, 1.0);
worldVis.setLineStyle(VisAttr::SOLID);
worldVis.setDrawingStyle(VisAttr::WIREFRAME);
//m_worldVol.setVisAttributes(worldVis);
m_worldVol->SetVisibility(kFALSE);
m_worldVol->SetVisDaughters(kTRUE);
m_worldVol->SetVisContainers(kTRUE);
add(worldVis);
#if 0
Tube trackingSolid(0.,"tracking_region_radius","2*tracking_region_zmax",2*M_PI);
Volume tracking("tracking_volume",trackingSolid, m_materialAir);
m_trackers = TopDetElement("tracking");
m_trackingVol = tracking;
PlacedVolume pv = m_worldVol.placeVolume(tracking);
m_trackers.setPlacement(pv);
m_world.add(m_trackers);
#endif
m_detectors.append(m_world);
m_manager->SetTopVolume(m_worldVol.ptr());
m_world.setPlacement(PlacedVolume(mgr->GetTopNode()));
}
}