// -*- C++ -*- // // Package: Tracing // Module: AlignedBox // // Description: // // Implimentation: // // // Author: Martin Lohner // Created: Wed June 25 15:21:36 EDT 1997 // system include files #include #include #include // user include files #include "AlignedBox.hh" #include "Point.hh" #include "RectPlane.hh" #include "Direction.hh" #include "VolumeVisitor.hh" #include "functions.hh" #include "report.hh" #include "changeWTrack.hh" // STL classes // // constants, enums and typedefs // // // static data member definitions // // // constructors and destructor // AlignedBox::AlignedBox( const DFLOAT xmin, const DFLOAT xmax, const DFLOAT ymin, const DFLOAT ymax, const DFLOAT zmin, const DFLOAT zmax ) : m_xmin( xmin ), m_xmax( xmax ), m_ymin( ymin ), m_ymax( ymax ), m_zmin( zmin ), m_zmax( zmax ) { for( int i = 0; i= m_xmin && wtrack.y <= m_ymax && wtrack.y >= m_ymin && wtrack.z <= m_zmax && wtrack.z >= m_zmin ) { returnValue = true; } return returnValue; } void AlignedBox::printOn( ostream& os ) const { os << "Printing AlignedBox surfaces:\n"; Volume::printOn( os ); os << "\n"; } // // static member functions // // ================================================================== // Comments, suggestions, get on line 1! // // $Id$ // $Log$ // Revision 1.1 2000/06/19 19:59:31 eugenio // Initial revision // // Revision 1.8 1998/11/20 23:47:42 mkl // switch Boolean to MCFBool to avoid clashes with other typedef-ed bool types // // Revision 1.7 1998/02/15 20:56:10 mkl // implemented 'contains' method // // Revision 1.6 1998/02/15 01:55:35 mkl // for DenseMedia, need base reactTo figure out if entering or leaving volume, and call implementReactTo if entering // // Revision 1.5 1998/01/08 22:20:40 mkl // added small distance along direction of flight to figure out if entering or exiting volume // // Revision 1.4 1997/11/11 01:17:29 mkl // Major rewrite: simplify tracing loops; add x-, y-tracing loops // // Revision 1.3 1997/08/27 03:31:35 mkl // moved 'contains( particle )' to 'contains( wtrack )' and added Volume::distanceToExit() // // Revision 1.2 1997/08/23 01:10:09 mkl // toward volume-based tracing // // Revision 1.1 1997/08/03 04:19:42 mkl // moved Box to AlignedBox // //