25 for (vector<MagELayer *>::const_iterator ilay =
theLayers.begin();
37 for(vector<MagELayer*>::const_reverse_iterator ilay =
theLayers.rbegin();
40 if (Z+tolerance>(*ilay)->minZ()) {
41 if (Z-tolerance<(*ilay)->maxZ()) {
43 cout <<
" Trying elayer at Z " << (*ilay)->minZ() <<
" " << Z << endl ;
45 result = (*ilay)->findVolume(gp, tolerance);
47 cout <<
"***In elayer " << (result==0?
" failed " :
" OK ") << endl;
53 if (result!=0)
return result;
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
const MagVolume * findVolume(const GlobalPoint &gp, double tolerance) const
Find the volume containing a point, with a given tolerance.
std::vector< MagELayer * > theLayers
MagESector(std::vector< MagELayer * > &layers, Geom::Phi< float > phiMin)
Constructor.
virtual ~MagESector()
Destructor.