![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "GeoModelKernel/GeoTrd.h"
9 #include "GeoModelKernel/GeoShape.h"
10 #include "GeoModelKernel/GeoLogVol.h"
11 #include "GeoModelKernel/GeoPhysVol.h"
12 #include "GeoModelKernel/GeoMaterial.h"
15 #include "GaudiKernel/ISvcLocator.h"
16 #include "GaudiKernel/Bootstrap.h"
21 std::cout<<
"this is AGDDMuonStation::CreateSolid()"<<std::endl;
25 std::cout<<
" creating solid with dimensions "<<
34 std::cout<<
"this is AGDDMuonStation::CreateVolume()"<<std::endl;
35 static const GeoMaterial*
const air =
GetMMMaterial(
"std::Air");
36 if (!air) std::cout<<
" Air not found!"<<std::endl;
42 std::cout<<
"trying to create logical volume"<<std::endl;
43 const GeoShape* shape=(GeoShape *)
GetSolid();
44 if (!shape) std::cout<<
" something wrong, shape is 0"<<std::endl;
45 GeoLogVol *
a=
new GeoLogVol(
GetName(),shape,air);
46 GeoPhysVol *a_phys=
new GeoPhysVol(
a);
48 std::cout<<
"done creating volume "<<std::endl;
55 ISvcLocator* svcLocator = Gaudi::svcLocator();
56 StatusCode sc=svcLocator->service(
"DetectorStore",pDetStore);
60 sc = pDetStore->
retrieve(theMaterialManager,
"MATERIALS");
static const GeoMaterial * GetMMMaterial(const std::string &)
StatusCode retrieve(const T *&ptr) const
Retrieve the default object into a const T*.
The Athena Transient Store API.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual const GeoMaterial * getMaterial(const std::string &name)=0
const std::string & GetName() const
This class holds one or more material managers and makes them storeable, under StoreGate.
virtual void CreateSolid(const AGDDBuilder &builder) override
virtual void CreateVolume(AGDDBuilder &builder) override