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;
24 std::cout<<
" creating solid with dimensions "<<
33 std::cout<<
"this is AGDDMuonStation::CreateVolume()"<<std::endl;
34 static const GeoMaterial*
const air =
GetMMMaterial(
"std::Air");
35 if (!air) std::cout<<
" Air not found!"<<std::endl;
40 std::cout<<
"trying to create logical volume"<<std::endl;
41 const GeoShape* shape=(GeoShape *)
GetSolid();
42 if (!shape) std::cout<<
" something wrong, shape is 0"<<std::endl;
43 GeoLogVol *
a=
new GeoLogVol(
GetName(),shape,air);
44 GeoPhysVol *a_phys=
new GeoPhysVol(
a);
46 std::cout<<
"done creating volume "<<std::endl;
52 SmartIF<StoreGateSvc> pDetStore{Gaudi::svcLocator()->service(
"DetectorStore")};
53 if(pDetStore.isValid()) {
55 if(pDetStore->retrieve(theMaterialManager,
"MATERIALS").isSuccess()) {
static std::map< double, LArWheelSliceSolid * > solid
virtual void CreateSolid(const AGDDBuilder &builder) override
static const GeoMaterial * GetMMMaterial(const std::string &)
virtual void CreateVolume(AGDDBuilder &builder) override
const std::string & GetName() const
This class holds one or more material managers and makes them storeable, under StoreGate.
virtual const GeoMaterial * getMaterial(const std::string &name)=0