#include <TIDRingBuilder.h>
A concrete builder for TIDRing
Definition at line 14 of file TIDRingBuilder.h.
TIDRingBuilder::TIDRingBuilder |
( |
| ) |
|
|
inline |
Definition at line 6 of file TIDRingBuilder.cc.
References GeometricDet::components(), TrackerGeometry::idToDet(), and align::TIDRing.
Referenced by TIDLayerBuilder::build().
9 vector<const GeometricDet*> theGeometricDets = aTIDRing->
components();
13 vector<const GeomDet*> innerGeomDets;
14 vector<const GeomDet*> outerGeomDets;
18 for(vector<const GeometricDet*>::const_iterator it=theGeometricDets.begin();
19 it!=theGeometricDets.end();it++){
20 meanZ = meanZ + (*it)->positionBounds().z();
22 meanZ = meanZ/theGeometricDets.size();
25 for(vector<const GeometricDet*>::const_iterator it=theGeometricDets.begin();
26 it!=theGeometricDets.end();it++){
28 const GeomDet* theGeomDet = theGeomDetGeometry->
idToDet( (*it)->geographicalID() );
30 if( fabs( (*it)->positionBounds().z() ) < fabs(meanZ))
31 innerGeomDets.push_back(theGeomDet);
33 if( fabs( (*it)->positionBounds().z() ) > fabs(meanZ))
34 outerGeomDets.push_back(theGeomDet);
40 return new TIDRing(innerGeomDets,outerGeomDets);
virtual const GeomDet * idToDet(DetId) const
GeometricDetContainer & components()