ATLAS Offline Software
MuonSpectrometer
MuonDetDescr
MuonAGDDBase
src
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
6
#include "
MuonAGDDBase/AGDDMMSpacer.h
"
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"
14
#include "
AGDDKernel/AGDDBuilder.h
"
15
16
#include "
StoreGate/StoreGateSvc.h
"
17
#include "GaudiKernel/ISvcLocator.h"
18
#include "GaudiKernel/Bootstrap.h"
19
#include "
GeoModelInterfaces/StoredMaterialManager.h
"
20
21
#include "
MuonGeoModel/MMSpacerComponent.h
"
22
#include "
MuonGeoModel/MMSpacer.h
"
23
#include "
MuonGeoModel/MYSQL.h
"
24
25
void
AGDDMMSpacer::CreateSolid
(
const
AGDDBuilder
&
/*builder*/
)
26
{
27
// std::cout<<"this is AGDDMMSpacer::CreateSolid()"<<std::endl;
28
}
29
30
void
AGDDMMSpacer::CreateVolume
(
AGDDBuilder
&
builder
)
31
{
32
// std::cout<<"this is AGDDMMSpacer::CreateVolume()"<<std::endl;
33
34
MuonGM::MMSpacerComponent
*mm_comp=
new
MuonGM::MMSpacerComponent
;
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
40
MuonGM::MYSQL::LockedMYSQL
mysql =
MuonGM::MYSQL::GetPointer
();
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
}
AGDDMMSpacer::tech
std::string tech
Definition:
AGDDMMSpacer.h:40
MuonGM::MMSpacer
Definition:
MMSpacer.h:21
CxxUtils::LockedPointer
A pointer together with a movable lock.
Definition:
LockedPointer.h:35
AGDDBuilder.h
AGDDVolume::GetVolume
void * GetVolume()
Definition:
AGDDVolume.h:32
AGDDMMSpacer::CreateSolid
virtual void CreateSolid(const AGDDBuilder &builder) override
Definition:
AGDDMMSpacer.cxx:25
MuonGM::MMSpacerComponent
Definition:
MMSpacerComponent.h:14
AGDDBuilder
Definition:
AGDDBuilder.h:31
MuonGM::Component::dy
double dy
Definition:
Component.h:21
AGDDMMSpacer::m_small_x
double m_small_x
Definition:
AGDDMMSpacer.h:44
createSimpleDistributions.builder
builder
Definition:
createSimpleDistributions.py:52
MuonGM::Component::name
std::string name
Definition:
Component.h:18
AGDDMMSpacer.h
MYSQL.h
StoredMaterialManager.h
MuonGM::MYSQL::GetPointer
static LockedMYSQL GetPointer()
Definition:
MYSQL.cxx:42
AGDDMMSpacer::m_large_x
double m_large_x
Definition:
AGDDMMSpacer.h:45
MuonGM::Component::dx2
double dx2
Definition:
Component.h:20
MuonGM::MMSpacer::build
GeoPhysVol * build(StoredMaterialManager &matManager, const MYSQL &mysql, int minimalgeo)
Definition:
MMSpacer.cxx:41
MMSpacer.h
AGDDMMSpacer::CreateVolume
virtual void CreateVolume(AGDDBuilder &builder) override
Definition:
AGDDMMSpacer.cxx:30
AGDDMMSpacer::m_y
double m_y
Definition:
AGDDMMSpacer.h:46
MuonGM::Component::dx1
double dx1
Definition:
Component.h:19
StoreGateSvc.h
AGDDVolume::SetVolume
void SetVolume(void *p)
Definition:
AGDDVolume.h:35
MMSpacerComponent.h
Generated on Fri Jan 10 2025 21:06:41 for ATLAS Offline Software by
1.8.18