A layer of barrel volumes. Holds a list of volumes and 12 sectors. It is assumed that the geometry is 12-fold periodic in phi!
- Date:
- 2005/09/06 15:48:28
- Revision:
- 1.1
- Author
- N. Amapane - INFN Torino
Definition at line 19 of file bLayer.h.
MagGeoBuilderFromDDD::bLayer::bLayer |
( |
handles::const_iterator |
begin, |
|
|
handles::const_iterator |
end |
|
) |
| |
Constructor from list of volumes.
Definition at line 21 of file bLayer.cc.
References bin(), gather_cfg::cout, ddbox, ddtrap, MagGeoBuilderFromDDD::debug, i, evf::evtn::offset(), SurfaceOrientation::outer, precomputed_value_sort(), MagGeoBuilderFromDDD::volumeHandle::printUniqueNames(), svgfig::rotate(), GloballyPositioned< T >::rotation(), sectors, size, theVolumes, TkRotation< T >::zx(), TkRotation< T >::zy(), and TkRotation< T >::zz().
37 handles::iterator secBegin =
theVolumes.begin();
38 handles::iterator secEnd;
58 }
else if (
size==12 ||
59 (((*secBegin)->shape()!=
ddtrap) && (*secBegin)->shape()!=
ddbox)) {
60 secEnd = secBegin+
size/12;
63 float tolerance = 0.025;
66 <<
" " << (*secBegin)->copyno << std::endl;
69 (*secBegin)->sameSurface(refSurf,
outer, tolerance));
79 secEnd = secBegin+
size/12;
82 if (!((*secBegin)->sameSurface((*(secEnd-1))->surface(
outer),
84 std::cout <<
"*** ERROR: Big mess while looking for sectors "
85 << (*secBegin)->name <<
" " << (*secBegin)->copyno <<
" "
86 << (*(secEnd-1))->name <<
" " << (*(secEnd-1))->copyno
93 <<
" from " << newbegin
94 <<
" (phi = " << (*secBegin)->center().phi() <<
") "
96 <<
" (phi = " << (*secEnd)->center().phi() <<
") "
97 <<
" # " << (*secBegin)->copyno <<
" ";
105 for (
int i = 0;
i<12; ++
i) {
106 int isec = (
i+binOffset)%12;
static void printUniqueNames(handles::const_iterator begin, handles::const_iterator end)
Just for debugging...
unsigned int offset(bool)
std::vector< bSector > sectors
void precomputed_value_sort(RandomAccessIterator begin, RandomAccessIterator end, const Extractor &extr)
const RotationType & rotation() const
Global3DVector GlobalVector