#include <TECWedgeBuilder.h>
A concrete builder for TECWedge
Definition at line 15 of file TECWedgeBuilder.h.
TECWedgeBuilder::TECWedgeBuilder |
( |
| ) |
|
|
inline |
Definition at line 8 of file TECWedgeBuilder.cc.
References funct::abs(), GeometricDet::components(), and TrackerGeometry::idToDet().
Referenced by TECPetalBuilder::build(), and TECWedgeBuilder().
11 vector<const GeometricDet*> theGeometricDets = aTECWedge->
components();
14 if(theGeometricDets.size() == 1 ) {
16 theGeomDetGeometry->
idToDet( theGeometricDets.front()->geographicalID() );
20 vector<const GeomDet*> innerGeomDets;
21 vector<const GeomDet*> outerGeomDets;
25 for(vector<const GeometricDet*>::const_iterator it=theGeometricDets.begin();
26 it!=theGeometricDets.end();it++){
27 meanZ = meanZ + (*it)->positionBounds().z();
30 meanZ = meanZ/theGeometricDets.size();
34 for(vector<const GeometricDet*>::const_iterator it=theGeometricDets.begin();
35 it!=theGeometricDets.end();it++){
37 const GeomDet* theGeomDet = theGeomDetGeometry->
idToDet( (*it)->geographicalID() );
41 innerGeomDets.push_back(theGeomDet);
44 outerGeomDets.push_back(theGeomDet);
ConstGeometricDetContainer & components()
Abs< T >::type abs(const T &t)
const TrackerGeomDet * idToDet(DetId) const override