#include <TECWedgeBuilder.h>
A concrete builder for TECWedge
Definition at line 14 of file TECWedgeBuilder.h.
TECWedgeBuilder::TECWedgeBuilder |
( |
| ) |
|
|
inline |
Definition at line 8 of file TECWedgeBuilder.cc.
References GeometricDet::components(), and TrackerGeometry::idToDet().
Referenced by TECPetalBuilder::build().
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() );
40 if( fabs( (*it)->positionBounds().z() ) < fabs(meanZ))
41 innerGeomDets.push_back(theGeomDet);
43 if( fabs( (*it)->positionBounds().z() ) > fabs(meanZ))
44 outerGeomDets.push_back(theGeomDet);
virtual const GeomDet * idToDet(DetId) const
GeometricDetContainer & components()