#include <MMSpacer.h>
Definition at line 21 of file MMSpacer.h.
◆ MMSpacer()
Definition at line 30 of file MMSpacer.cxx.
31 MMSpacerComponent *
s =
dynamic_cast<MMSpacerComponent*
>(
ss);
39 }
DetectorElement(const std::string &n)
MMSpacerComponent * m_component
◆ build() [1/2]
Definition at line 41 of file MMSpacer.cxx.
43 {
44 std::vector<Cutout *> vcutdef;
45 int cutoutson = 0;
46 return build(matManager, mysql, minimalgeo, cutoutson, vcutdef);
47 }
GeoPhysVol * build(StoredMaterialManager &matManager, const MYSQL &mysql, int minimalgeo)
◆ build() [2/2]
| GeoPhysVol * MuonGM::MMSpacer::build |
( |
StoredMaterialManager & | matManager, |
|
|
const MYSQL & | mysql, |
|
|
int | minimalgeo, |
|
|
int | cutoutson, |
|
|
const std::vector< Cutout * > & | ) |
Definition at line 49 of file MMSpacer.cxx.
52 {
53
54 const MMSpacer_Technology *
t =
dynamic_cast<const MMSpacer_Technology*
>(mysql.
GetTechnology(
name));
56
57
58
60
62 double dy =
t->lowZCutOutWidth;
63 double dz =
t->lowZCutOutDZ;
66 GeoTrf::Translate3D cut2(0.0,
width / 2., -
length / 2.);
67 strd = &(strd->subtract((*sbox) << cut1));
68 strd = &(strd->subtract((*sbox) << cut2));
69 }
70
71 if (
t->highZCutOuts) {
72 double dy =
t->highZCutOutWidth;
73 double dz =
t->highZCutOutDZ;
77 strd = &(strd->subtract((*sbox) << cut1));
78 strd = &(strd->subtract((*sbox) << cut2));
79 }
80
81 const GeoMaterial *mtrd = matManager.
getMaterial(
"muo::Honeycomb");
82 GeoLogVol *ltrd =
new GeoLogVol(
logVolName, strd, mtrd);
83 GeoPhysVol *ptrd = new GeoPhysVol(ltrd);
84
85 if (minimalgeo == 1)
86 return ptrd;
87
88 return ptrd;
89 }
Technology * GetTechnology(const std::string &name)
virtual const GeoMaterial * getMaterial(const std::string &name)=0
◆ print()
| void MuonGM::MMSpacer::print |
( |
| ) |
const |
|
overridevirtual |
◆ setLogVolName()
| void MuonGM::DetectorElement::setLogVolName |
( |
const std::string & | str | ) |
|
|
inlineinherited |
◆ index
| int MuonGM::MMSpacer::index {0} |
◆ length
| double MuonGM::MMSpacer::length {0.} |
◆ logVolName
| std::string MuonGM::DetectorElement::logVolName {} |
|
inherited |
◆ longWidth
| double MuonGM::MMSpacer::longWidth {0.} |
◆ m_component
◆ name
| std::string MuonGM::DetectorElement::name {} |
|
inherited |
◆ thickness
| double MuonGM::MMSpacer::thickness {0.} |
◆ width
| double MuonGM::MMSpacer::width {0.} |
The documentation for this class was generated from the following files: