#include <TECWedgeBuilder.h>
A concrete builder for TECWedge
Definition at line 14 of file TECWedgeBuilder.h.
◆ TECWedgeBuilder()
TECWedgeBuilder::TECWedgeBuilder |
( |
| ) |
|
|
inline |
◆ build()
Definition at line 8 of file TECWedgeBuilder.cc.
References funct::abs(), GeometricDet::components(), and TrackerGeometry::idToDet().
Referenced by TECPetalBuilder::build().
9 vector<const GeometricDet*> theGeometricDets = aTECWedge->
components();
12 if (theGeometricDets.size() == 1) {
13 const GeomDet* theGeomDet = theGeomDetGeometry->
idToDet(theGeometricDets.front()->geographicalId());
17 vector<const GeomDet*> innerGeomDets;
18 vector<const GeomDet*> outerGeomDets;
22 for (vector<const GeometricDet*>::const_iterator it = theGeometricDets.begin(); it != theGeometricDets.end(); it++) {
23 meanZ = meanZ + (*it)->positionBounds().z();
26 meanZ = meanZ / theGeometricDets.size();
30 for (vector<const GeometricDet*>::const_iterator it = theGeometricDets.begin(); it != theGeometricDets.end(); it++) {
32 const GeomDet* theGeomDet = theGeomDetGeometry->
idToDet((*it)->geographicalId());
36 innerGeomDets.push_back(theGeomDet);
39 outerGeomDets.push_back(theGeomDet);
ConstGeometricDetContainer & components()
Abs< T >::type abs(const T &t)
const TrackerGeomDet * idToDet(DetId) const override