ATLAS Offline Software
Loading...
Searching...
No Matches
AGDDMMSpacer.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7
8#include "GeoModelKernel/GeoTrd.h"
9#include "GeoModelKernel/GeoShape.h"
10#include "GeoModelKernel/GeoLogVol.h"
11#include "GeoModelKernel/GeoPhysVol.h"
12#include "GeoModelKernel/GeoFullPhysVol.h"
13#include "GeoModelKernel/GeoMaterial.h"
15
17#include "GaudiKernel/ISvcLocator.h"
18#include "GaudiKernel/Bootstrap.h"
20
23#include "MuonGeoModel/MYSQL.h"
24
25void AGDDMMSpacer::CreateSolid (const AGDDBuilder& /*builder*/)
26{
27// std::cout<<"this is AGDDMMSpacer::CreateSolid()"<<std::endl;
28}
29
31{
32// std::cout<<"this is AGDDMMSpacer::CreateVolume()"<<std::endl;
33
35 mm_comp->name=tech;
36 mm_comp->dx1=m_small_x;
37 mm_comp->dx2=m_large_x;
38 mm_comp->dy=m_y;
39
41 MuonGM::MMSpacer cham(*mysql, mm_comp);
42 GeoPhysVol *vvv=cham.build(builder.GetMaterialManager(), *mysql, 1);
43
44 CreateSolid (builder);
45
46 if (!GetVolume())
47 {
48// std::cout<<"setting volume "<<vvv<<std::endl;
49 SetVolume(vvv);
50// std::cout<<"done creating volume "<<std::endl;
51 }
52}
std::string tech
double m_small_x
virtual void CreateVolume(AGDDBuilder &builder) override
virtual void CreateSolid(const AGDDBuilder &builder) override
double m_large_x
void * GetVolume()
Definition AGDDVolume.h:32
void SetVolume(void *p)
Definition AGDDVolume.h:35
std::string name
Definition Component.h:18
GeoPhysVol * build(StoredMaterialManager &matManager, const MYSQL &mysql, int minimalgeo)
Definition MMSpacer.cxx:41
static LockedMYSQL GetPointer()
Definition MYSQL.cxx:42
CxxUtils::LockedPointer< MYSQL > LockedMYSQL
Definition MYSQL.h:47