#include <PixelDetectorDC1DC2.h>
Definition at line 188 of file PixelDetectorDC1DC2.h.
◆ Build()
GeoVPhysVol * GeoPixelEnvelope::Build |
( |
| ) |
|
|
overridevirtual |
Implements PixelGeoDC2::GeoVPixelFactory.
Definition at line 541 of file PixelDetectorDC1DC2.cxx.
550 const GeoTube* envelopeTube =
new GeoTube(rmin,rmax,halflength);
551 const GeoLogVol* envelopeLog =
new GeoLogVol(
"Pixel",envelopeTube,air);
552 GeoFullPhysVol* envelopePhys =
new GeoFullPhysVol(envelopeLog);
559 GeoNameTag*
tag =
new GeoNameTag(
"Barrel");
560 GeoVPhysVol* barrelPhys = brl.Build() ;
561 envelopePhys->add(
tag);
562 envelopePhys->add(
new GeoIdentifierTag(0));
563 envelopePhys->add(barrelPhys );
569 for(
int ii =0; ii< brlsvc.
NCylinders(); ii++) {
571 GeoNameTag*
tag =
new GeoNameTag(
"Outside Barrel Service");
572 GeoTrf::Translate3D
pos(0.,0.,brlsvc.
ZPos() );
573 GeoTransform* xform =
new GeoTransform(
pos);
574 envelopePhys->add(
tag);
575 envelopePhys->add(
new GeoIdentifierTag(ii) );
576 envelopePhys->add(xform);
577 envelopePhys->add(brlsvc.
Build() );
589 GeoTrf::Translate3D
pos(0.,0.,zpos);
590 GeoTransform* xform =
new GeoTransform(
pos);
591 tag =
new GeoNameTag(
"EndCap 1");
592 envelopePhys->add(
tag);
593 envelopePhys->add(
new GeoIdentifierTag(2));
594 envelopePhys->add(xform);
595 envelopePhys->add(pec.Build() );
599 tag =
new GeoNameTag(
"EndCap 2");
600 envelopePhys->add(
tag);
601 envelopePhys->add(
new GeoIdentifierTag(-2));
602 envelopePhys->add(xform);
603 envelopePhys->add(pec.Build() );
609 for(
int ii =0; ii< ecsvc.
NCylinders(); ii++) {
611 GeoNameTag*
tag =
new GeoNameTag(
"Outside Endcap Service");
612 GeoTrf::Translate3D
pos(0.,0.,ecsvc.
ZPos() );
613 GeoTransform* xform =
new GeoTransform(
pos);
614 envelopePhys->add(
tag);
615 envelopePhys->add(xform);
616 envelopePhys->add(
new GeoIdentifierTag(ii) );
617 envelopePhys->add(ecsvc.
Build() );
◆ GeoVPixelFactory()
GeoVPixelFactory::GeoVPixelFactory |
◆ m_DDmgr
◆ m_epsilon
const double PixelGeoDC2::GeoVPixelFactory::m_epsilon {} |
|
protectedinherited |
◆ m_gmt_mgr
◆ m_mat_mgr
The documentation for this class was generated from the following files: