ATLAS Offline Software
Loading...
Searching...
No Matches
DBM_Services.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "DBM_Services.h"
6
7#include "GeoModelKernel/GeoPhysVol.h"
8#include "GeoModelKernel/GeoTransform.h"
9#include "GeoModelKernel/GeoNameTag.h"
10#include "GeoModelKernel/GeoTube.h"
11
12GeoVPhysVol* DBM_PP0::Build()
13{
14 double pp0_Rmin = m_gmt_mgr->DBMPP0RIn();
15 double pp0_Rmax = m_gmt_mgr->DBMPP0ROut();
16 double pp0_thick = m_gmt_mgr->DBMPP0Thick();
17
18 // materials
19
20 const GeoTube* pp0Ring = new GeoTube(pp0_Rmin, pp0_Rmax, pp0_thick/2.);
21 const GeoMaterial* dbmPP0_mat = m_mat_mgr->getMaterialForVolume("pix::DBMPP0", pp0Ring->volume());
22 const GeoLogVol* pp0Log = new GeoLogVol("dbmPP0Log", pp0Ring, dbmPP0_mat);
23 GeoPhysVol* pp0Phys = new GeoPhysVol(pp0Log);
24
25 return pp0Phys;
26}
virtual GeoVPhysVol * Build() override
PixelGeometryManager * m_gmt_mgr
InDetMaterialManager * m_mat_mgr