|
ATLAS Offline Software
|
#include <GeoPixelLadderServices.h>
Definition at line 15 of file GeoPixelLadderServices.h.
◆ GeoPixelLadderServices() [1/2]
GeoPixelLadderServices::GeoPixelLadderServices |
( |
InDetDD::PixelDetectorManager * |
ddmgr, |
|
|
PixelGeometryManager * |
mgr, |
|
|
GeoModelIO::ReadGeoModel * |
sqliteReader, |
|
|
std::shared_ptr< std::map< std::string, GeoFullPhysVol * >> |
mapFPV, |
|
|
std::shared_ptr< std::map< std::string, GeoAlignableTransform * >> |
mapAX, |
|
|
int |
ladderType |
|
) |
| |
Definition at line 27 of file GeoPixelLadderServices.cxx.
55 double xOffsetConnC = xOffsetConnA;
68 double yPosConnC = yPosConnA;
70 double xWidthOmegaBase = xMaxOmegaBase - xBase;
71 double xWidthConnA = xMaxConnA - xBase;
72 double xWidthConnC = xMaxConnC - xBase;
75 const GeoBox* omegaBaseEnv =
new GeoBox(0.5*xWidthOmegaBase, 0.5*yWidthOmega, halflength);
76 const GeoBox* connAEnv =
new GeoBox(0.5*xWidthConnA, 0.5*yWidthConnA + safety, halflength);
77 const GeoBox* connCEnv =
new GeoBox(0.5*xWidthConnC, 0.5*yWidthConnC + safety, halflength);
78 GeoTrf::Transform3D omegaBaseShift = GeoTrf::Translate3D(xBase + 0.5*xWidthOmegaBase - xCenter, 0., 0.);
79 GeoTrf::Transform3D connAShift = GeoTrf::Translate3D(xBase + 0.5*xWidthConnA - xCenter, yPosConnA, 0.);
80 GeoTrf::Transform3D connCShift = GeoTrf::Translate3D(xBase + 0.5*xWidthConnC - xCenter, yPosConnC, 0.);
82 const GeoShape & ladderSvcShape = ((*omegaBaseEnv) << omegaBaseShift)
83 .
add(*connAEnv << connAShift)
84 .add(*connCEnv << connCShift);
◆ GeoPixelLadderServices() [2/2]
◆ ~GeoPixelLadderServices()
virtual GeoPixelLadderServices::~GeoPixelLadderServices |
( |
| ) |
|
|
virtualdefault |
◆ Build()
GeoVPhysVol * GeoPixelLadderServices::Build |
( |
| ) |
|
|
overridevirtual |
Implements GeoVPixelFactory.
Definition at line 102 of file GeoPixelLadderServices.cxx.
125 double zpos = fluid.posZ();
127 GeoVPhysVol* fluidPhys = fluid.Build();
128 GeoTransform* xform =
new GeoTransform(GeoTrf::Translate3D(xpos,ypos,zpos));
129 ladderSvcPhys->add(xform);
130 ladderSvcPhys->add(fluidPhys);
142 for (
int ii = 0; ii < cable.numElements(); ii++) {
143 cable.setElement(ii);
144 GeoVPhysVol* phys = cable.Build();
147 double zpos = cable.zpos();
148 GeoTransform* xform =
new GeoTransform(GeoTrf::Translate3D(xpos,ypos,zpos));
149 ladderSvcPhys->add(xform);
150 ladderSvcPhys->add(phys);
153 return ladderSvcPhys;
◆ BuildAlTube()
GeoVPhysVol * GeoPixelLadderServices::BuildAlTube |
( |
| ) |
|
Definition at line 241 of file GeoPixelLadderServices.cxx.
268 double sepX = (xUpperBend - xLowerBend);
269 double sepY = (yUpperBend - yLowerBend);
270 double sep2 = sepX*sepX+sepY*sepY;
271 double sep = sqrt(sep2);
272 double radDist = radUpperBend-radLowerBend;
273 double alpha =
atan(-sepY/sepX) - asin(radDist/
sep);
274 double upperStraightLength = sqrt(sep2 - radDist*radDist);
275 double xLowerStraight = xLowerBend + (radLowerBend-0.5*thick)*
sin(alpha);
276 double yLowerStraight = yLowerBend + (radLowerBend-0.5*thick)*
cos(alpha);
277 double xUpperStraight = xUpperBend + (radUpperBend-0.5*thick)*
sin(alpha);
278 double yUpperStraight = yUpperBend + (radUpperBend-0.5*thick)*
cos(alpha);
291 GeoBox * lowerStraightBox =
new GeoBox(0.5*thick, yLowerBend, 0.5*
length);
294 GeoBox * upperStraightBox =
new GeoBox(0.5*thick, 0.5*upperStraightLength, 0.5*
length);
297 const GeoShape & alTubeShape =
298 (*lowerStraightBox << GeoTrf::Translate3D(xLowerBend-radLowerBend+0.5*thick,0,zOffset) )
299 .
add(*lowerBendShapeP << GeoTrf::Translate3D(xLowerBend,yLowerBend,zOffset) )
300 .
add(*upperStraightBox << GeoTrf::Translate3D(0.5*(xLowerStraight+xUpperStraight),0.5*(yLowerStraight+yUpperStraight),zOffset)*GeoTrf::RotateZ3D(0.5*
Gaudi::Units::pi-alpha) )
301 .
add(*upperBendShape << GeoTrf::Translate3D(xUpperBend,yUpperBend,zOffset) )
302 .
add(*upperStraightBox << GeoTrf::Translate3D(0.5*(xLowerStraight+xUpperStraight),-0.5*(yLowerStraight+yUpperStraight),zOffset)*GeoTrf::RotateZ3D(0.5*
Gaudi::Units::pi+alpha) )
303 .
add(*lowerBendShapeM << GeoTrf::Translate3D(xLowerBend,-yLowerBend,zOffset) );
306 lowerStraightBox->volume()
307 + lowerBendShapeP->volume()
308 + 2*upperStraightBox->volume()
309 + upperBendShape->volume()
310 + lowerBendShapeM->volume();
315 GeoLogVol* tubeLV =
new GeoLogVol(
"AlTube",&alTubeShape,alMat);
316 return new GeoPhysVol(tubeLV);
◆ BuildGlue()
void GeoPixelLadderServices::BuildGlue |
( |
GeoPhysVol * |
parent | ) |
|
Definition at line 321 of file GeoPixelLadderServices.cxx.
325 for (
int i = 0;
i < nGlueElements; ++
i) {
334 GeoBox * glueShape =
new GeoBox(0.5*thickness, 0.5*std::abs(
y1-
y2), 0.5*
length);
337 GeoLogVol* glueLV =
new GeoLogVol(
"Glue",glueShape,glueMat);
338 GeoPhysVol* gluePV =
new GeoPhysVol(glueLV);
340 GeoTransform * xform =
new GeoTransform(GeoTrf::Translate3D(
m_xOffset+
x1+0.5*thickness,
m_yOffset-0.5*(
y1+
y2), zOffset));
◆ BuildOmega()
GeoVPhysVol * GeoPixelLadderServices::BuildOmega |
( |
| ) |
|
Definition at line 156 of file GeoPixelLadderServices.cxx.
185 double sepX = (xUpperBend - xLowerBend);
186 double sepY = (yUpperBend - yLowerBend);
187 double sep2 = sepX*sepX+sepY*sepY;
188 double sep = sqrt(sep2);
189 double radDist = radUpperBend+radLowerBend-thick;
190 double alpha =
atan(-sepY/sepX) - asin(radDist/
sep);
191 double upperStraightLength = sqrt(sep2 - radDist*radDist);
192 double xLowerStraight = xLowerBend - (radLowerBend-0.5*thick)*
sin(alpha);
193 double yLowerStraight = yLowerBend - (radLowerBend-0.5*thick)*
cos(alpha);
194 double xUpperStraight = xUpperBend + (radUpperBend-0.5*thick)*
sin(alpha);
195 double yUpperStraight = yUpperBend + (radUpperBend-0.5*thick)*
cos(alpha);
208 GeoBox * lowerStraightBoxP =
new GeoBox(0.5*thick, 0.5*(yStart - yLowerBend), 0.5*
length);
211 GeoBox * lowerStraightBoxM =
new GeoBox(0.5*thick, 0.5*(-yLowerBend - yEnd), 0.5*
length);
214 GeoBox * upperStraightBox =
new GeoBox(0.5*thick, 0.5*upperStraightLength, 0.5*
length);
217 const GeoShape & omegaShape =
218 (*lowerStraightBoxP << GeoTrf::Translate3D(xLowerBend-radLowerBend+0.5*thick,0.5*(yLowerBend+yStart),zOffset) )
219 .
add(*lowerBendShapeP << GeoTrf::Translate3D(xLowerBend,yLowerBend,zOffset) )
220 .
add(*upperStraightBox << GeoTrf::Translate3D(0.5*(xLowerStraight+xUpperStraight),0.5*(yLowerStraight+yUpperStraight),zOffset)*GeoTrf::RotateZ3D(0.5*
Gaudi::Units::pi-alpha) )
221 .
add(*upperBendShape << GeoTrf::Translate3D(xUpperBend,yUpperBend,zOffset) )
222 .
add(*upperStraightBox << GeoTrf::Translate3D(0.5*(xLowerStraight+xUpperStraight),-0.5*(yLowerStraight+yUpperStraight),zOffset)*GeoTrf::RotateZ3D(0.5*
Gaudi::Units::pi+alpha) )
223 .
add(*lowerBendShapeM << GeoTrf::Translate3D(xLowerBend,-yLowerBend,zOffset) )
224 .
add(*lowerStraightBoxM << GeoTrf::Translate3D(xLowerBend-radLowerBend+0.5*thick,0.5*(-yLowerBend+yEnd),zOffset) );
227 lowerStraightBoxP->volume()
228 + lowerBendShapeP->volume()
229 + 2*upperStraightBox->volume()
230 + upperBendShape->volume()
231 + lowerBendShapeM->volume()
232 + lowerStraightBoxM->volume();
236 GeoLogVol* omegaLV =
new GeoLogVol(
"Omega",&omegaShape,omegaMat);
237 return new GeoPhysVol(omegaLV);
◆ BuildPigtailAndConnector()
void GeoPixelLadderServices::BuildPigtailAndConnector |
( |
GeoPhysVol * |
parent | ) |
|
Definition at line 348 of file GeoPixelLadderServices.cxx.
361 GeoBox * pigtailShape =
new GeoBox(0.5*xWidthPigtail, 0.5*yWidthPigtail, 0.5*zWidthPigtail);
363 GeoLogVol * pigtailLV =
new GeoLogVol(
"PigtailFlat",pigtailShape,pigtailMat);
364 GeoPhysVol * pigtailPhys =
new GeoPhysVol(pigtailLV);
368 std::vector<GeoPhysVol *> connectorPhysVols(numConn);
369 std::vector<GeoTrf::Transform3D> connectorTransforms(numConn);
370 for (
int iConn = 0; iConn < numConn; iConn++) {
378 GeoBox * connectorShape =
new GeoBox(0.5*xWidthConnector, 0.5*yWidthConnector, 0.5*zWidthConnector);
380 GeoLogVol * connectorLV =
new GeoLogVol(
"Connector",connectorShape,connectorMat);
381 connectorPhysVols[iConn] =
new GeoPhysVol(connectorLV);
382 connectorTransforms[iConn] = GeoTrf::Translate3D(xPosConnector, yPosConnector, zPosConnector);
390 GeoTransform * xformPigtail =
new GeoTransform(GeoTrf::Translate3D(xPosPigtail, yPosPigtail, zShift+zPosPigtail));
391 parent->add(xformPigtail);
395 for (
int iConn = 0; iConn < numConn; iConn++) {
396 GeoTransform * xformConnector =
new GeoTransform(GeoTrf::TranslateZ3D(zShift)*connectorTransforms[iConn]);
397 parent->add(xformConnector);
398 parent->add(connectorPhysVols[iConn]);
◆ envelopeCornerA1()
const GeoTrf::Vector3D& GeoPixelLadderServices::envelopeCornerA1 |
( |
| ) |
|
|
inline |
◆ envelopeCornerA2()
const GeoTrf::Vector3D& GeoPixelLadderServices::envelopeCornerA2 |
( |
| ) |
|
|
inline |
◆ envelopeCornerC1()
const GeoTrf::Vector3D& GeoPixelLadderServices::envelopeCornerC1 |
( |
| ) |
|
|
inline |
◆ envelopeCornerC2()
const GeoTrf::Vector3D& GeoPixelLadderServices::envelopeCornerC2 |
( |
| ) |
|
|
inline |
◆ operator=()
◆ referenceX()
double GeoPixelLadderServices::referenceX |
( |
| ) |
|
|
inline |
◆ referenceY()
double GeoPixelLadderServices::referenceY |
( |
| ) |
|
|
inline |
◆ m_DDmgr
◆ m_envelopeCornerA1
GeoTrf::Vector3D GeoPixelLadderServices::m_envelopeCornerA1 |
|
private |
◆ m_envelopeCornerA2
GeoTrf::Vector3D GeoPixelLadderServices::m_envelopeCornerA2 |
|
private |
◆ m_envelopeCornerC1
GeoTrf::Vector3D GeoPixelLadderServices::m_envelopeCornerC1 |
|
private |
◆ m_envelopeCornerC2
GeoTrf::Vector3D GeoPixelLadderServices::m_envelopeCornerC2 |
|
private |
◆ m_epsilon
const double GeoVPixelFactory::m_epsilon |
|
protectedinherited |
◆ m_gmt_mgr
◆ m_ladderServicesLV
GeoIntrusivePtr<const GeoLogVol> GeoPixelLadderServices::m_ladderServicesLV {} |
|
private |
◆ m_ladderType
int GeoPixelLadderServices::m_ladderType |
|
private |
◆ m_mapAX
std::shared_ptr<std::map<std::string, GeoAlignableTransform*> > GeoVPixelFactory::m_mapAX |
|
protectedinherited |
◆ m_mapFPV
std::shared_ptr<std::map<std::string, GeoFullPhysVol*> > GeoVPixelFactory::m_mapFPV |
|
protectedinherited |
◆ m_mat_mgr
◆ m_sqliteReader
GeoModelIO::ReadGeoModel* GeoVPixelFactory::m_sqliteReader |
|
protectedinherited |
◆ m_xOffset
double GeoPixelLadderServices::m_xOffset |
|
private |
◆ m_yOffset
double GeoPixelLadderServices::m_yOffset |
|
private |
The documentation for this class was generated from the following files:
virtual double PixelPigtailPosX()=0
virtual double PixelLadderCableOffsetY()=0
GeoTrf::Vector3D m_envelopeCornerA1
virtual double PixelOmegaStartY()=0
virtual double PixelOmegaGlueThickness(int index)=0
virtual int PixelNumConnectorElements()=0
virtual int PixelNumOmegaGlueElements()=0
virtual double PixelConnectorPosZ(int index)=0
virtual double PixelPigtailThickness()=0
virtual double PixelLadderServicesY()=0
virtual double PixelOmegaGlueEndY(int index)=0
virtual double PixelLadderServicesX()=0
virtual double PixelOmegaLength()=0
virtual double PixelOmegaGlueLength(int index)=0
void BuildPigtailAndConnector(GeoPhysVol *parent)
virtual int PixelOmegaGlueTypeNum(int index)=0
virtual double PixelPigtailStartY()=0
GeoTrf::Vector3D m_envelopeCornerC1
GeoVPhysVol * BuildAlTube()
std::shared_ptr< std::map< std::string, GeoAlignableTransform * > > m_mapAX
GeoModelIO::ReadGeoModel * m_sqliteReader
virtual double PixelPigtailFlatWidthZ()=0
InDetDD::PixelDetectorManager * m_DDmgr
PixelGeometryManager * m_gmt_mgr
virtual double PixelAlTubeLowerBendY()=0
std::shared_ptr< std::map< std::string, GeoFullPhysVol * > > m_mapFPV
virtual int PixelModuleEtaFromIndex(int index)=0
virtual double PixelOmegaEndY()=0
GeoVPhysVol * BuildOmega()
virtual double PixelAlTubeUpperBendRadius()=0
GeoTrf::Vector3D m_envelopeCornerC2
virtual double PixelOmegaLowerBendRadius()=0
virtual double PixelAlTubeUpperBendX()=0
Eigen::Affine3d Transform3D
virtual double PixelConnectorWidthZ(int index)=0
const GeoMaterial * getMaterialForVolume(const std::string &materialName, double volume, const std::string &newName="")
Create and get material with a density calculated to give weight in predefined weight table.
bool add(const std::string &hname, TKey *tobj)
GeoVPixelFactory(InDetDD::PixelDetectorManager *ddmgr, PixelGeometryManager *mgr, GeoModelIO::ReadGeoModel *sqliteReader, std::shared_ptr< std::map< std::string, GeoFullPhysVol * >> mapFPV, std::shared_ptr< std::map< std::string, GeoAlignableTransform * >> mapAX)
virtual int PixelNModule()=0
virtual double PixelAlTubeLowerBendRadius()=0
virtual double PixelConnectorPosY(int index)=0
virtual double PixelConnectorPosX(int index)=0
virtual double PixelAlTubeLength()=0
virtual double PixelConnectorWidthX(int index)=0
virtual double PixelAlTubeUpperBendY()=0
GeoIntrusivePtr< const GeoLogVol > m_ladderServicesLV
virtual double PixelOmegaLowerBendX()=0
virtual double PixelOmegaGluePosZ(int index)=0
GeoTrf::Vector3D m_envelopeCornerA2
virtual double PixelLadderLength()=0
virtual double PixelOmegaGlueStartY(int index)=0
InDetMaterialManager * m_mat_mgr
virtual double PixelOmegaWallThickness()=0
Eigen::Matrix< double, 3, 1 > Vector3D
virtual double PixelOmegaUpperBendX()=0
virtual double PixelPigtailEndY()=0
virtual double PixelConnectorWidthY(int index)=0
virtual double PixelPigtailPosZ()=0
virtual double PixelOmegaUpperBendRadius()=0
void BuildGlue(GeoPhysVol *parent)
virtual double PixelAlTubeWallThickness()=0
virtual double PixelOmegaLowerBendY()=0
virtual std::string getMaterialName(const std::string &volumeName, int layerdisk=0, int typenum=0)=0
virtual double PixelOmegaGlueStartX(int index)=0
const GeoMaterial * getMaterial(const std::string &materialName)
Get material. First looks for locally defined material and if not found looks in GeoModel material ma...
virtual double PixelAlTubeLowerBendX()=0
virtual double PixelOmegaUpperBendY()=0
virtual double PixelLadderCableOffsetX()=0
virtual double PixelModuleZPosition(int)=0