ATLAS Offline Software
MuonSpectrometer
MuonDetDescr
MuonAGDDBase
src
AGDDMicromegas.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
MuonAGDDBase/AGDDMicromegas.h
"
6
#include "
AGDDModel/AGDDParameterStore.h
"
7
#include "
AGDDKernel/AGDDDetectorStore.h
"
8
#include "
AGDDKernel/AGDDVolume.h
"
9
#include "
AGDDKernel/AGDDBuilder.h
"
10
11
#include "GeoModelKernel/GeoTrd.h"
12
#include "GeoModelKernel/GeoShape.h"
13
#include "GeoModelKernel/GeoLogVol.h"
14
#include "GeoModelKernel/GeoPhysVol.h"
15
#include "GeoModelKernel/GeoFullPhysVol.h"
16
#include "GeoModelKernel/GeoMaterial.h"
17
18
#include "
StoreGate/StoreGateSvc.h
"
19
#include "GaudiKernel/ISvcLocator.h"
20
#include "GaudiKernel/Bootstrap.h"
21
#include "
GeoModelInterfaces/StoredMaterialManager.h
"
22
23
#include "
MuonGeoModel/MicromegasComponent.h
"
24
#include "
MuonGeoModel/Micromegas.h
"
25
#include "
MuonGeoModel/MYSQL.h
"
26
27
28
using
MuonGM::MYSQL
;
29
30
AGDDMicromegas::AGDDMicromegas
(
const
std::string&
s
,
31
AGDDDetectorStore
&
ds
,
32
AGDDVolumeStore
& vs,
33
AGDDSectionStore
&
ss
)
34
:
MMDetectorDescription
(
s
,
ds
),
AGDDVolume
(
s
,vs,
ss
,true)
35
{
36
Register
();
37
}
38
39
void
AGDDMicromegas::CreateSolid
(
const
AGDDBuilder
&
/*builder*/
)
40
{
41
// std::cout<<"this is AGDDMicromegas::CreateSolid()"<<std::endl;
42
// void *p=GetSolid();
43
// if (!p)
44
// {
45
// std::cout<<" creating solid with dimensions "<<
46
// m_small_x<<" "<<m_large_x<<" "<<m_y<<" "<<m_z<<std::endl;
47
// GeoShape* solid=new GeoTrd(m_small_x/2.,m_large_x/2.,m_y/2.,m_y/2.,m_z/2.);
48
// SetSolid(solid);
49
// }
50
51
}
52
53
void
AGDDMicromegas::CreateVolume
(
AGDDBuilder
&
builder
)
54
{
55
// std::cout<<"this is AGDDMicromegas::CreateVolume()"<<std::endl;
56
57
MuonGM::MicromegasComponent
mm_comp;
58
mm_comp.
name
=
tech
;
59
mm_comp.
dx1
=
small_x
();
60
mm_comp.
dx2
=
large_x
();
61
mm_comp.
dy
=
y
();
62
mm_comp.
subType
=
subType
();
63
64
MuonGM::Micromegas
cham (&mm_comp);
65
GeoPhysVol *vvv=(GeoPhysVol*)cham.
build
(
builder
.GetMaterialManager(), 1);
66
67
CreateSolid
(
builder
);
68
69
if
(!
GetVolume
())
70
{
71
SetVolume
(vvv);
72
}
73
}
74
AGDDDetectorStore.h
checkxAOD.ds
ds
Definition:
Tools/PyUtils/bin/checkxAOD.py:260
MicromegasComponent.h
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
PowhegControl_ttHplus_NLO.ss
ss
Definition:
PowhegControl_ttHplus_NLO.py:83
AGDDBuilder.h
Micromegas.h
AGDDVolumeStore
Definition:
AGDDVolumeStore.h:15
AGDDDetector::y
double y() const
Definition:
AGDDDetector.h:35
AGDDMicromegas::CreateVolume
virtual void CreateVolume(AGDDBuilder &builder) override
Definition:
AGDDMicromegas.cxx:53
MuonGM::MYSQL
Definition:
MYSQL.h:43
AGDDVolume::GetVolume
void * GetVolume()
Definition:
AGDDVolume.h:32
AGDDParameterStore.h
AGDDDetector::large_x
double large_x() const
Definition:
AGDDDetector.h:34
AGDDSectionStore
Definition:
AGDDSectionStore.h:15
AGDDBuilder
Definition:
AGDDBuilder.h:31
MuonGM::Component::dy
double dy
Definition:
Component.h:21
MMDetectorDescription
Definition:
MMDetectorDescription.h:45
createSimpleDistributions.builder
builder
Definition:
createSimpleDistributions.py:52
MuonGM::Micromegas::build
GeoFullPhysVol * build(StoredMaterialManager &matManager, int minimalgeo)
Definition:
Micromegas.cxx:47
AGDDDetector::subType
const std::string & subType() const
Definition:
AGDDDetector.h:37
MuonGM::MicromegasComponent
Definition:
MicromegasComponent.h:15
MuonGM::Micromegas
Definition:
Micromegas.h:20
MuonGM::Component::name
std::string name
Definition:
Component.h:18
MYSQL.h
StoredMaterialManager.h
MuonGM::MicromegasComponent::subType
std::string subType
Definition:
MicromegasComponent.h:21
AGDDDetector::small_x
double small_x() const
Definition:
AGDDDetector.h:33
AGDDDetectorStore
Definition:
AGDDDetectorStore.h:18
AGDDMicromegas::AGDDMicromegas
AGDDMicromegas(const std::string &s, AGDDDetectorStore &ds, AGDDVolumeStore &vs, AGDDSectionStore &ss)
Definition:
AGDDMicromegas.cxx:30
MuonGM::Component::dx2
double dx2
Definition:
Component.h:20
AGDDVolume
Definition:
AGDDVolume.h:16
AGDDVolume.h
AGDDMicromegas::CreateSolid
virtual void CreateSolid(const AGDDBuilder &builder) override
Definition:
AGDDMicromegas.cxx:39
MMDetectorDescription::Register
void Register()
Definition:
MMDetectorDescription.cxx:21
MuonGM::Component::dx1
double dx1
Definition:
Component.h:19
AGDDMicromegas.h
StoreGateSvc.h
AGDDDetector::tech
std::string tech
Definition:
AGDDDetector.h:38
AGDDVolume::SetVolume
void SetVolume(void *p)
Definition:
AGDDVolume.h:35
Generated on Sun Dec 22 2024 21:06:45 for ATLAS Offline Software by
1.8.18